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="UserDisplayTerms.java.html"><b><i>View Source</i></b></a>
030: *
031: * @author Brian Wing Shun Chan
032: *
033: */
034: public class UserDisplayTerms extends DisplayTerms {
035:
036: public static final String FIRST_NAME = "firstName";
037:
038: public static final String MIDDLE_NAME = "middleName";
039:
040: public static final String LAST_NAME = "lastName";
041:
042: public static final String SCREEN_NAME = "screenName";
043:
044: public static final String EMAIL_ADDRESS = "emailAddress";
045:
046: public static final String ACTIVE = "active";
047:
048: public static final String ORGANIZATION_ID = "organizationId";
049:
050: public static final String ROLE_ID = "roleId";
051:
052: public static final String USER_GROUP_ID = "userGroupId";
053:
054: public UserDisplayTerms(RenderRequest req) {
055: super (req);
056:
057: firstName = ParamUtil.getString(req, FIRST_NAME);
058: middleName = ParamUtil.getString(req, MIDDLE_NAME);
059: lastName = ParamUtil.getString(req, LAST_NAME);
060: screenName = ParamUtil.getString(req, SCREEN_NAME);
061: emailAddress = ParamUtil.getString(req, EMAIL_ADDRESS);
062: active = ParamUtil.getBoolean(req, ACTIVE, true);
063: organizationId = ParamUtil.getLong(req, ORGANIZATION_ID);
064: roleId = ParamUtil.getLong(req, ROLE_ID);
065: userGroupId = ParamUtil.getLong(req, USER_GROUP_ID);
066: }
067:
068: public String getFirstName() {
069: return firstName;
070: }
071:
072: public String getMiddleName() {
073: return middleName;
074: }
075:
076: public String getLastName() {
077: return lastName;
078: }
079:
080: public String getScreenName() {
081: return screenName;
082: }
083:
084: public String getEmailAddress() {
085: return emailAddress;
086: }
087:
088: public boolean isActive() {
089: return active;
090: }
091:
092: public void setActive(boolean active) {
093: this .active = active;
094: }
095:
096: public long getOrganizationId() {
097: return organizationId;
098: }
099:
100: public long getRoleId() {
101: return roleId;
102: }
103:
104: public long getUserGroupId() {
105: return userGroupId;
106: }
107:
108: protected String firstName;
109: protected String middleName;
110: protected String lastName;
111: protected String screenName;
112: protected String emailAddress;
113: protected boolean active;
114: protected long organizationId;
115: protected long roleId;
116: protected long userGroupId;
117:
118: }
|