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