1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.shopping.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="OrderDisplayTerms.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Brian Wing Shun Chan
26   */
27  public class OrderDisplayTerms extends DisplayTerms {
28  
29      public static final String NUMBER = "number";
30  
31      public static final String STATUS = "status";
32  
33      public static final String FIRST_NAME = "firstName";
34  
35      public static final String LAST_NAME = "lastName";
36  
37      public static final String EMAIL_ADDRESS = "emailAddress";
38  
39      public OrderDisplayTerms(PortletRequest portletRequest) {
40          super(portletRequest);
41  
42          number = ParamUtil.getString(portletRequest, NUMBER);
43          status = ParamUtil.getString(portletRequest, STATUS);
44          firstName = ParamUtil.getString(portletRequest, FIRST_NAME);
45          lastName = ParamUtil.getString(portletRequest, LAST_NAME);
46          emailAddress = ParamUtil.getString(portletRequest, EMAIL_ADDRESS);
47      }
48  
49      public String getNumber() {
50          return number;
51      }
52  
53      public String getStatus() {
54          return status;
55      }
56  
57      public String getFirstName() {
58          return firstName;
59      }
60  
61      public String getLastName() {
62          return lastName;
63      }
64  
65      public String getEmailAddress() {
66          return emailAddress;
67      }
68  
69      protected String number;
70      protected String status;
71      protected String firstName;
72      protected String lastName;
73      protected String emailAddress;
74  
75  }