01: /**
02: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
03: *
04: * Permission is hereby granted, free of charge, to any person obtaining a copy
05: * of this software and associated documentation files (the "Software"), to deal
06: * in the Software without restriction, including without limitation the rights
07: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
08: * copies of the Software, and to permit persons to whom the Software is
09: * 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: */package com.liferay.taglib.theme;
22:
23: import com.liferay.portal.kernel.security.permission.PermissionChecker;
24: import com.liferay.portal.model.Account;
25: import com.liferay.portal.model.ColorScheme;
26: import com.liferay.portal.model.Company;
27: import com.liferay.portal.model.Contact;
28: import com.liferay.portal.model.Layout;
29: import com.liferay.portal.model.LayoutTypePortlet;
30: import com.liferay.portal.model.Theme;
31: import com.liferay.portal.model.User;
32: import com.liferay.portal.theme.PortletDisplay;
33: import com.liferay.portal.theme.ThemeDisplay;
34:
35: import java.util.List;
36: import java.util.Locale;
37: import java.util.TimeZone;
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("themeDisplay", ThemeDisplay.class
54: .getName(), true, VariableInfo.AT_END),
55: new VariableInfo("company", Company.class.getName(),
56: true, VariableInfo.AT_END),
57: new VariableInfo("account", Account.class.getName(),
58: true, VariableInfo.AT_END),
59: new VariableInfo("user", User.class.getName(), true,
60: VariableInfo.AT_END),
61: new VariableInfo("realUser", User.class.getName(),
62: true, VariableInfo.AT_END),
63: new VariableInfo("contact", Contact.class.getName(),
64: true, VariableInfo.AT_END),
65: new VariableInfo("layout", Layout.class.getName(),
66: true, VariableInfo.AT_END),
67: new VariableInfo("layouts", List.class.getName(), true,
68: VariableInfo.AT_END),
69: new VariableInfo("plid", Long.class.getName(), true,
70: VariableInfo.AT_END),
71: new VariableInfo("layoutTypePortlet",
72: LayoutTypePortlet.class.getName(), true,
73: VariableInfo.AT_END),
74: new VariableInfo("portletGroupId",
75: Long.class.getName(), true, VariableInfo.AT_END),
76: new VariableInfo("permissionChecker",
77: PermissionChecker.class.getName(), true,
78: VariableInfo.AT_END),
79: new VariableInfo("locale", Locale.class.getName(),
80: true, VariableInfo.AT_END),
81: new VariableInfo("timeZone", TimeZone.class.getName(),
82: true, VariableInfo.AT_END),
83: new VariableInfo("theme", Theme.class.getName(), true,
84: VariableInfo.AT_END),
85: new VariableInfo("colorScheme", ColorScheme.class
86: .getName(), true, VariableInfo.AT_END),
87: new VariableInfo("portletDisplay", PortletDisplay.class
88: .getName(), true, VariableInfo.AT_END) };
89: }
90:
91: }
|