Package lumis.portal.theme
Class ThemeUsageConfig
- java.lang.Object
-
- lumis.portal.theme.ThemeUsageConfig
-
public class ThemeUsageConfig extends java.lang.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$ $Date$
-
-
Constructor Summary
Constructors Constructor Description ThemeUsageConfig(boolean inherited, java.util.List<java.lang.String> appliedThemeIds)
Creates a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getAppliedThemeIds()
Returns the (locally) applied themes identifiers.java.util.List<java.lang.String>
getAppliedThemeIdsForThemeResolving()
Returns the (locally) applied themes identifiers for theme resolving.boolean
isInherited()
Returns whether this configuration is inheriting the applied themes or not.
-
-
-
Constructor Detail
-
ThemeUsageConfig
public ThemeUsageConfig(boolean inherited, java.util.List<java.lang.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:
java.lang.IllegalArgumentException
- ifinherited
istrue
andappliedThemeIds
is not empty.- Since:
- 7.0.0
-
-
Method Detail
-
getAppliedThemeIds
public java.util.List<java.lang.String> getAppliedThemeIds()
Returns the (locally) applied themes identifiers.- Returns:
- the (locally) applied themes identifiers.
- Since:
- 7.0.0
-
getAppliedThemeIdsForThemeResolving
public java.util.List<java.lang.String> getAppliedThemeIdsForThemeResolving()
Returns the (locally) applied themes identifiers for theme resolving. This method returns the same list returned bygetAppliedThemeIds()
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
-
-