1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.taglib.portlet;
21  
22  import java.util.Map;
23  
24  import javax.portlet.ActionRequest;
25  import javax.portlet.ActionResponse;
26  import javax.portlet.EventRequest;
27  import javax.portlet.EventResponse;
28  import javax.portlet.PortletConfig;
29  import javax.portlet.PortletPreferences;
30  import javax.portlet.PortletSession;
31  import javax.portlet.RenderRequest;
32  import javax.portlet.RenderResponse;
33  import javax.portlet.ResourceRequest;
34  import javax.portlet.ResourceResponse;
35  
36  import javax.servlet.jsp.tagext.TagData;
37  import javax.servlet.jsp.tagext.TagExtraInfo;
38  import javax.servlet.jsp.tagext.VariableInfo;
39  
40  /**
41   * <a href="DefineObjectsTei.java.html"><b><i>View Source</i></b></a>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   */
46  public class DefineObjectsTei extends TagExtraInfo {
47  
48      public VariableInfo[] getVariableInfo(TagData data) {
49          return new VariableInfo[] {
50              new VariableInfo(
51                  "actionRequest", ActionRequest.class.getName(), true,
52                  VariableInfo.AT_END),
53              new VariableInfo(
54                  "actionResponse", ActionResponse.class.getName(), true,
55                  VariableInfo.AT_END),
56              new VariableInfo(
57                  "eventRequest", EventRequest.class.getName(), true,
58                  VariableInfo.AT_END),
59              new VariableInfo(
60                  "eventResponse", EventResponse.class.getName(), true,
61                  VariableInfo.AT_END),
62              new VariableInfo(
63                  "portletConfig", PortletConfig.class.getName(), true,
64                  VariableInfo.AT_END),
65              new VariableInfo(
66                  "portletName", String.class.getName(), true,
67                  VariableInfo.AT_END),
68              new VariableInfo(
69                  "portletPreferences", PortletPreferences.class.getName(), true,
70                  VariableInfo.AT_END),
71              new VariableInfo(
72                  "portletPreferencesValues", Map.class.getName(), true,
73                  VariableInfo.AT_END),
74              new VariableInfo(
75                  "portletSession", PortletSession.class.getName(), true,
76                  VariableInfo.AT_END),
77              new VariableInfo(
78                  "portletSessionScope", Map.class.getName(), true,
79                  VariableInfo.AT_END),
80              new VariableInfo(
81                  "renderRequest", RenderRequest.class.getName(), true,
82                  VariableInfo.AT_END),
83              new VariableInfo(
84                  "renderResponse", RenderResponse.class.getName(), true,
85                  VariableInfo.AT_END),
86              new VariableInfo(
87                  "resourceRequest", ResourceRequest.class.getName(), true,
88                  VariableInfo.AT_END),
89              new VariableInfo(
90                  "resourceResponse", ResourceResponse.class.getName(), true,
91                  VariableInfo.AT_END)
92          };
93      }
94  
95  }