Class ThemeManager

java.lang.Object
com.jalios.jcms.theming.ThemeManager
All Implemented Interfaces:
JPropertiesListener

public final class ThemeManager extends Object implements JPropertiesListener
  • Method Details

    • getInstance

      public static ThemeManager getInstance()
    • setCurrentTheme

      public void setCurrentTheme(UITheme theme)
    • getCurrentTheme

      public UITheme getCurrentTheme()
    • propertiesChange

      public void propertiesChange(JProperties properties)
      Description copied from interface: JPropertiesListener
      Invoked 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.getProperties or channel.getProperty.

      Specified by:
      propertiesChange in interface JPropertiesListener
      Parameters:
      properties - the properties which have been submitted to change
    • getThemingToolAppUrl

      public String 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

      public String getThemeDisplayUrl(String themeId)
      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

      public boolean canManageTheme(Member loggedMember)
    • getSkinList

      public Collection<TypeTemplateEntry> getSkinList()