001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.enterpriseadmin.search;
022:
023: import com.liferay.portal.kernel.dao.search.DisplayTerms;
024: import com.liferay.portal.kernel.util.ParamUtil;
025:
026: import javax.portlet.RenderRequest;
027:
028: /**
029: * <a href="OrganizationDisplayTerms.java.html"><b><i>View Source</i></b></a>
030: *
031: * @author Brian Wing Shun Chan
032: * @author Jorge Ferrer
033: *
034: */
035: public class OrganizationDisplayTerms extends DisplayTerms {
036:
037: public static final String TYPE = "type";
038:
039: public static final String NAME = "name";
040:
041: public static final String STREET = "street";
042:
043: public static final String CITY = "city";
044:
045: public static final String ZIP = "zip";
046:
047: public static final String COUNTRY_ID = "countryId";
048:
049: public static final String REGION_ID = "regionId";
050:
051: public static final String PARENT_ORGANIZATION_ID = "parentOrganizationId";
052:
053: public OrganizationDisplayTerms(RenderRequest req) {
054: super (req);
055:
056: type = ParamUtil.getInteger(req, TYPE);
057: name = ParamUtil.getString(req, NAME);
058: street = ParamUtil.getString(req, STREET);
059: city = ParamUtil.getString(req, CITY);
060: zip = ParamUtil.getString(req, ZIP);
061: regionId = ParamUtil.getLong(req, REGION_ID);
062: countryId = ParamUtil.getLong(req, COUNTRY_ID);
063: parentOrganizationId = ParamUtil.getLong(req,
064: PARENT_ORGANIZATION_ID);
065: }
066:
067: public int getType() {
068: return type;
069: }
070:
071: public void setType(int type) {
072: this .type = type;
073: }
074:
075: public String getName() {
076: return name;
077: }
078:
079: public String getStreet() {
080: return street;
081: }
082:
083: public String getCity() {
084: return city;
085: }
086:
087: public String getZip() {
088: return zip;
089: }
090:
091: public long getRegionId() {
092: return regionId;
093: }
094:
095: public long getCountryId() {
096: return countryId;
097: }
098:
099: public long getParentOrganizationId() {
100: return parentOrganizationId;
101: }
102:
103: protected int type;
104: protected String name;
105: protected String street;
106: protected String city;
107: protected String zip;
108: protected long regionId;
109: protected long countryId;
110: protected long parentOrganizationId;
111:
112: }
|