001    /**
002     * Copyright (c) 2000-2011 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 List<ColorScheme> getColorSchemes();
032    
033            public Map<String, ColorScheme> getColorSchemesMap();
034    
035            public String getContextPath();
036    
037            public String getCssPath();
038    
039            public String getFreeMarkerTemplateLoader();
040    
041            public String getImagesPath();
042    
043            public String getJavaScriptPath();
044    
045            public boolean getLoadFromServletContext();
046    
047            public String getName();
048    
049            public String getRootPath();
050    
051            public String getServletContextName();
052    
053            public String getSetting(String key);
054    
055            public Properties getSettings();
056    
057            public SpriteImage getSpriteImage(String fileName);
058    
059            public String getStaticResourcePath();
060    
061            public String getTemplateExtension();
062    
063            public String getTemplatesPath();
064    
065            public ThemeCompanyLimit getThemeCompanyLimit();
066    
067            public ThemeGroupLimit getThemeGroupLimit();
068    
069            public String getThemeId();
070    
071            public long getTimestamp();
072    
073            public String getVelocityResourceListener();
074    
075            public String getVirtualPath();
076    
077            public boolean getWapTheme();
078    
079            public boolean getWARFile();
080    
081            public boolean hasColorSchemes();
082    
083            public boolean isCompanyAvailable(long companyId);
084    
085            public boolean isGroupAvailable(long groupId);
086    
087            public boolean isLoadFromServletContext();
088    
089            public boolean isWapTheme();
090    
091            public boolean isWARFile();
092    
093            public void setCssPath(String cssPath);
094    
095            public void setImagesPath(String imagesPath);
096    
097            public void setJavaScriptPath(String javaScriptPath);
098    
099            public void setLoadFromServletContext(boolean loadFromServletContext);
100    
101            public void setName(String name);
102    
103            public void setRootPath(String rootPath);
104    
105            public void setServletContextName(String servletContextName);
106    
107            public void setSetting(String key, String value);
108    
109            public void setSpriteImages(
110                    String spriteFileName, Properties spriteProperties);
111    
112            public void setTemplateExtension(String templateExtension);
113    
114            public void setTemplatesPath(String templatesPath);
115    
116            public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit);
117    
118            public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit);
119    
120            public void setTimestamp(long timestamp);
121    
122            public void setVirtualPath(String virtualPath);
123    
124            public void setWapTheme(boolean wapTheme);
125    
126    }