1
14
15 package com.liferay.portlet.enterpriseadmin.search;
16
17 import com.liferay.portal.kernel.dao.search.DisplayTerms;
18 import com.liferay.portal.kernel.util.ParamUtil;
19
20 import javax.portlet.PortletRequest;
21
22
28 public class OrganizationDisplayTerms extends DisplayTerms {
29
30 public static final String CITY = "city";
31
32 public static final String COUNTRY_ID = "countryId";
33
34 public static final String NAME = "name";
35
36 public static final String PARENT_ORGANIZATION_ID = "parentOrganizationId";
37
38 public static final String REGION_ID = "regionId";
39
40 public static final String STREET = "street";
41
42 public static final String TYPE = "type";
43
44 public static final String ZIP = "zip";
45
46 public OrganizationDisplayTerms(PortletRequest portletRequest) {
47 super(portletRequest);
48
49 city = ParamUtil.getString(portletRequest, CITY);
50 countryId = ParamUtil.getLong(portletRequest, COUNTRY_ID);
51 name = ParamUtil.getString(portletRequest, NAME);
52 parentOrganizationId = ParamUtil.getLong(
53 portletRequest, PARENT_ORGANIZATION_ID);
54 regionId = ParamUtil.getLong(portletRequest, REGION_ID);
55 street = ParamUtil.getString(portletRequest, STREET);
56 type = ParamUtil.getString(portletRequest, TYPE);
57 zip = ParamUtil.getString(portletRequest, ZIP);
58 }
59
60 public String getCity() {
61 return city;
62 }
63
64 public long getCountryId() {
65 return countryId;
66 }
67
68 public String getName() {
69 return name;
70 }
71
72 public long getParentOrganizationId() {
73 return parentOrganizationId;
74 }
75
76 public long getRegionId() {
77 return regionId;
78 }
79
80 public String getStreet() {
81 return street;
82 }
83
84 public String getType() {
85 return type;
86 }
87
88 public String getZip() {
89 return zip;
90 }
91
92 public void setType(String type) {
93 this.type = type;
94 }
95
96 protected String city;
97 protected long countryId;
98 protected String name;
99 protected long parentOrganizationId;
100 protected long regionId;
101 protected String street;
102 protected String type;
103 protected String zip;
104
105 }