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 TYPE = "type";
31
32 public static final String NAME = "name";
33
34 public static final String STREET = "street";
35
36 public static final String CITY = "city";
37
38 public static final String ZIP = "zip";
39
40 public static final String COUNTRY_ID = "countryId";
41
42 public static final String REGION_ID = "regionId";
43
44 public static final String PARENT_ORGANIZATION_ID = "parentOrganizationId";
45
46 public OrganizationDisplayTerms(PortletRequest portletRequest) {
47 super(portletRequest);
48
49 type = ParamUtil.getString(portletRequest, TYPE);
50 name = ParamUtil.getString(portletRequest, NAME);
51 street = ParamUtil.getString(portletRequest, STREET);
52 city = ParamUtil.getString(portletRequest, CITY);
53 zip = ParamUtil.getString(portletRequest, ZIP);
54 regionId = ParamUtil.getLong(portletRequest, REGION_ID);
55 countryId = ParamUtil.getLong(portletRequest, COUNTRY_ID);
56 parentOrganizationId = ParamUtil.getLong(
57 portletRequest, PARENT_ORGANIZATION_ID);
58 }
59
60 public String getType() {
61 return type;
62 }
63
64 public void setType(String type) {
65 this.type = type;
66 }
67
68 public String getName() {
69 return name;
70 }
71
72 public String getStreet() {
73 return street;
74 }
75
76 public String getCity() {
77 return city;
78 }
79
80 public String getZip() {
81 return zip;
82 }
83
84 public long getRegionId() {
85 return regionId;
86 }
87
88 public long getCountryId() {
89 return countryId;
90 }
91
92 public long getParentOrganizationId() {
93 return parentOrganizationId;
94 }
95
96 protected String type;
97 protected String name;
98 protected String street;
99 protected String city;
100 protected String zip;
101 protected long regionId;
102 protected long countryId;
103 protected long parentOrganizationId;
104
105 }