1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
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  /**
23   * <a href="OrganizationDisplayTerms.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   * @author Jorge Ferrer
27   */
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 }