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
View Source
- Author:
- Brian Wing Shun Chan
- See Also:
- Serialized Form
| Fields inherited from interface com.liferay.portal.model.Plugin |
TYPE_HOOK, TYPE_LAYOUT_TEMPLATE, TYPE_PORTLET, TYPE_THEME, TYPE_WEB |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, 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()
getDefaultWapThemeId
public static java.lang.String getDefaultWapThemeId()
getThemeId
public java.lang.String getThemeId()
- Specified by:
getThemeId 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
getThemeCompanyLimit
public com.liferay.portal.theme.ThemeCompanyLimit getThemeCompanyLimit()
- Specified by:
getThemeCompanyLimit 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
isCompanyAvailable
public boolean isCompanyAvailable(long companyId)
- Specified by:
isCompanyAvailable 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
setThemeGroupLimit
public void setThemeGroupLimit(com.liferay.portal.theme.ThemeGroupLimit themeGroupLimit)
- Specified by:
setThemeGroupLimit in interface com.liferay.portal.model.Theme
isGroupAvailable
public boolean isGroupAvailable(long groupId)
- Specified by:
isGroupAvailable in interface com.liferay.portal.model.Theme
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp in interface com.liferay.portal.model.Theme
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestamp in interface com.liferay.portal.model.Theme
getName
public java.lang.String getName()
- Specified by:
getName 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
getRootPath
public java.lang.String getRootPath()
- Specified by:
getRootPath 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
getTemplatesPath
public java.lang.String getTemplatesPath()
- Specified by:
getTemplatesPath 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
getCssPath
public java.lang.String getCssPath()
- Specified by:
getCssPath in interface com.liferay.portal.model.Theme
setCssPath
public void setCssPath(java.lang.String cssPath)
- Specified by:
setCssPath in interface com.liferay.portal.model.Theme
getImagesPath
public java.lang.String getImagesPath()
- Specified by:
getImagesPath 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
getJavaScriptPath
public java.lang.String getJavaScriptPath()
- Specified by:
getJavaScriptPath 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
getVirtualPath
public java.lang.String getVirtualPath()
- Specified by:
getVirtualPath 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
getTemplateExtension
public java.lang.String getTemplateExtension()
- Specified by:
getTemplateExtension 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
getSettings
public java.util.Properties getSettings()
- Specified by:
getSettings 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
setSetting
public void setSetting(java.lang.String key,
java.lang.String value)
- Specified by:
setSetting in interface com.liferay.portal.model.Theme
getWapTheme
public boolean getWapTheme()
- Specified by:
getWapTheme in interface com.liferay.portal.model.Theme
isWapTheme
public boolean isWapTheme()
- Specified by:
isWapTheme in interface com.liferay.portal.model.Theme
setWapTheme
public void setWapTheme(boolean wapTheme)
- Specified by:
setWapTheme in interface com.liferay.portal.model.Theme
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
hasColorSchemes
public boolean hasColorSchemes()
- Specified by:
hasColorSchemes 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
setSpriteImages
public void setSpriteImages(java.lang.String spriteFileName,
java.util.Properties spriteProperties)
- Specified by:
setSpriteImages in interface com.liferay.portal.model.Theme
getServletContextName
public java.lang.String getServletContextName()
- Specified by:
getServletContextName 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
getWARFile
public boolean getWARFile()
- Specified by:
getWARFile in interface com.liferay.portal.model.Theme
isWARFile
public boolean isWARFile()
- Specified by:
isWARFile in interface com.liferay.portal.model.Theme
getContextPath
public java.lang.String getContextPath()
- Specified by:
getContextPath in interface com.liferay.portal.model.Theme
getLoadFromServletContext
public boolean getLoadFromServletContext()
- Specified by:
getLoadFromServletContext in interface com.liferay.portal.model.Theme
isLoadFromServletContext
public boolean isLoadFromServletContext()
- Specified by:
isLoadFromServletContext in interface com.liferay.portal.model.Theme
setLoadFromServletContext
public void setLoadFromServletContext(boolean loadFromServletContext)
- Specified by:
setLoadFromServletContext in interface com.liferay.portal.model.Theme
getVelocityResourceListener
public java.lang.String getVelocityResourceListener()
- Specified by:
getVelocityResourceListener 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
isAvailable
protected boolean isAvailable(com.liferay.portal.theme.ThemeCompanyLimit limit,
long id)