001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import com.liferay.portal.theme.ThemeCompanyLimit;
024: import com.liferay.portal.theme.ThemeGroupLimit;
025:
026: import java.io.Serializable;
027:
028: import java.util.List;
029: import java.util.Map;
030: import java.util.Properties;
031:
032: /**
033: * <a href="Theme.java.html"><b><i>View Source</i></b></a>
034: *
035: * @author Brian Wing Shun Chan
036: *
037: */
038: public interface Theme extends Comparable, Plugin, Serializable {
039:
040: public String getThemeId();
041:
042: public ThemeCompanyLimit getThemeCompanyLimit();
043:
044: public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit);
045:
046: public boolean isCompanyAvailable(long companyId);
047:
048: public ThemeGroupLimit getThemeGroupLimit();
049:
050: public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit);
051:
052: public boolean isGroupAvailable(long groupId);
053:
054: public long getTimestamp();
055:
056: public void setTimestamp(long timestamp);
057:
058: public String getName();
059:
060: public void setName(String name);
061:
062: public String getRootPath();
063:
064: public void setRootPath(String rootPath);
065:
066: public String getTemplatesPath();
067:
068: public void setTemplatesPath(String templatesPath);
069:
070: public String getCssPath();
071:
072: public void setCssPath(String cssPath);
073:
074: public String getImagesPath();
075:
076: public void setImagesPath(String imagesPath);
077:
078: public String getJavaScriptPath();
079:
080: public void setJavaScriptPath(String javaScriptPath);
081:
082: public String getVirtualPath();
083:
084: public void setVirtualPath(String virtualPath);
085:
086: public String getTemplateExtension();
087:
088: public void setTemplateExtension(String templateExtension);
089:
090: public Properties getSettings();
091:
092: public String getSetting(String key);
093:
094: public void setSetting(String key, String value);
095:
096: public boolean getWapTheme();
097:
098: public boolean isWapTheme();
099:
100: public void setWapTheme(boolean wapTheme);
101:
102: public List getColorSchemes();
103:
104: public Map getColorSchemesMap();
105:
106: public boolean hasColorSchemes();
107:
108: public String getServletContextName();
109:
110: public void setServletContextName(String servletContextName);
111:
112: public boolean getWARFile();
113:
114: public boolean isWARFile();
115:
116: public String getContextPath();
117:
118: public boolean getLoadFromServletContext();
119:
120: public boolean isLoadFromServletContext();
121:
122: public void setLoadFromServletContext(boolean loadFromServletContext);
123:
124: public String getVelocityResourceListener();
125:
126: }
|