1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.taglib.portlet;
24  
25  import java.util.Map;
26  
27  import javax.portlet.ActionRequest;
28  import javax.portlet.ActionResponse;
29  import javax.portlet.EventRequest;
30  import javax.portlet.EventResponse;
31  import javax.portlet.PortletConfig;
32  import javax.portlet.PortletPreferences;
33  import javax.portlet.PortletSession;
34  import javax.portlet.RenderRequest;
35  import javax.portlet.RenderResponse;
36  import javax.portlet.ResourceRequest;
37  import javax.portlet.ResourceResponse;
38  
39  import javax.servlet.jsp.tagext.TagData;
40  import javax.servlet.jsp.tagext.TagExtraInfo;
41  import javax.servlet.jsp.tagext.VariableInfo;
42  
43  /**
44   * <a href="DefineObjectsTei.java.html"><b><i>View Source</i></b></a>
45   *
46   * @author Brian Wing Shun Chan
47   *
48   */
49  public class DefineObjectsTei extends TagExtraInfo {
50  
51      public VariableInfo[] getVariableInfo(TagData data) {
52          return new VariableInfo[] {
53              new VariableInfo(
54                  "actionRequest", ActionRequest.class.getName(), true,
55                  VariableInfo.AT_END),
56              new VariableInfo(
57                  "actionResponse", ActionResponse.class.getName(), true,
58                  VariableInfo.AT_END),
59              new VariableInfo(
60                  "eventRequest", EventRequest.class.getName(), true,
61                  VariableInfo.AT_END),
62              new VariableInfo(
63                  "eventResponse", EventResponse.class.getName(), true,
64                  VariableInfo.AT_END),
65              new VariableInfo(
66                  "portletConfig", PortletConfig.class.getName(), true,
67                  VariableInfo.AT_END),
68              new VariableInfo(
69                  "portletName", String.class.getName(), true,
70                  VariableInfo.AT_END),
71              new VariableInfo(
72                  "portletPreferences", PortletPreferences.class.getName(), true,
73                  VariableInfo.AT_END),
74              new VariableInfo(
75                  "portletPreferencesValues", Map.class.getName(), true,
76                  VariableInfo.AT_END),
77              new VariableInfo(
78                  "portletSession", PortletSession.class.getName(), true,
79                  VariableInfo.AT_END),
80              new VariableInfo(
81                  "portletSessionScope", Map.class.getName(), true,
82                  VariableInfo.AT_END),
83              new VariableInfo(
84                  "renderRequest", RenderRequest.class.getName(), true,
85                  VariableInfo.AT_END),
86              new VariableInfo(
87                  "renderResponse", RenderResponse.class.getName(), true,
88                  VariableInfo.AT_END),
89              new VariableInfo(
90                  "resourceRequest", ResourceRequest.class.getName(), true,
91                  VariableInfo.AT_END),
92              new VariableInfo(
93                  "resourceResponse", ResourceResponse.class.getName(), true,
94                  VariableInfo.AT_END)
95          };
96      }
97  
98  }