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.portal.model;
016    
017    import com.liferay.portal.theme.ThemeCompanyLimit;
018    import com.liferay.portal.theme.ThemeGroupLimit;
019    
020    import java.io.Serializable;
021    
022    import java.util.List;
023    import java.util.Map;
024    import java.util.Properties;
025    
026    /**
027     * @author Brian Wing Shun Chan
028     */
029    public interface Theme extends Comparable<Theme>, Plugin, Serializable {
030    
031            public String getThemeId();
032    
033            public ThemeCompanyLimit getThemeCompanyLimit();
034    
035            public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit);
036    
037            public boolean isCompanyAvailable(long companyId);
038    
039            public ThemeGroupLimit getThemeGroupLimit();
040    
041            public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit);
042    
043            public boolean isGroupAvailable(long groupId);
044    
045            public long getTimestamp();
046    
047            public void setTimestamp(long timestamp);
048    
049            public String getName();
050    
051            public void setName(String name);
052    
053            public String getRootPath();
054    
055            public void setRootPath(String rootPath);
056    
057            public String getTemplatesPath();
058    
059            public void setTemplatesPath(String templatesPath);
060    
061            public String getCssPath();
062    
063            public void setCssPath(String cssPath);
064    
065            public String getImagesPath();
066    
067            public void setImagesPath(String imagesPath);
068    
069            public String getJavaScriptPath();
070    
071            public void setJavaScriptPath(String javaScriptPath);
072    
073            public String getVirtualPath();
074    
075            public void setVirtualPath(String virtualPath);
076    
077            public String getTemplateExtension();
078    
079            public void setTemplateExtension(String templateExtension);
080    
081            public Properties getSettings();
082    
083            public String getSetting(String key);
084    
085            public void setSetting(String key, String value);
086    
087            public boolean getWapTheme();
088    
089            public boolean isWapTheme();
090    
091            public void setWapTheme(boolean wapTheme);
092    
093            public List<ColorScheme> getColorSchemes();
094    
095            public Map<String, ColorScheme> getColorSchemesMap();
096    
097            public boolean hasColorSchemes();
098    
099            public SpriteImage getSpriteImage(String fileName);
100    
101            public void setSpriteImages(
102                    String spriteFileName, Properties spriteProperties);
103    
104            public String getServletContextName();
105    
106            public void setServletContextName(String servletContextName);
107    
108            public boolean getWARFile();
109    
110            public boolean isWARFile();
111    
112            public String getContextPath();
113    
114            public String getFreeMarkerTemplateLoader();
115    
116            public boolean getLoadFromServletContext();
117    
118            public boolean isLoadFromServletContext();
119    
120            public void setLoadFromServletContext(boolean loadFromServletContext);
121    
122            public String getVelocityResourceListener();
123    
124    }