com.liferay.portal.model.impl
Class ThemeImpl
java.lang.Object
com.liferay.portal.model.impl.PluginBaseImpl
com.liferay.portal.model.impl.ThemeImpl
- All Implemented Interfaces:
- Plugin, Theme, Serializable, Comparable<Theme>
- Direct Known Subclasses:
- StagedThemeImpl
public class ThemeImpl
- extends PluginBaseImpl
- implements Theme
- See Also:
- Serialized Form
|
Method Summary |
void |
addSetting(String key,
String value,
boolean configurable,
String type,
String[] options,
String script)
|
int |
compareTo(Theme theme)
|
boolean |
equals(Object obj)
|
List<ColorScheme> |
getColorSchemes()
|
Map<String,ColorScheme> |
getColorSchemesMap()
|
Map<String,ThemeSetting> |
getConfigurableSettings()
|
String |
getContextPath()
|
String |
getCssPath()
|
String |
getDevice()
|
String |
getFreeMarkerTemplateLoader()
|
String |
getImagesPath()
|
String |
getJavaScriptPath()
|
boolean |
getLoadFromServletContext()
|
String |
getName()
|
String |
getPluginId()
|
String |
getPluginType()
|
List<PortletDecorator> |
getPortletDecorators()
|
Map<String,PortletDecorator> |
getPortletDecoratorsMap()
|
String |
getResourcePath(javax.servlet.ServletContext servletContext,
String portletId,
String path)
|
String |
getRootPath()
|
String |
getServletContextName()
|
String |
getSetting(String key)
|
String[] |
getSettingOptions(String key)
|
Map<String,ThemeSetting> |
getSettings()
|
Properties |
getSettingsProperties()
|
SpriteImage |
getSpriteImage(String fileName)
|
String |
getStaticResourcePath()
|
String |
getTemplateExtension()
|
String |
getTemplatesPath()
|
ThemeCompanyLimit |
getThemeCompanyLimit()
|
ThemeGroupLimit |
getThemeGroupLimit()
|
String |
getThemeId()
|
long |
getTimestamp()
|
String |
getVelocityResourceListener()
|
String |
getVirtualPath()
|
boolean |
getWapTheme()
|
boolean |
getWARFile()
|
boolean |
hasColorSchemes()
|
int |
hashCode()
|
protected boolean |
isAvailable(ThemeCompanyLimit limit,
long id)
|
boolean |
isCompanyAvailable(long companyId)
|
boolean |
isControlPanelTheme()
|
boolean |
isGroupAvailable(long groupId)
|
boolean |
isLoadFromServletContext()
|
boolean |
isPageTheme()
|
boolean |
isWapTheme()
|
boolean |
isWARFile()
|
boolean |
resourceExists(javax.servlet.ServletContext servletContext,
String portletId,
String path)
|
void |
setControlPanelTheme(boolean controlPanelTheme)
|
void |
setCssPath(String cssPath)
|
void |
setImagesPath(String imagesPath)
|
void |
setJavaScriptPath(String javaScriptPath)
|
void |
setLoadFromServletContext(boolean loadFromServletContext)
|
void |
setName(String name)
|
void |
setPageTheme(boolean pageTheme)
|
void |
setRootPath(String rootPath)
|
void |
setServletContextName(String servletContextName)
|
void |
setSetting(String key,
String value)
|
void |
setSpriteImages(String spriteFileName,
Properties spriteProperties)
|
void |
setTemplateExtension(String templateExtension)
|
void |
setTemplatesPath(String templatesPath)
|
void |
setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit)
|
void |
setThemeGroupLimit(ThemeGroupLimit themeGroupLimit)
|
void |
setTimestamp(long timestamp)
|
void |
setVirtualPath(String virtualPath)
|
void |
setWapTheme(boolean wapTheme)
|
ThemeImpl
public ThemeImpl()
ThemeImpl
public ThemeImpl(String themeId)
ThemeImpl
public ThemeImpl(String themeId,
String name)
addSetting
public void addSetting(String key,
String value,
boolean configurable,
String type,
String[] options,
String script)
- Specified by:
addSetting in interface Theme
compareTo
public int compareTo(Theme theme)
- Specified by:
compareTo in interface Comparable<Theme>
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
getColorSchemes
public List<ColorScheme> getColorSchemes()
- Specified by:
getColorSchemes in interface Theme
getColorSchemesMap
public Map<String,ColorScheme> getColorSchemesMap()
- Specified by:
getColorSchemesMap in interface Theme
getConfigurableSettings
public Map<String,ThemeSetting> getConfigurableSettings()
- Specified by:
getConfigurableSettings in interface Theme
getContextPath
public String getContextPath()
- Specified by:
getContextPath in interface Theme
getCssPath
public String getCssPath()
- Specified by:
getCssPath in interface Theme
getDevice
public String getDevice()
- Specified by:
getDevice in interface Theme
getFreeMarkerTemplateLoader
public String getFreeMarkerTemplateLoader()
- Specified by:
getFreeMarkerTemplateLoader in interface Theme
getImagesPath
public String getImagesPath()
- Specified by:
getImagesPath in interface Theme
getJavaScriptPath
public String getJavaScriptPath()
- Specified by:
getJavaScriptPath in interface Theme
getLoadFromServletContext
public boolean getLoadFromServletContext()
- Specified by:
getLoadFromServletContext in interface Theme
getName
public String getName()
- Specified by:
getName in interface Theme
getPluginId
public String getPluginId()
- Specified by:
getPluginId in interface Plugin
getPluginType
public String getPluginType()
- Specified by:
getPluginType in interface Plugin
getPortletDecorators
public List<PortletDecorator> getPortletDecorators()
- Specified by:
getPortletDecorators in interface Theme
getPortletDecoratorsMap
public Map<String,PortletDecorator> getPortletDecoratorsMap()
- Specified by:
getPortletDecoratorsMap in interface Theme
getResourcePath
public String getResourcePath(javax.servlet.ServletContext servletContext,
String portletId,
String path)
- Specified by:
getResourcePath in interface Theme
getRootPath
public String getRootPath()
- Specified by:
getRootPath in interface Theme
getServletContextName
public String getServletContextName()
- Specified by:
getServletContextName in interface Theme
getSetting
public String getSetting(String key)
- Specified by:
getSetting in interface Theme
getSettingOptions
public String[] getSettingOptions(String key)
- Specified by:
getSettingOptions in interface Theme
getSettings
public Map<String,ThemeSetting> getSettings()
- Specified by:
getSettings in interface Theme
getSettingsProperties
public Properties getSettingsProperties()
- Specified by:
getSettingsProperties in interface Theme
getSpriteImage
public SpriteImage getSpriteImage(String fileName)
- Specified by:
getSpriteImage in interface Theme
getStaticResourcePath
public String getStaticResourcePath()
- Specified by:
getStaticResourcePath in interface Theme
getTemplateExtension
public String getTemplateExtension()
- Specified by:
getTemplateExtension in interface Theme
getTemplatesPath
public String getTemplatesPath()
- Specified by:
getTemplatesPath in interface Theme
getThemeCompanyLimit
public ThemeCompanyLimit getThemeCompanyLimit()
- Specified by:
getThemeCompanyLimit in interface Theme
getThemeGroupLimit
public ThemeGroupLimit getThemeGroupLimit()
- Specified by:
getThemeGroupLimit in interface Theme
getThemeId
public String getThemeId()
- Specified by:
getThemeId in interface Theme
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp in interface Theme
getVelocityResourceListener
public String getVelocityResourceListener()
- Specified by:
getVelocityResourceListener in interface Theme
getVirtualPath
public String getVirtualPath()
- Specified by:
getVirtualPath in interface Theme
getWapTheme
public boolean getWapTheme()
- Specified by:
getWapTheme in interface Theme
getWARFile
public boolean getWARFile()
- Specified by:
getWARFile in interface Theme
hasColorSchemes
public boolean hasColorSchemes()
- Specified by:
hasColorSchemes in interface Theme
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
isCompanyAvailable
public boolean isCompanyAvailable(long companyId)
- Specified by:
isCompanyAvailable in interface Theme
isControlPanelTheme
public boolean isControlPanelTheme()
- Specified by:
isControlPanelTheme in interface Theme
isGroupAvailable
public boolean isGroupAvailable(long groupId)
- Specified by:
isGroupAvailable in interface Theme
isLoadFromServletContext
public boolean isLoadFromServletContext()
- Specified by:
isLoadFromServletContext in interface Theme
isPageTheme
public boolean isPageTheme()
- Specified by:
isPageTheme in interface Theme
isWapTheme
public boolean isWapTheme()
- Specified by:
isWapTheme in interface Theme
isWARFile
public boolean isWARFile()
- Specified by:
isWARFile in interface Theme
resourceExists
public boolean resourceExists(javax.servlet.ServletContext servletContext,
String portletId,
String path)
throws Exception
- Specified by:
resourceExists in interface Theme
- Throws:
Exception
setControlPanelTheme
public void setControlPanelTheme(boolean controlPanelTheme)
- Specified by:
setControlPanelTheme in interface Theme
setCssPath
public void setCssPath(String cssPath)
- Specified by:
setCssPath in interface Theme
setImagesPath
public void setImagesPath(String imagesPath)
- Specified by:
setImagesPath in interface Theme
setJavaScriptPath
public void setJavaScriptPath(String javaScriptPath)
- Specified by:
setJavaScriptPath in interface Theme
setLoadFromServletContext
public void setLoadFromServletContext(boolean loadFromServletContext)
- Specified by:
setLoadFromServletContext in interface Theme
setName
public void setName(String name)
- Specified by:
setName in interface Theme
setPageTheme
public void setPageTheme(boolean pageTheme)
- Specified by:
setPageTheme in interface Theme
setRootPath
public void setRootPath(String rootPath)
- Specified by:
setRootPath in interface Theme
setServletContextName
public void setServletContextName(String servletContextName)
- Specified by:
setServletContextName in interface Theme
setSetting
public void setSetting(String key,
String value)
- Specified by:
setSetting in interface Theme
setSpriteImages
public void setSpriteImages(String spriteFileName,
Properties spriteProperties)
- Specified by:
setSpriteImages in interface Theme
setTemplateExtension
public void setTemplateExtension(String templateExtension)
- Specified by:
setTemplateExtension in interface Theme
setTemplatesPath
public void setTemplatesPath(String templatesPath)
- Specified by:
setTemplatesPath in interface Theme
setThemeCompanyLimit
public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit)
- Specified by:
setThemeCompanyLimit in interface Theme
setThemeGroupLimit
public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit)
- Specified by:
setThemeGroupLimit in interface Theme
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestamp in interface Theme
setVirtualPath
public void setVirtualPath(String virtualPath)
- Specified by:
setVirtualPath in interface Theme
setWapTheme
public void setWapTheme(boolean wapTheme)
- Specified by:
setWapTheme in interface Theme
isAvailable
protected boolean isAvailable(ThemeCompanyLimit limit,
long id)