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