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.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  }