Class ThemeUsageConfig


  • public class ThemeUsageConfig
    extends Object
    Theme appliance configuration. This class represents a theme appliance of a given element. Does not consider re inherited themes.
    Since:
    7.0.0
    Version:
    $Revision: 15055 $ $Date: 2012-11-29 18:48:37 -0200 (Thu, 29 Nov 2012) $
    • Constructor Detail

      • ThemeUsageConfig

        public ThemeUsageConfig​(boolean inherited,
                                List<String> appliedThemeIds)
        Creates a new instance with the given parameters.
        Parameters:
        inherited - indicates whether this configuration is inherited or not.
        appliedThemeIds - the (locally) applied themes.
        Throws:
        IllegalArgumentException - if inherited is true and appliedThemeIds is not empty.
        Since:
        7.0.0
    • Method Detail

      • getAppliedThemeIds

        public List<String> getAppliedThemeIds()
        Returns the (locally) applied themes identifiers.
        Returns:
        the (locally) applied themes identifiers.
        Since:
        7.0.0
      • getAppliedThemeIdsForThemeResolving

        public List<String> getAppliedThemeIdsForThemeResolving()
        Returns the (locally) applied themes identifiers for theme resolving. This method returns the same list returned by getAppliedThemeIds() but in a reversed order.
        Returns:
        the (locally) applied themes identifiers for theme resolving.
        Since:
        7.0.0
      • isInherited

        public boolean isInherited()
        Returns whether this configuration is inheriting the applied themes or not.
        Returns:
        whether this configuration is inheriting the applied themes or not.
        Since:
        7.0.0