com.liferay.portal.model.impl
Class ThemeImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.PluginBaseImpl
      extended by 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

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Plugin
TYPE_HOOK, TYPE_LAYOUT_TEMPLATE, TYPE_PORTLET, TYPE_THEME, TYPE_WEB
 
Constructor Summary
ThemeImpl()
           
ThemeImpl(java.lang.String themeId)
           
ThemeImpl(java.lang.String themeId, java.lang.String name)
           
 
Method Summary
 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.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 getImagesPath()
           
 java.lang.String getJavaScriptPath()
           
 boolean getLoadFromServletContext()
           
 java.lang.String getName()
           
 java.lang.String getPluginId()
           
 java.lang.String getPluginType()
           
 java.lang.String getRootPath()
           
 java.lang.String getServletContextName()
           
 java.lang.String getSetting(java.lang.String key)
           
 java.util.Properties getSettings()
           
 com.liferay.portal.model.SpriteImage getSpriteImage(java.lang.String fileName)
           
 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()
           
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()
           
 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 com.liferay.portal.model.impl.PluginBaseImpl
getDefaultPluginSetting, getDefaultPluginSetting, getPluginPackage, setDefaultPluginSetting, setPluginPackage
 
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
 

Constructor Detail

ThemeImpl

public ThemeImpl()

ThemeImpl

public ThemeImpl(java.lang.String themeId)

ThemeImpl

public ThemeImpl(java.lang.String themeId,
                 java.lang.String name)
Method Detail

getDefaultRegularThemeId

public static java.lang.String getDefaultRegularThemeId()
Deprecated. 


getDefaultRegularThemeId

public static java.lang.String getDefaultRegularThemeId(long companyId)
                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getDefaultWapThemeId

public static java.lang.String getDefaultWapThemeId()
Deprecated. 


getDefaultWapThemeId

public static java.lang.String getDefaultWapThemeId(long companyId)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

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)