Liferay 6.0.5

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:
Plugin, Theme, Serializable, Comparable<Theme>

public class ThemeImpl
extends PluginBaseImpl
implements Theme

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.liferay.portal.model.Plugin
TYPE_EXT, TYPE_HOOK, TYPE_LAYOUT_TEMPLATE, TYPE_PORTLET, TYPE_THEME, TYPE_WEB
 
Constructor Summary
ThemeImpl()
           
ThemeImpl(String themeId)
           
ThemeImpl(String themeId, String name)
           
 
Method Summary
 int compareTo(Theme theme)
           
 boolean equals(Object obj)
           
 List<ColorScheme> getColorSchemes()
           
 Map<String,ColorScheme> getColorSchemesMap()
           
 String getContextPath()
           
 String getCssPath()
           
static String getDefaultRegularThemeId()
          Deprecated.  
static String getDefaultRegularThemeId(long companyId)
           
static String getDefaultWapThemeId()
          Deprecated.  
static String getDefaultWapThemeId(long companyId)
           
 String getFreeMarkerTemplateLoader()
           
 String getImagesPath()
           
 String getJavaScriptPath()
           
 boolean getLoadFromServletContext()
           
 String getName()
           
 String getPluginId()
           
 String getPluginType()
           
 String getRootPath()
           
 String getServletContextName()
           
 String getSetting(String key)
           
 Properties getSettings()
           
 SpriteImage getSpriteImage(String fileName)
           
 String getTemplateExtension()
           
 String getTemplatesPath()
           
 ThemeCompanyLimit getThemeCompanyLimit()
           
 ThemeGroupLimit getThemeGroupLimit()
           
 String getThemeId()
           
 long getTimestamp()
           
 String getVelocityResourceListener()
           
 String getVirtualPath()
           
 boolean getWapTheme()
           
 boolean getWARFile()
           
 boolean hasColorSchemes()
           
 int hashCode()
           
protected  boolean isAvailable(ThemeCompanyLimit limit, long id)
           
 boolean isCompanyAvailable(long companyId)
           
 boolean isGroupAvailable(long groupId)
           
 boolean isLoadFromServletContext()
           
 boolean isWapTheme()
           
 boolean isWARFile()
           
 void setCssPath(String cssPath)
           
 void setImagesPath(String imagesPath)
           
 void setJavaScriptPath(String javaScriptPath)
           
 void setLoadFromServletContext(boolean loadFromServletContext)
           
 void setName(String name)
           
 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(ThemeCompanyLimit themeCompanyLimit)
           
 void setThemeGroupLimit(ThemeGroupLimit themeGroupLimit)
           
 void setTimestamp(long timestamp)
           
 void setVirtualPath(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, 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(String themeId)

ThemeImpl

public ThemeImpl(String themeId,
                 String name)
Method Detail

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)

Liferay 6.0.5