001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.taglib.portlet;
016    
017    import java.util.Map;
018    
019    import javax.portlet.ActionRequest;
020    import javax.portlet.ActionResponse;
021    import javax.portlet.EventRequest;
022    import javax.portlet.EventResponse;
023    import javax.portlet.PortletConfig;
024    import javax.portlet.PortletPreferences;
025    import javax.portlet.PortletSession;
026    import javax.portlet.RenderRequest;
027    import javax.portlet.RenderResponse;
028    import javax.portlet.ResourceRequest;
029    import javax.portlet.ResourceResponse;
030    
031    import javax.servlet.jsp.tagext.TagData;
032    import javax.servlet.jsp.tagext.TagExtraInfo;
033    import javax.servlet.jsp.tagext.VariableInfo;
034    
035    /**
036     * @author Brian Wing Shun Chan
037     */
038    public class DefineObjectsTei extends TagExtraInfo {
039    
040            public VariableInfo[] getVariableInfo(TagData tagData) {
041                    return _variableInfo;
042            }
043    
044            private static VariableInfo[] _variableInfo = new VariableInfo[] {
045                    new VariableInfo(
046                            "actionRequest", ActionRequest.class.getName(), true,
047                            VariableInfo.AT_END),
048                    new VariableInfo(
049                            "actionResponse", ActionResponse.class.getName(), true,
050                            VariableInfo.AT_END),
051                    new VariableInfo(
052                            "eventRequest", EventRequest.class.getName(), true,
053                            VariableInfo.AT_END),
054                    new VariableInfo(
055                            "eventResponse", EventResponse.class.getName(), true,
056                            VariableInfo.AT_END),
057                    new VariableInfo(
058                            "portletConfig", PortletConfig.class.getName(), true,
059                            VariableInfo.AT_END),
060                    new VariableInfo(
061                            "portletName", String.class.getName(), true, VariableInfo.AT_END),
062                    new VariableInfo(
063                            "portletPreferences", PortletPreferences.class.getName(), true,
064                            VariableInfo.AT_END),
065                    new VariableInfo(
066                            "portletPreferencesValues", Map.class.getName(), true,
067                            VariableInfo.AT_END),
068                    new VariableInfo(
069                            "portletSession", PortletSession.class.getName(), true,
070                            VariableInfo.AT_END),
071                    new VariableInfo(
072                            "portletSessionScope", Map.class.getName(), true,
073                            VariableInfo.AT_END),
074                    new VariableInfo(
075                            "renderRequest", RenderRequest.class.getName(), true,
076                            VariableInfo.AT_END),
077                    new VariableInfo(
078                            "renderResponse", RenderResponse.class.getName(), true,
079                            VariableInfo.AT_END),
080                    new VariableInfo(
081                            "resourceRequest", ResourceRequest.class.getName(), true,
082                            VariableInfo.AT_END),
083                    new VariableInfo(
084                            "resourceResponse", ResourceResponse.class.getName(), true,
085                            VariableInfo.AT_END)
086            };
087    
088    }