1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   */
22  
23  package com.liferay.portal.model;
24  
25  import com.liferay.portal.theme.ThemeCompanyLimit;
26  import com.liferay.portal.theme.ThemeGroupLimit;
27  
28  import java.io.Serializable;
29  
30  import java.util.List;
31  import java.util.Map;
32  import java.util.Properties;
33  
34  /**
35   * <a href="Theme.java.html"><b><i>View Source</i></b></a>
36   *
37   * @author Brian Wing Shun Chan
38   */
39  public interface Theme extends Comparable<Theme>, Plugin, Serializable {
40  
41      public String getThemeId();
42  
43      public ThemeCompanyLimit getThemeCompanyLimit();
44  
45      public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit);
46  
47      public boolean isCompanyAvailable(long companyId);
48  
49      public ThemeGroupLimit getThemeGroupLimit();
50  
51      public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit);
52  
53      public boolean isGroupAvailable(long groupId);
54  
55      public long getTimestamp();
56  
57      public void setTimestamp(long timestamp);
58  
59      public String getName();
60  
61      public void setName(String name);
62  
63      public String getRootPath();
64  
65      public void setRootPath(String rootPath);
66  
67      public String getTemplatesPath();
68  
69      public void setTemplatesPath(String templatesPath);
70  
71      public String getCssPath();
72  
73      public void setCssPath(String cssPath);
74  
75      public String getImagesPath();
76  
77      public void setImagesPath(String imagesPath);
78  
79      public String getJavaScriptPath();
80  
81      public void setJavaScriptPath(String javaScriptPath);
82  
83      public String getVirtualPath();
84  
85      public void setVirtualPath(String virtualPath);
86  
87      public String getTemplateExtension();
88  
89      public void setTemplateExtension(String templateExtension);
90  
91      public Properties getSettings();
92  
93      public String getSetting(String key);
94  
95      public void setSetting(String key, String value);
96  
97      public boolean getWapTheme();
98  
99      public boolean isWapTheme();
100 
101     public void setWapTheme(boolean wapTheme);
102 
103     public List<ColorScheme> getColorSchemes();
104 
105     public Map<String, ColorScheme> getColorSchemesMap();
106 
107     public boolean hasColorSchemes();
108 
109     public SpriteImage getSpriteImage(String fileName);
110 
111     public void setSpriteImages(
112         String spriteFileName, Properties spriteProperties);
113 
114     public String getServletContextName();
115 
116     public void setServletContextName(String servletContextName);
117 
118     public boolean getWARFile();
119 
120     public boolean isWARFile();
121 
122     public String getContextPath();
123 
124     public boolean getLoadFromServletContext();
125 
126     public boolean isLoadFromServletContext();
127 
128     public void setLoadFromServletContext(boolean loadFromServletContext);
129 
130     public String getVelocityResourceListener();
131 
132 }