Package com.liferay.portal.model.impl
Class ThemeImpl
Object
com.liferay.portal.model.impl.PluginBaseImpl
com.liferay.portal.model.impl.ThemeImpl
- All Implemented Interfaces:
com.liferay.portal.kernel.model.Plugin
,com.liferay.portal.kernel.model.Theme
,Serializable
,Comparable<com.liferay.portal.kernel.model.Theme>
- Direct Known Subclasses:
StagedThemeImpl
- Author:
- Brian Wing Shun Chan, Julio Camarero, Raymond Augé
- See Also:
-
Field Summary
Fields inherited from interface com.liferay.portal.kernel.model.Plugin
TYPE_HOOK, TYPE_LAYOUT_TEMPLATE, TYPE_PORTLET, TYPE_THEME, TYPE_WEB
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSetting
(String key, String value, boolean configurable, String type, String[] options, String script) int
compareTo
(com.liferay.portal.kernel.model.Theme theme) boolean
List<com.liferay.portal.kernel.model.ColorScheme>
com.liferay.portal.kernel.model.PortletDecorator
boolean
getName()
List<com.liferay.portal.kernel.model.PortletDecorator>
getResourcePath
(javax.servlet.ServletContext servletContext, String portletId, String path) getSetting
(String key) String[]
getSettingOptions
(String key) com.liferay.portal.kernel.theme.ThemeCompanyLimit
com.liferay.portal.kernel.theme.ThemeGroupLimit
long
boolean
boolean
int
hashCode()
protected boolean
isAvailable
(com.liferay.portal.kernel.theme.ThemeCompanyLimit limit, long id) boolean
isCompanyAvailable
(long companyId) boolean
boolean
isGroupAvailable
(long groupId) boolean
boolean
boolean
boolean
resourceExists
(javax.servlet.ServletContext servletContext, String portletId, String path) void
setControlPanelTheme
(boolean controlPanelTheme) void
setCssPath
(String cssPath) void
setImagesPath
(String imagesPath) void
setJavaScriptPath
(String javaScriptPath) void
setLoadFromServletContext
(boolean loadFromServletContext) void
void
setPageTheme
(boolean pageTheme) void
setRootPath
(String rootPath) void
setServletContextName
(String servletContextName) void
setSetting
(String key, String value) void
setTemplateExtension
(String templateExtension) void
setTemplatesPath
(String templatesPath) void
setThemeCompanyLimit
(com.liferay.portal.kernel.theme.ThemeCompanyLimit themeCompanyLimit) void
setThemeGroupLimit
(com.liferay.portal.kernel.theme.ThemeGroupLimit themeGroupLimit) void
setTimestamp
(long timestamp) void
setVirtualPath
(String virtualPath) 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.kernel.model.Plugin
getDefaultPluginSetting, getDefaultPluginSetting, getPluginPackage, setDefaultPluginSetting, setPluginPackage
-
Constructor Details
-
ThemeImpl
public ThemeImpl() -
ThemeImpl
-
ThemeImpl
-
-
Method Details
-
addSetting
public void addSetting(String key, String value, boolean configurable, String type, String[] options, String script) - Specified by:
addSetting
in interfacecom.liferay.portal.kernel.model.Theme
-
compareTo
public int compareTo(com.liferay.portal.kernel.model.Theme theme) - Specified by:
compareTo
in interfaceComparable<com.liferay.portal.kernel.model.Theme>
-
equals
-
getColorSchemes
- Specified by:
getColorSchemes
in interfacecom.liferay.portal.kernel.model.Theme
-
getColorSchemesMap
- Specified by:
getColorSchemesMap
in interfacecom.liferay.portal.kernel.model.Theme
-
getConfigurableSettings
- Specified by:
getConfigurableSettings
in interfacecom.liferay.portal.kernel.model.Theme
-
getContextPath
- Specified by:
getContextPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getCssPath
- Specified by:
getCssPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getDefaultPortletDecorator
public com.liferay.portal.kernel.model.PortletDecorator getDefaultPortletDecorator() -
getDevice
- Specified by:
getDevice
in interfacecom.liferay.portal.kernel.model.Theme
-
getFreeMarkerTemplateLoader
- Specified by:
getFreeMarkerTemplateLoader
in interfacecom.liferay.portal.kernel.model.Theme
-
getImagesPath
- Specified by:
getImagesPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getJavaScriptPath
- Specified by:
getJavaScriptPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getLoadFromServletContext
public boolean getLoadFromServletContext()- Specified by:
getLoadFromServletContext
in interfacecom.liferay.portal.kernel.model.Theme
-
getName
- Specified by:
getName
in interfacecom.liferay.portal.kernel.model.Theme
-
getPluginId
- Specified by:
getPluginId
in interfacecom.liferay.portal.kernel.model.Plugin
-
getPluginType
- Specified by:
getPluginType
in interfacecom.liferay.portal.kernel.model.Plugin
-
getPortletDecorators
- Specified by:
getPortletDecorators
in interfacecom.liferay.portal.kernel.model.Theme
-
getPortletDecoratorsMap
- Specified by:
getPortletDecoratorsMap
in interfacecom.liferay.portal.kernel.model.Theme
-
getResourcePath
public String getResourcePath(javax.servlet.ServletContext servletContext, String portletId, String path) - Specified by:
getResourcePath
in interfacecom.liferay.portal.kernel.model.Theme
-
getRootPath
- Specified by:
getRootPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getServletContextName
- Specified by:
getServletContextName
in interfacecom.liferay.portal.kernel.model.Theme
-
getSetting
- Specified by:
getSetting
in interfacecom.liferay.portal.kernel.model.Theme
-
getSettingOptions
- Specified by:
getSettingOptions
in interfacecom.liferay.portal.kernel.model.Theme
-
getSettings
- Specified by:
getSettings
in interfacecom.liferay.portal.kernel.model.Theme
-
getSettingsProperties
- Specified by:
getSettingsProperties
in interfacecom.liferay.portal.kernel.model.Theme
-
getStaticResourcePath
- Specified by:
getStaticResourcePath
in interfacecom.liferay.portal.kernel.model.Theme
-
getTemplateExtension
- Specified by:
getTemplateExtension
in interfacecom.liferay.portal.kernel.model.Theme
-
getTemplatesPath
- Specified by:
getTemplatesPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getThemeCompanyLimit
public com.liferay.portal.kernel.theme.ThemeCompanyLimit getThemeCompanyLimit()- Specified by:
getThemeCompanyLimit
in interfacecom.liferay.portal.kernel.model.Theme
-
getThemeGroupLimit
public com.liferay.portal.kernel.theme.ThemeGroupLimit getThemeGroupLimit()- Specified by:
getThemeGroupLimit
in interfacecom.liferay.portal.kernel.model.Theme
-
getThemeId
- Specified by:
getThemeId
in interfacecom.liferay.portal.kernel.model.Theme
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestamp
in interfacecom.liferay.portal.kernel.model.Theme
-
getVelocityResourceListener
- Specified by:
getVelocityResourceListener
in interfacecom.liferay.portal.kernel.model.Theme
-
getVirtualPath
- Specified by:
getVirtualPath
in interfacecom.liferay.portal.kernel.model.Theme
-
getWARFile
public boolean getWARFile()- Specified by:
getWARFile
in interfacecom.liferay.portal.kernel.model.Theme
-
hasColorSchemes
public boolean hasColorSchemes()- Specified by:
hasColorSchemes
in interfacecom.liferay.portal.kernel.model.Theme
-
hashCode
public int hashCode() -
isCompanyAvailable
public boolean isCompanyAvailable(long companyId) - Specified by:
isCompanyAvailable
in interfacecom.liferay.portal.kernel.model.Theme
-
isControlPanelTheme
public boolean isControlPanelTheme()- Specified by:
isControlPanelTheme
in interfacecom.liferay.portal.kernel.model.Theme
-
isGroupAvailable
public boolean isGroupAvailable(long groupId) - Specified by:
isGroupAvailable
in interfacecom.liferay.portal.kernel.model.Theme
-
isLoadFromServletContext
public boolean isLoadFromServletContext()- Specified by:
isLoadFromServletContext
in interfacecom.liferay.portal.kernel.model.Theme
-
isPageTheme
public boolean isPageTheme()- Specified by:
isPageTheme
in interfacecom.liferay.portal.kernel.model.Theme
-
isWARFile
public boolean isWARFile()- Specified by:
isWARFile
in interfacecom.liferay.portal.kernel.model.Theme
-
resourceExists
public boolean resourceExists(javax.servlet.ServletContext servletContext, String portletId, String path) throws Exception - Specified by:
resourceExists
in interfacecom.liferay.portal.kernel.model.Theme
- Throws:
Exception
-
setControlPanelTheme
public void setControlPanelTheme(boolean controlPanelTheme) - Specified by:
setControlPanelTheme
in interfacecom.liferay.portal.kernel.model.Theme
-
setCssPath
- Specified by:
setCssPath
in interfacecom.liferay.portal.kernel.model.Theme
-
setImagesPath
- Specified by:
setImagesPath
in interfacecom.liferay.portal.kernel.model.Theme
-
setJavaScriptPath
- Specified by:
setJavaScriptPath
in interfacecom.liferay.portal.kernel.model.Theme
-
setLoadFromServletContext
public void setLoadFromServletContext(boolean loadFromServletContext) - Specified by:
setLoadFromServletContext
in interfacecom.liferay.portal.kernel.model.Theme
-
setName
- Specified by:
setName
in interfacecom.liferay.portal.kernel.model.Theme
-
setPageTheme
public void setPageTheme(boolean pageTheme) - Specified by:
setPageTheme
in interfacecom.liferay.portal.kernel.model.Theme
-
setRootPath
- Specified by:
setRootPath
in interfacecom.liferay.portal.kernel.model.Theme
-
setServletContextName
- Specified by:
setServletContextName
in interfacecom.liferay.portal.kernel.model.Theme
-
setSetting
- Specified by:
setSetting
in interfacecom.liferay.portal.kernel.model.Theme
-
setTemplateExtension
- Specified by:
setTemplateExtension
in interfacecom.liferay.portal.kernel.model.Theme
-
setTemplatesPath
- Specified by:
setTemplatesPath
in interfacecom.liferay.portal.kernel.model.Theme
-
setThemeCompanyLimit
public void setThemeCompanyLimit(com.liferay.portal.kernel.theme.ThemeCompanyLimit themeCompanyLimit) - Specified by:
setThemeCompanyLimit
in interfacecom.liferay.portal.kernel.model.Theme
-
setThemeGroupLimit
public void setThemeGroupLimit(com.liferay.portal.kernel.theme.ThemeGroupLimit themeGroupLimit) - Specified by:
setThemeGroupLimit
in interfacecom.liferay.portal.kernel.model.Theme
-
setTimestamp
public void setTimestamp(long timestamp) - Specified by:
setTimestamp
in interfacecom.liferay.portal.kernel.model.Theme
-
setVirtualPath
- Specified by:
setVirtualPath
in interfacecom.liferay.portal.kernel.model.Theme
-
isAvailable
protected boolean isAvailable(com.liferay.portal.kernel.theme.ThemeCompanyLimit limit, long id)
-