/** * 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.shopping.web.internal.search; import com.liferay.portal.kernel.dao.search.DisplayTerms; import com.liferay.portal.kernel.util.ParamUtil; import javax.portlet.PortletRequest; /** * @author Brian Wing Shun Chan */ public class OrderDisplayTerms extends DisplayTerms { public static final String EMAIL_ADDRESS = "emailAddress"; public static final String FIRST_NAME = "firstName"; public static final String LAST_NAME = "lastName"; public static final String NUMBER = "number"; public static final String STATUS = "status"; public OrderDisplayTerms(PortletRequest portletRequest) { super(portletRequest); emailAddress = ParamUtil.getString(portletRequest, EMAIL_ADDRESS); firstName = ParamUtil.getString(portletRequest, FIRST_NAME); lastName = ParamUtil.getString(portletRequest, LAST_NAME); number = ParamUtil.getString(portletRequest, NUMBER); status = ParamUtil.getString(portletRequest, STATUS); } public String getEmailAddress() { return emailAddress; } public String getFirstName() { return firstName; } public String getLastName() { return lastName; } public String getNumber() { return number; } public String getStatus() { return status; } protected String emailAddress; protected String firstName; protected String lastName; protected String number; protected String status; }