2 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
\r
4 * This library is free software; you can redistribute it and/or modify it under
\r
5 * the terms of the GNU Lesser General Public License as published by the Free
\r
6 * Software Foundation; either version 2.1 of the License, or (at your option)
\r
9 * This library is distributed in the hope that it will be useful, but WITHOUT
\r
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
\r
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
\r
15 package com.liferay.portlet.useradmin.search;
\r
17 import com.liferay.portal.kernel.dao.search.DAOParamUtil;
\r
18 import com.liferay.portal.kernel.util.ParamUtil;
\r
19 import com.liferay.portal.kernel.workflow.WorkflowConstants;
\r
21 import javax.portlet.PortletRequest;
\r
24 * @author Brian Wing Shun Chan
\r
26 public class UserSearchTerms extends UserDisplayTerms {
\r
28 public UserSearchTerms(PortletRequest portletRequest) {
\r
29 super(portletRequest);
\r
31 emailAddress = DAOParamUtil.getString(portletRequest, EMAIL_ADDRESS);
\r
32 firstName = DAOParamUtil.getString(portletRequest, FIRST_NAME);
\r
33 lastName = DAOParamUtil.getString(portletRequest, LAST_NAME);
\r
34 middleName = DAOParamUtil.getString(portletRequest, MIDDLE_NAME);
\r
35 organizationId = ParamUtil.getLong(portletRequest, ORGANIZATION_ID);
\r
36 roleId = ParamUtil.getLong(portletRequest, ROLE_ID);
\r
37 screenName = DAOParamUtil.getString(portletRequest, SCREEN_NAME);
\r
38 status = ParamUtil.getInteger(
\r
39 portletRequest, STATUS, WorkflowConstants.STATUS_APPROVED);
\r
40 userGroupId = ParamUtil.getLong(portletRequest, USER_GROUP_ID);
\r
43 collegeId = ParamUtil.getLong(portletRequest, COLLEGE_ID);
\r
44 classeId = ParamUtil.getLong(portletRequest, CLASSE_ID);
\r
45 enseignementid = ParamUtil.getLong(portletRequest, ENSEIGNEMENT_ID);
\r