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