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.model.Plugin, com.liferay.portal.model.Theme, java.io.Serializable, java.lang.Comparable<com.liferay.portal.model.Theme>
public class ThemeImpl
- extends PluginBaseImpl
- implements com.liferay.portal.model.Theme
- Author:
- Brian Wing Shun Chan, Julio Camarero, Raymond Augé
- See Also:
- Serialized Form
| Fields inherited from interface com.liferay.portal.model.Plugin |
TYPE_EXT, TYPE_HOOK, TYPE_LAYOUT_TEMPLATE, TYPE_PORTLET, TYPE_THEME, TYPE_WEB |
|
Method Summary |
void |
addSetting(java.lang.String key,
java.lang.String value,
boolean configurable,
java.lang.String type,
java.lang.String[] options,
java.lang.String script)
|
int |
compareTo(com.liferay.portal.model.Theme theme)
|
boolean |
equals(java.lang.Object obj)
|
java.util.List<com.liferay.portal.model.ColorScheme> |
getColorSchemes()
|
java.util.Map<java.lang.String,com.liferay.portal.model.ColorScheme> |
getColorSchemesMap()
|
java.util.Map<java.lang.String,com.liferay.portal.model.ThemeSetting> |
getConfigurableSettings()
|
java.lang.String |
getContextPath()
|
java.lang.String |
getCssPath()
|
static java.lang.String |
getDefaultRegularThemeId()
Deprecated. |
static java.lang.String |
getDefaultRegularThemeId(long companyId)
|
static java.lang.String |
getDefaultWapThemeId()
Deprecated. |
static java.lang.String |
getDefaultWapThemeId(long companyId)
|
java.lang.String |
getDevice()
|
java.lang.String |
getFreeMarkerTemplateLoader()
|
java.lang.String |
getImagesPath()
|
java.lang.String |
getJavaScriptPath()
|
boolean |
getLoadFromServletContext()
|
java.lang.String |
getName()
|
java.lang.String |
getPluginId()
|
java.lang.String |
getPluginType()
|
java.lang.String |
getResourcePath(javax.servlet.ServletContext servletContext,
java.lang.String portletId,
java.lang.String path)
|
java.lang.String |
getRootPath()
|
java.lang.String |
getServletContextName()
|
java.lang.String |
getSetting(java.lang.String key)
|
java.lang.String[] |
getSettingOptions(java.lang.String key)
|
java.util.Map<java.lang.String,com.liferay.portal.model.ThemeSetting> |
getSettings()
|
java.util.Properties |
getSettingsProperties()
|
com.liferay.portal.model.SpriteImage |
getSpriteImage(java.lang.String fileName)
|
java.lang.String |
getStaticResourcePath()
|
java.lang.String |
getTemplateExtension()
|
java.lang.String |
getTemplatesPath()
|
com.liferay.portal.theme.ThemeCompanyLimit |
getThemeCompanyLimit()
|
com.liferay.portal.theme.ThemeGroupLimit |
getThemeGroupLimit()
|
java.lang.String |
getThemeId()
|
long |
getTimestamp()
|
java.lang.String |
getVelocityResourceListener()
|
java.lang.String |
getVirtualPath()
|
boolean |
getWapTheme()
|
boolean |
getWARFile()
|
boolean |
hasColorSchemes()
|
int |
hashCode()
|
protected boolean |
isAvailable(com.liferay.portal.theme.ThemeCompanyLimit limit,
long id)
|
boolean |
isCompanyAvailable(long companyId)
|
boolean |
isGroupAvailable(long groupId)
|
boolean |
isLoadFromServletContext()
|
boolean |
isWapTheme()
|
boolean |
isWARFile()
|
boolean |
resourceExists(javax.servlet.ServletContext servletContext,
java.lang.String portletId,
java.lang.String path)
|
void |
setCssPath(java.lang.String cssPath)
|
void |
setImagesPath(java.lang.String imagesPath)
|
void |
setJavaScriptPath(java.lang.String javaScriptPath)
|
void |
setLoadFromServletContext(boolean loadFromServletContext)
|
void |
setName(java.lang.String name)
|
void |
setRootPath(java.lang.String rootPath)
|
void |
setServletContextName(java.lang.String servletContextName)
|
void |
setSetting(java.lang.String key,
java.lang.String value)
|
void |
setSpriteImages(java.lang.String spriteFileName,
java.util.Properties spriteProperties)
|
void |
setTemplateExtension(java.lang.String templateExtension)
|
void |
setTemplatesPath(java.lang.String templatesPath)
|
void |
setThemeCompanyLimit(com.liferay.portal.theme.ThemeCompanyLimit themeCompanyLimit)
|
void |
setThemeGroupLimit(com.liferay.portal.theme.ThemeGroupLimit themeGroupLimit)
|
void |
setTimestamp(long timestamp)
|
void |
setVirtualPath(java.lang.String virtualPath)
|
void |
setWapTheme(boolean wapTheme)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.model.Plugin |
getDefaultPluginSetting, getDefaultPluginSetting, getPluginPackage, setDefaultPluginSetting, setPluginPackage |
ThemeImpl
public ThemeImpl()
ThemeImpl
public ThemeImpl(java.lang.String themeId)
ThemeImpl
public ThemeImpl(java.lang.String themeId,
java.lang.String name)
getDefaultRegularThemeId
public static java.lang.String getDefaultRegularThemeId()
- Deprecated.
getDefaultRegularThemeId
public static java.lang.String getDefaultRegularThemeId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getDefaultWapThemeId
public static java.lang.String getDefaultWapThemeId()
- Deprecated.
getDefaultWapThemeId
public static java.lang.String getDefaultWapThemeId(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
addSetting
public void addSetting(java.lang.String key,
java.lang.String value,
boolean configurable,
java.lang.String type,
java.lang.String[] options,
java.lang.String script)
- Specified by:
addSetting in interface com.liferay.portal.model.Theme
compareTo
public int compareTo(com.liferay.portal.model.Theme theme)
- Specified by:
compareTo in interface java.lang.Comparable<com.liferay.portal.model.Theme>
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
getColorSchemes
public java.util.List<com.liferay.portal.model.ColorScheme> getColorSchemes()
- Specified by:
getColorSchemes in interface com.liferay.portal.model.Theme
getColorSchemesMap
public java.util.Map<java.lang.String,com.liferay.portal.model.ColorScheme> getColorSchemesMap()
- Specified by:
getColorSchemesMap in interface com.liferay.portal.model.Theme
getConfigurableSettings
public java.util.Map<java.lang.String,com.liferay.portal.model.ThemeSetting> getConfigurableSettings()
- Specified by:
getConfigurableSettings in interface com.liferay.portal.model.Theme
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath in interface com.liferay.portal.model.Theme
getCssPath
public java.lang.String getCssPath()
- Specified by:
getCssPath in interface com.liferay.portal.model.Theme
getDevice
public java.lang.String getDevice()
- Specified by:
getDevice in interface com.liferay.portal.model.Theme
getFreeMarkerTemplateLoader
public java.lang.String getFreeMarkerTemplateLoader()
- Specified by:
getFreeMarkerTemplateLoader in interface com.liferay.portal.model.Theme
getImagesPath
public java.lang.String getImagesPath()
- Specified by:
getImagesPath in interface com.liferay.portal.model.Theme
getJavaScriptPath
public java.lang.String getJavaScriptPath()
- Specified by:
getJavaScriptPath in interface com.liferay.portal.model.Theme
getLoadFromServletContext
public boolean getLoadFromServletContext()
- Specified by:
getLoadFromServletContext in interface com.liferay.portal.model.Theme
getName
public java.lang.String getName()
- Specified by:
getName in interface com.liferay.portal.model.Theme
getPluginId
public java.lang.String getPluginId()
- Specified by:
getPluginId in interface com.liferay.portal.model.Plugin
getPluginType
public java.lang.String getPluginType()
- Specified by:
getPluginType in interface com.liferay.portal.model.Plugin
getResourcePath
public java.lang.String getResourcePath(javax.servlet.ServletContext servletContext,
java.lang.String portletId,
java.lang.String path)
- Specified by:
getResourcePath in interface com.liferay.portal.model.Theme
getRootPath
public java.lang.String getRootPath()
- Specified by:
getRootPath in interface com.liferay.portal.model.Theme
getServletContextName
public java.lang.String getServletContextName()
- Specified by:
getServletContextName in interface com.liferay.portal.model.Theme
getSetting
public java.lang.String getSetting(java.lang.String key)
- Specified by:
getSetting in interface com.liferay.portal.model.Theme
getSettingOptions
public java.lang.String[] getSettingOptions(java.lang.String key)
- Specified by:
getSettingOptions in interface com.liferay.portal.model.Theme
getSettings
public java.util.Map<java.lang.String,com.liferay.portal.model.ThemeSetting> getSettings()
- Specified by:
getSettings in interface com.liferay.portal.model.Theme
getSettingsProperties
public java.util.Properties getSettingsProperties()
- Specified by:
getSettingsProperties in interface com.liferay.portal.model.Theme
getSpriteImage
public com.liferay.portal.model.SpriteImage getSpriteImage(java.lang.String fileName)
- Specified by:
getSpriteImage in interface com.liferay.portal.model.Theme
getStaticResourcePath
public java.lang.String getStaticResourcePath()
- Specified by:
getStaticResourcePath in interface com.liferay.portal.model.Theme
getTemplateExtension
public java.lang.String getTemplateExtension()
- Specified by:
getTemplateExtension in interface com.liferay.portal.model.Theme
getTemplatesPath
public java.lang.String getTemplatesPath()
- Specified by:
getTemplatesPath in interface com.liferay.portal.model.Theme
getThemeCompanyLimit
public com.liferay.portal.theme.ThemeCompanyLimit getThemeCompanyLimit()
- Specified by:
getThemeCompanyLimit in interface com.liferay.portal.model.Theme
getThemeGroupLimit
public com.liferay.portal.theme.ThemeGroupLimit getThemeGroupLimit()
- Specified by:
getThemeGroupLimit in interface com.liferay.portal.model.Theme
getThemeId
public java.lang.String getThemeId()
- Specified by:
getThemeId in interface com.liferay.portal.model.Theme
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp in interface com.liferay.portal.model.Theme
getVelocityResourceListener
public java.lang.String getVelocityResourceListener()
- Specified by:
getVelocityResourceListener in interface com.liferay.portal.model.Theme
getVirtualPath
public java.lang.String getVirtualPath()
- Specified by:
getVirtualPath in interface com.liferay.portal.model.Theme
getWapTheme
public boolean getWapTheme()
- Specified by:
getWapTheme in interface com.liferay.portal.model.Theme
getWARFile
public boolean getWARFile()
- Specified by:
getWARFile in interface com.liferay.portal.model.Theme
hasColorSchemes
public boolean hasColorSchemes()
- Specified by:
hasColorSchemes in interface com.liferay.portal.model.Theme
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
isCompanyAvailable
public boolean isCompanyAvailable(long companyId)
- Specified by:
isCompanyAvailable in interface com.liferay.portal.model.Theme
isGroupAvailable
public boolean isGroupAvailable(long groupId)
- Specified by:
isGroupAvailable in interface com.liferay.portal.model.Theme
isLoadFromServletContext
public boolean isLoadFromServletContext()
- Specified by:
isLoadFromServletContext in interface com.liferay.portal.model.Theme
isWapTheme
public boolean isWapTheme()
- Specified by:
isWapTheme in interface com.liferay.portal.model.Theme
isWARFile
public boolean isWARFile()
- Specified by:
isWARFile in interface com.liferay.portal.model.Theme
resourceExists
public boolean resourceExists(javax.servlet.ServletContext servletContext,
java.lang.String portletId,
java.lang.String path)
throws java.lang.Exception
- Specified by:
resourceExists in interface com.liferay.portal.model.Theme
- Throws:
java.lang.Exception
setCssPath
public void setCssPath(java.lang.String cssPath)
- Specified by:
setCssPath in interface com.liferay.portal.model.Theme
setImagesPath
public void setImagesPath(java.lang.String imagesPath)
- Specified by:
setImagesPath in interface com.liferay.portal.model.Theme
setJavaScriptPath
public void setJavaScriptPath(java.lang.String javaScriptPath)
- Specified by:
setJavaScriptPath in interface com.liferay.portal.model.Theme
setLoadFromServletContext
public void setLoadFromServletContext(boolean loadFromServletContext)
- Specified by:
setLoadFromServletContext in interface com.liferay.portal.model.Theme
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface com.liferay.portal.model.Theme
setRootPath
public void setRootPath(java.lang.String rootPath)
- Specified by:
setRootPath in interface com.liferay.portal.model.Theme
setServletContextName
public void setServletContextName(java.lang.String servletContextName)
- Specified by:
setServletContextName in interface com.liferay.portal.model.Theme
setSetting
public void setSetting(java.lang.String key,
java.lang.String value)
- Specified by:
setSetting in interface com.liferay.portal.model.Theme
setSpriteImages
public void setSpriteImages(java.lang.String spriteFileName,
java.util.Properties spriteProperties)
- Specified by:
setSpriteImages in interface com.liferay.portal.model.Theme
setTemplateExtension
public void setTemplateExtension(java.lang.String templateExtension)
- Specified by:
setTemplateExtension in interface com.liferay.portal.model.Theme
setTemplatesPath
public void setTemplatesPath(java.lang.String templatesPath)
- Specified by:
setTemplatesPath in interface com.liferay.portal.model.Theme
setThemeCompanyLimit
public void setThemeCompanyLimit(com.liferay.portal.theme.ThemeCompanyLimit themeCompanyLimit)
- Specified by:
setThemeCompanyLimit in interface com.liferay.portal.model.Theme
setThemeGroupLimit
public void setThemeGroupLimit(com.liferay.portal.theme.ThemeGroupLimit themeGroupLimit)
- Specified by:
setThemeGroupLimit in interface com.liferay.portal.model.Theme
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestamp in interface com.liferay.portal.model.Theme
setVirtualPath
public void setVirtualPath(java.lang.String virtualPath)
- Specified by:
setVirtualPath in interface com.liferay.portal.model.Theme
setWapTheme
public void setWapTheme(boolean wapTheme)
- Specified by:
setWapTheme in interface com.liferay.portal.model.Theme
isAvailable
protected boolean isAvailable(com.liferay.portal.theme.ThemeCompanyLimit limit,
long id)