Package com.jalios.jcms.theming
Class ThemeManager
java.lang.Object
com.jalios.jcms.theming.ThemeManager
- All Implemented Interfaces:
JPropertiesListener
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanManageTheme(Member loggedMember) static ThemeManagergetThemeDisplayUrl(String themeId) Gets the URL for displaying a specific theme in the Theming Tool application.Gets the URL of the Theming Tool application.voidpropertiesChange(JProperties properties) Invoked after properties have been modified in JCMS and save on disk.voidsetCurrentTheme(UITheme theme)
-
Method Details
-
getInstance
-
setCurrentTheme
-
getCurrentTheme
-
propertiesChange
Description copied from interface:JPropertiesListenerInvoked after properties have been modified in JCMS and save on disk.You cannot alter the value received in parameters.
Note that properties parameter may be null, a limited set of site properties, or all site properties.
To check that a property has been modified, reload the "current" property instead using
channel.getPropertiesorchannel.getProperty.- Specified by:
propertiesChangein interfaceJPropertiesListener- Parameters:
properties- the properties which have been submitted to change
-
getThemingToolAppUrl
Gets the URL of the Theming Tool application. This method retrieves the URL of the Theming Tool application. It uses the property defined in `ThemeConstants.THEMING_TOOL_APP_URL` as the application URL. If the property is not defined, it falls back to a default URL.- Returns:
- The URL of the Theming Tool application.
-
getThemeDisplayUrl
Gets the URL for displaying a specific theme in the Theming Tool application. This method constructs the URL for displaying a specific theme in the Theming Tool application. It takes the theme ID as a parameter and appends it to the application's URL. If the theme ID is empty, it returns null.- Parameters:
themeId- The ID of the theme to display.- Returns:
- The URL for displaying the specified theme, or null if the theme ID is empty.
-
canManageTheme
-
getSkinList
-