1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
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="UserDisplayTerms.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   */
27  public class UserDisplayTerms extends DisplayTerms {
28  
29      public static final String FIRST_NAME = "firstName";
30  
31      public static final String MIDDLE_NAME = "middleName";
32  
33      public static final String LAST_NAME = "lastName";
34  
35      public static final String SCREEN_NAME = "screenName";
36  
37      public static final String EMAIL_ADDRESS = "emailAddress";
38  
39      public static final String ACTIVE = "active";
40  
41      public static final String ORGANIZATION_ID = "organizationId";
42  
43      public static final String ROLE_ID = "roleId";
44  
45      public static final String USER_GROUP_ID = "userGroupId";
46  
47      public UserDisplayTerms(PortletRequest portletRequest) {
48          super(portletRequest);
49  
50          firstName = ParamUtil.getString(portletRequest, FIRST_NAME);
51          middleName = ParamUtil.getString(portletRequest, MIDDLE_NAME);
52          lastName = ParamUtil.getString(portletRequest, LAST_NAME);
53          screenName = ParamUtil.getString(portletRequest, SCREEN_NAME);
54          emailAddress = ParamUtil.getString(portletRequest, EMAIL_ADDRESS);
55          active = ParamUtil.getBoolean(portletRequest, ACTIVE, true);
56          organizationId = ParamUtil.getLong(portletRequest, ORGANIZATION_ID);
57          roleId = ParamUtil.getLong(portletRequest, ROLE_ID);
58          userGroupId = ParamUtil.getLong(portletRequest, USER_GROUP_ID);
59      }
60  
61      public String getFirstName() {
62          return firstName;
63      }
64  
65      public String getMiddleName() {
66          return middleName;
67      }
68  
69      public String getLastName() {
70          return lastName;
71      }
72  
73      public String getScreenName() {
74          return screenName;
75      }
76  
77      public String getEmailAddress() {
78          return emailAddress;
79      }
80  
81      public boolean isActive() {
82          return active;
83      }
84  
85      public void setActive(boolean active) {
86          this.active = active;
87      }
88  
89      public long getOrganizationId() {
90          return organizationId;
91      }
92  
93      public long getRoleId() {
94          return roleId;
95      }
96  
97      public long getUserGroupId() {
98          return userGroupId;
99      }
100 
101     protected String firstName;
102     protected String middleName;
103     protected String lastName;
104     protected String screenName;
105     protected String emailAddress;
106     protected boolean active;
107     protected long organizationId;
108     protected long roleId;
109     protected long userGroupId;
110 
111 }