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.theme;
16  
17  import com.liferay.portal.model.Account;
18  import com.liferay.portal.model.ColorScheme;
19  import com.liferay.portal.model.Company;
20  import com.liferay.portal.model.Contact;
21  import com.liferay.portal.model.Layout;
22  import com.liferay.portal.model.LayoutTypePortlet;
23  import com.liferay.portal.model.Theme;
24  import com.liferay.portal.model.User;
25  import com.liferay.portal.security.permission.PermissionChecker;
26  import com.liferay.portal.theme.PortletDisplay;
27  import com.liferay.portal.theme.ThemeDisplay;
28  
29  import java.util.List;
30  import java.util.Locale;
31  import java.util.TimeZone;
32  
33  import javax.servlet.jsp.tagext.TagData;
34  import javax.servlet.jsp.tagext.TagExtraInfo;
35  import javax.servlet.jsp.tagext.VariableInfo;
36  
37  /**
38   * <a href="DefineObjectsTei.java.html"><b><i>View Source</i></b></a>
39   *
40   * @author Brian Wing Shun Chan
41   */
42  public class DefineObjectsTei extends TagExtraInfo {
43  
44      public VariableInfo[] getVariableInfo(TagData tagData) {
45          return _variableInfo;
46      }
47  
48      private static VariableInfo[] _variableInfo = new VariableInfo[] {
49          new VariableInfo(
50              "themeDisplay", ThemeDisplay.class.getName(), true,
51              VariableInfo.AT_END),
52          new VariableInfo(
53              "company", Company.class.getName(), true, VariableInfo.AT_END),
54          new VariableInfo(
55              "account", Account.class.getName(), true, VariableInfo.AT_END),
56          new VariableInfo(
57              "user", User.class.getName(), true, VariableInfo.AT_END),
58          new VariableInfo(
59              "realUser", User.class.getName(), true, VariableInfo.AT_END),
60          new VariableInfo(
61              "contact", Contact.class.getName(), true, VariableInfo.AT_END),
62          new VariableInfo(
63              "layout", Layout.class.getName(), true, VariableInfo.AT_END),
64          new VariableInfo(
65              "layouts", List.class.getName(), true, VariableInfo.AT_END),
66          new VariableInfo(
67              "plid", Long.class.getName(), true, VariableInfo.AT_END),
68          new VariableInfo(
69              "layoutTypePortlet", LayoutTypePortlet.class.getName(), true,
70              VariableInfo.AT_END),
71          new VariableInfo(
72              "scopeGroupId", Long.class.getName(), true, VariableInfo.AT_END),
73          new VariableInfo(
74              "permissionChecker", PermissionChecker.class.getName(), true,
75              VariableInfo.AT_END),
76          new VariableInfo(
77              "locale", Locale.class.getName(), true, VariableInfo.AT_END),
78          new VariableInfo(
79              "timeZone", TimeZone.class.getName(), true, VariableInfo.AT_END),
80          new VariableInfo(
81              "theme", Theme.class.getName(), true, VariableInfo.AT_END),
82          new VariableInfo(
83              "colorScheme", ColorScheme.class.getName(), true,
84              VariableInfo.AT_END),
85          new VariableInfo(
86              "portletDisplay", PortletDisplay.class.getName(), true,
87              VariableInfo.AT_END),
88  
89          // Deprecated
90  
91          new VariableInfo(
92              "portletGroupId", Long.class.getName(), true, VariableInfo.AT_END)
93      };
94  
95  }