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