/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portlet.usersadmin.search;
import com.liferay.portal.kernel.dao.search.DAOParamUtil;
import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.workflow.WorkflowConstants;
import javax.portlet.PortletRequest;
/**
* @author Brian Wing Shun Chan
*/
public class UserSearchTerms extends UserDisplayTerms {
public UserSearchTerms(PortletRequest portletRequest) {
super(portletRequest);
emailAddress = DAOParamUtil.getString(portletRequest, EMAIL_ADDRESS);
firstName = DAOParamUtil.getString(portletRequest, FIRST_NAME);
lastName = DAOParamUtil.getString(portletRequest, LAST_NAME);
middleName = DAOParamUtil.getString(portletRequest, MIDDLE_NAME);
organizationId = ParamUtil.getLong(portletRequest, ORGANIZATION_ID);
roleId = ParamUtil.getLong(portletRequest, ROLE_ID);
screenName = DAOParamUtil.getString(portletRequest, SCREEN_NAME);
status = ParamUtil.getInteger(
portletRequest, STATUS, WorkflowConstants.STATUS_APPROVED);
userGroupId = ParamUtil.getLong(portletRequest, USER_GROUP_ID);
}
}