1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   */
40  public interface Theme extends Comparable<Theme>, Plugin, Serializable {
41  
42      public String getThemeId();
43  
44      public ThemeCompanyLimit getThemeCompanyLimit();
45  
46      public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit);
47  
48      public boolean isCompanyAvailable(long companyId);
49  
50      public ThemeGroupLimit getThemeGroupLimit();
51  
52      public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit);
53  
54      public boolean isGroupAvailable(long groupId);
55  
56      public long getTimestamp();
57  
58      public void setTimestamp(long timestamp);
59  
60      public String getName();
61  
62      public void setName(String name);
63  
64      public String getRootPath();
65  
66      public void setRootPath(String rootPath);
67  
68      public String getTemplatesPath();
69  
70      public void setTemplatesPath(String templatesPath);
71  
72      public String getCssPath();
73  
74      public void setCssPath(String cssPath);
75  
76      public String getImagesPath();
77  
78      public void setImagesPath(String imagesPath);
79  
80      public String getJavaScriptPath();
81  
82      public void setJavaScriptPath(String javaScriptPath);
83  
84      public String getVirtualPath();
85  
86      public void setVirtualPath(String virtualPath);
87  
88      public String getTemplateExtension();
89  
90      public void setTemplateExtension(String templateExtension);
91  
92      public Properties getSettings();
93  
94      public String getSetting(String key);
95  
96      public void setSetting(String key, String value);
97  
98      public boolean getWapTheme();
99  
100     public boolean isWapTheme();
101 
102     public void setWapTheme(boolean wapTheme);
103 
104     public List<ColorScheme> getColorSchemes();
105 
106     public Map<String, ColorScheme> getColorSchemesMap();
107 
108     public boolean hasColorSchemes();
109 
110     public SpriteImage getSpriteImage(String fileName);
111 
112     public void setSpriteImages(
113         String spriteFileName, Properties spriteProperties);
114 
115     public String getServletContextName();
116 
117     public void setServletContextName(String servletContextName);
118 
119     public boolean getWARFile();
120 
121     public boolean isWARFile();
122 
123     public String getContextPath();
124 
125     public boolean getLoadFromServletContext();
126 
127     public boolean isLoadFromServletContext();
128 
129     public void setLoadFromServletContext(boolean loadFromServletContext);
130 
131     public String getVelocityResourceListener();
132 
133 }