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.taglib.portlet;
16  
17  import java.util.Map;
18  
19  import javax.portlet.ActionRequest;
20  import javax.portlet.ActionResponse;
21  import javax.portlet.EventRequest;
22  import javax.portlet.EventResponse;
23  import javax.portlet.PortletConfig;
24  import javax.portlet.PortletPreferences;
25  import javax.portlet.PortletSession;
26  import javax.portlet.RenderRequest;
27  import javax.portlet.RenderResponse;
28  import javax.portlet.ResourceRequest;
29  import javax.portlet.ResourceResponse;
30  
31  import javax.servlet.jsp.tagext.TagData;
32  import javax.servlet.jsp.tagext.TagExtraInfo;
33  import javax.servlet.jsp.tagext.VariableInfo;
34  
35  /**
36   * <a href="DefineObjectsTei.java.html"><b><i>View Source</i></b></a>
37   *
38   * @author Brian Wing Shun Chan
39   */
40  public class DefineObjectsTei extends TagExtraInfo {
41  
42      public VariableInfo[] getVariableInfo(TagData data) {
43          return new VariableInfo[] {
44              new VariableInfo(
45                  "actionRequest", ActionRequest.class.getName(), true,
46                  VariableInfo.AT_END),
47              new VariableInfo(
48                  "actionResponse", ActionResponse.class.getName(), true,
49                  VariableInfo.AT_END),
50              new VariableInfo(
51                  "eventRequest", EventRequest.class.getName(), true,
52                  VariableInfo.AT_END),
53              new VariableInfo(
54                  "eventResponse", EventResponse.class.getName(), true,
55                  VariableInfo.AT_END),
56              new VariableInfo(
57                  "portletConfig", PortletConfig.class.getName(), true,
58                  VariableInfo.AT_END),
59              new VariableInfo(
60                  "portletName", String.class.getName(), true,
61                  VariableInfo.AT_END),
62              new VariableInfo(
63                  "portletPreferences", PortletPreferences.class.getName(), true,
64                  VariableInfo.AT_END),
65              new VariableInfo(
66                  "portletPreferencesValues", Map.class.getName(), true,
67                  VariableInfo.AT_END),
68              new VariableInfo(
69                  "portletSession", PortletSession.class.getName(), true,
70                  VariableInfo.AT_END),
71              new VariableInfo(
72                  "portletSessionScope", Map.class.getName(), true,
73                  VariableInfo.AT_END),
74              new VariableInfo(
75                  "renderRequest", RenderRequest.class.getName(), true,
76                  VariableInfo.AT_END),
77              new VariableInfo(
78                  "renderResponse", RenderResponse.class.getName(), true,
79                  VariableInfo.AT_END),
80              new VariableInfo(
81                  "resourceRequest", ResourceRequest.class.getName(), true,
82                  VariableInfo.AT_END),
83              new VariableInfo(
84                  "resourceResponse", ResourceResponse.class.getName(), true,
85                  VariableInfo.AT_END)
86          };
87      }
88  
89  }