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 TypeMethodDescriptionvoidaddSetting(String key, String value, boolean configurable, String type, String[] options, String script) intcompareTo(com.liferay.portal.kernel.model.Theme theme) booleanList<com.liferay.portal.kernel.model.ColorScheme>com.liferay.portal.kernel.model.PortletDecoratorbooleangetName()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.ThemeCompanyLimitcom.liferay.portal.kernel.theme.ThemeGroupLimitlongbooleanbooleaninthashCode()protected booleanisAvailable(com.liferay.portal.kernel.theme.ThemeCompanyLimit limit, long id) booleanisCompanyAvailable(long companyId) booleanbooleanisGroupAvailable(long groupId) booleanbooleanbooleanbooleanresourceExists(javax.servlet.ServletContext servletContext, String portletId, String path) voidsetControlPanelTheme(boolean controlPanelTheme) voidsetCssPath(String cssPath) voidsetImagesPath(String imagesPath) voidsetJavaScriptPath(String javaScriptPath) voidsetLoadFromServletContext(boolean loadFromServletContext) voidvoidsetPageTheme(boolean pageTheme) voidsetRootPath(String rootPath) voidsetServletContextName(String servletContextName) voidsetSetting(String key, String value) voidsetTemplateExtension(String templateExtension) voidsetTemplatesPath(String templatesPath) voidsetThemeCompanyLimit(com.liferay.portal.kernel.theme.ThemeCompanyLimit themeCompanyLimit) voidsetThemeGroupLimit(com.liferay.portal.kernel.theme.ThemeGroupLimit themeGroupLimit) voidsetTimestamp(long timestamp) voidsetVirtualPath(String virtualPath) Methods inherited from class com.liferay.portal.model.impl.PluginBaseImpl
getDefaultPluginSetting, getDefaultPluginSetting, getPluginPackage, setDefaultPluginSetting, setPluginPackageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
addSettingin interfacecom.liferay.portal.kernel.model.Theme
-
compareTo
public int compareTo(com.liferay.portal.kernel.model.Theme theme) - Specified by:
compareToin interfaceComparable<com.liferay.portal.kernel.model.Theme>
-
equals
-
getColorSchemes
- Specified by:
getColorSchemesin interfacecom.liferay.portal.kernel.model.Theme
-
getColorSchemesMap
- Specified by:
getColorSchemesMapin interfacecom.liferay.portal.kernel.model.Theme
-
getConfigurableSettings
- Specified by:
getConfigurableSettingsin interfacecom.liferay.portal.kernel.model.Theme
-
getContextPath
- Specified by:
getContextPathin interfacecom.liferay.portal.kernel.model.Theme
-
getCssPath
- Specified by:
getCssPathin interfacecom.liferay.portal.kernel.model.Theme
-
getDefaultPortletDecorator
public com.liferay.portal.kernel.model.PortletDecorator getDefaultPortletDecorator() -
getDevice
- Specified by:
getDevicein interfacecom.liferay.portal.kernel.model.Theme
-
getFreeMarkerTemplateLoader
- Specified by:
getFreeMarkerTemplateLoaderin interfacecom.liferay.portal.kernel.model.Theme
-
getImagesPath
- Specified by:
getImagesPathin interfacecom.liferay.portal.kernel.model.Theme
-
getJavaScriptPath
- Specified by:
getJavaScriptPathin interfacecom.liferay.portal.kernel.model.Theme
-
getLoadFromServletContext
public boolean getLoadFromServletContext()- Specified by:
getLoadFromServletContextin interfacecom.liferay.portal.kernel.model.Theme
-
getName
- Specified by:
getNamein interfacecom.liferay.portal.kernel.model.Theme
-
getPluginId
- Specified by:
getPluginIdin interfacecom.liferay.portal.kernel.model.Plugin
-
getPluginType
- Specified by:
getPluginTypein interfacecom.liferay.portal.kernel.model.Plugin
-
getPortletDecorators
- Specified by:
getPortletDecoratorsin interfacecom.liferay.portal.kernel.model.Theme
-
getPortletDecoratorsMap
- Specified by:
getPortletDecoratorsMapin interfacecom.liferay.portal.kernel.model.Theme
-
getResourcePath
public String getResourcePath(javax.servlet.ServletContext servletContext, String portletId, String path) - Specified by:
getResourcePathin interfacecom.liferay.portal.kernel.model.Theme
-
getRootPath
- Specified by:
getRootPathin interfacecom.liferay.portal.kernel.model.Theme
-
getServletContextName
- Specified by:
getServletContextNamein interfacecom.liferay.portal.kernel.model.Theme
-
getSetting
- Specified by:
getSettingin interfacecom.liferay.portal.kernel.model.Theme
-
getSettingOptions
- Specified by:
getSettingOptionsin interfacecom.liferay.portal.kernel.model.Theme
-
getSettings
- Specified by:
getSettingsin interfacecom.liferay.portal.kernel.model.Theme
-
getSettingsProperties
- Specified by:
getSettingsPropertiesin interfacecom.liferay.portal.kernel.model.Theme
-
getStaticResourcePath
- Specified by:
getStaticResourcePathin interfacecom.liferay.portal.kernel.model.Theme
-
getTemplateExtension
- Specified by:
getTemplateExtensionin interfacecom.liferay.portal.kernel.model.Theme
-
getTemplatesPath
- Specified by:
getTemplatesPathin interfacecom.liferay.portal.kernel.model.Theme
-
getThemeCompanyLimit
public com.liferay.portal.kernel.theme.ThemeCompanyLimit getThemeCompanyLimit()- Specified by:
getThemeCompanyLimitin interfacecom.liferay.portal.kernel.model.Theme
-
getThemeGroupLimit
public com.liferay.portal.kernel.theme.ThemeGroupLimit getThemeGroupLimit()- Specified by:
getThemeGroupLimitin interfacecom.liferay.portal.kernel.model.Theme
-
getThemeId
- Specified by:
getThemeIdin interfacecom.liferay.portal.kernel.model.Theme
-
getTimestamp
public long getTimestamp()- Specified by:
getTimestampin interfacecom.liferay.portal.kernel.model.Theme
-
getVelocityResourceListener
- Specified by:
getVelocityResourceListenerin interfacecom.liferay.portal.kernel.model.Theme
-
getVirtualPath
- Specified by:
getVirtualPathin interfacecom.liferay.portal.kernel.model.Theme
-
getWARFile
public boolean getWARFile()- Specified by:
getWARFilein interfacecom.liferay.portal.kernel.model.Theme
-
hasColorSchemes
public boolean hasColorSchemes()- Specified by:
hasColorSchemesin interfacecom.liferay.portal.kernel.model.Theme
-
hashCode
public int hashCode() -
isCompanyAvailable
public boolean isCompanyAvailable(long companyId) - Specified by:
isCompanyAvailablein interfacecom.liferay.portal.kernel.model.Theme
-
isControlPanelTheme
public boolean isControlPanelTheme()- Specified by:
isControlPanelThemein interfacecom.liferay.portal.kernel.model.Theme
-
isGroupAvailable
public boolean isGroupAvailable(long groupId) - Specified by:
isGroupAvailablein interfacecom.liferay.portal.kernel.model.Theme
-
isLoadFromServletContext
public boolean isLoadFromServletContext()- Specified by:
isLoadFromServletContextin interfacecom.liferay.portal.kernel.model.Theme
-
isPageTheme
public boolean isPageTheme()- Specified by:
isPageThemein interfacecom.liferay.portal.kernel.model.Theme
-
isWARFile
public boolean isWARFile()- Specified by:
isWARFilein interfacecom.liferay.portal.kernel.model.Theme
-
resourceExists
public boolean resourceExists(javax.servlet.ServletContext servletContext, String portletId, String path) throws Exception - Specified by:
resourceExistsin interfacecom.liferay.portal.kernel.model.Theme- Throws:
Exception
-
setControlPanelTheme
public void setControlPanelTheme(boolean controlPanelTheme) - Specified by:
setControlPanelThemein interfacecom.liferay.portal.kernel.model.Theme
-
setCssPath
- Specified by:
setCssPathin interfacecom.liferay.portal.kernel.model.Theme
-
setImagesPath
- Specified by:
setImagesPathin interfacecom.liferay.portal.kernel.model.Theme
-
setJavaScriptPath
- Specified by:
setJavaScriptPathin interfacecom.liferay.portal.kernel.model.Theme
-
setLoadFromServletContext
public void setLoadFromServletContext(boolean loadFromServletContext) - Specified by:
setLoadFromServletContextin interfacecom.liferay.portal.kernel.model.Theme
-
setName
- Specified by:
setNamein interfacecom.liferay.portal.kernel.model.Theme
-
setPageTheme
public void setPageTheme(boolean pageTheme) - Specified by:
setPageThemein interfacecom.liferay.portal.kernel.model.Theme
-
setRootPath
- Specified by:
setRootPathin interfacecom.liferay.portal.kernel.model.Theme
-
setServletContextName
- Specified by:
setServletContextNamein interfacecom.liferay.portal.kernel.model.Theme
-
setSetting
- Specified by:
setSettingin interfacecom.liferay.portal.kernel.model.Theme
-
setTemplateExtension
- Specified by:
setTemplateExtensionin interfacecom.liferay.portal.kernel.model.Theme
-
setTemplatesPath
- Specified by:
setTemplatesPathin interfacecom.liferay.portal.kernel.model.Theme
-
setThemeCompanyLimit
public void setThemeCompanyLimit(com.liferay.portal.kernel.theme.ThemeCompanyLimit themeCompanyLimit) - Specified by:
setThemeCompanyLimitin interfacecom.liferay.portal.kernel.model.Theme
-
setThemeGroupLimit
public void setThemeGroupLimit(com.liferay.portal.kernel.theme.ThemeGroupLimit themeGroupLimit) - Specified by:
setThemeGroupLimitin interfacecom.liferay.portal.kernel.model.Theme
-
setTimestamp
public void setTimestamp(long timestamp) - Specified by:
setTimestampin interfacecom.liferay.portal.kernel.model.Theme
-
setVirtualPath
- Specified by:
setVirtualPathin interfacecom.liferay.portal.kernel.model.Theme
-
isAvailable
protected boolean isAvailable(com.liferay.portal.kernel.theme.ThemeCompanyLimit limit, long id)
-