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>
public class ThemeImpl
- extends PluginBaseImpl
- implements Theme
- See Also:
- Serialized Form
ThemeImpl
public ThemeImpl()
ThemeImpl
public ThemeImpl(String themeId)
ThemeImpl
public ThemeImpl(String themeId,
String name)
getDefaultRegularThemeId
public static String getDefaultRegularThemeId()
- Deprecated.
getDefaultRegularThemeId
public static String getDefaultRegularThemeId(long companyId)
throws SystemException
- Throws:
SystemException
getDefaultWapThemeId
public static String getDefaultWapThemeId()
- Deprecated.
getDefaultWapThemeId
public static String getDefaultWapThemeId(long companyId)
throws SystemException
- Throws:
SystemException
getThemeId
public String getThemeId()
- Specified by:
getThemeId in interface Theme
getPluginId
public String getPluginId()
- Specified by:
getPluginId in interface Plugin
getPluginType
public String getPluginType()
- Specified by:
getPluginType in interface Plugin
getThemeCompanyLimit
public ThemeCompanyLimit getThemeCompanyLimit()
- Specified by:
getThemeCompanyLimit in interface Theme
setThemeCompanyLimit
public void setThemeCompanyLimit(ThemeCompanyLimit themeCompanyLimit)
- Specified by:
setThemeCompanyLimit in interface Theme
isCompanyAvailable
public boolean isCompanyAvailable(long companyId)
- Specified by:
isCompanyAvailable in interface Theme
getThemeGroupLimit
public ThemeGroupLimit getThemeGroupLimit()
- Specified by:
getThemeGroupLimit in interface Theme
setThemeGroupLimit
public void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit)
- Specified by:
setThemeGroupLimit in interface Theme
isGroupAvailable
public boolean isGroupAvailable(long groupId)
- Specified by:
isGroupAvailable in interface Theme
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp in interface Theme
setTimestamp
public void setTimestamp(long timestamp)
- Specified by:
setTimestamp in interface Theme
getName
public String getName()
- Specified by:
getName in interface Theme
setName
public void setName(String name)
- Specified by:
setName in interface Theme
getRootPath
public String getRootPath()
- Specified by:
getRootPath in interface Theme
setRootPath
public void setRootPath(String rootPath)
- Specified by:
setRootPath in interface Theme
getTemplatesPath
public String getTemplatesPath()
- Specified by:
getTemplatesPath in interface Theme
setTemplatesPath
public void setTemplatesPath(String templatesPath)
- Specified by:
setTemplatesPath in interface Theme
getCssPath
public String getCssPath()
- Specified by:
getCssPath in interface Theme
setCssPath
public void setCssPath(String cssPath)
- Specified by:
setCssPath in interface Theme
getImagesPath
public String getImagesPath()
- Specified by:
getImagesPath in interface Theme
setImagesPath
public void setImagesPath(String imagesPath)
- Specified by:
setImagesPath in interface Theme
getJavaScriptPath
public String getJavaScriptPath()
- Specified by:
getJavaScriptPath in interface Theme
setJavaScriptPath
public void setJavaScriptPath(String javaScriptPath)
- Specified by:
setJavaScriptPath in interface Theme
getVirtualPath
public String getVirtualPath()
- Specified by:
getVirtualPath in interface Theme
setVirtualPath
public void setVirtualPath(String virtualPath)
- Specified by:
setVirtualPath in interface Theme
getTemplateExtension
public String getTemplateExtension()
- Specified by:
getTemplateExtension in interface Theme
setTemplateExtension
public void setTemplateExtension(String templateExtension)
- Specified by:
setTemplateExtension in interface Theme
getSettings
public Properties getSettings()
- Specified by:
getSettings in interface Theme
getSetting
public String getSetting(String key)
- Specified by:
getSetting in interface Theme
setSetting
public void setSetting(String key,
String value)
- Specified by:
setSetting in interface Theme
getWapTheme
public boolean getWapTheme()
- Specified by:
getWapTheme in interface Theme
isWapTheme
public boolean isWapTheme()
- Specified by:
isWapTheme in interface Theme
setWapTheme
public void setWapTheme(boolean wapTheme)
- Specified by:
setWapTheme in interface Theme
getColorSchemes
public List<ColorScheme> getColorSchemes()
- Specified by:
getColorSchemes in interface Theme
getColorSchemesMap
public Map<String,ColorScheme> getColorSchemesMap()
- Specified by:
getColorSchemesMap in interface Theme
hasColorSchemes
public boolean hasColorSchemes()
- Specified by:
hasColorSchemes in interface Theme
getSpriteImage
public SpriteImage getSpriteImage(String fileName)
- Specified by:
getSpriteImage in interface Theme
setSpriteImages
public void setSpriteImages(String spriteFileName,
Properties spriteProperties)
- Specified by:
setSpriteImages in interface Theme
getServletContextName
public String getServletContextName()
- Specified by:
getServletContextName in interface Theme
setServletContextName
public void setServletContextName(String servletContextName)
- Specified by:
setServletContextName in interface Theme
getWARFile
public boolean getWARFile()
- Specified by:
getWARFile in interface Theme
isWARFile
public boolean isWARFile()
- Specified by:
isWARFile in interface Theme
getContextPath
public String getContextPath()
- Specified by:
getContextPath in interface Theme
getFreeMarkerTemplateLoader
public String getFreeMarkerTemplateLoader()
- Specified by:
getFreeMarkerTemplateLoader in interface Theme
getLoadFromServletContext
public boolean getLoadFromServletContext()
- Specified by:
getLoadFromServletContext in interface Theme
isLoadFromServletContext
public boolean isLoadFromServletContext()
- Specified by:
isLoadFromServletContext in interface Theme
setLoadFromServletContext
public void setLoadFromServletContext(boolean loadFromServletContext)
- Specified by:
setLoadFromServletContext in interface Theme
getVelocityResourceListener
public String getVelocityResourceListener()
- Specified by:
getVelocityResourceListener 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
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
isAvailable
protected boolean isAvailable(ThemeCompanyLimit limit,
long id)