Package lumis.portal.theme
Class ThemeUsageConfig
- java.lang.Object
-
- lumis.portal.theme.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 Summary
Constructors Constructor Description ThemeUsageConfig(boolean inherited, List<String> appliedThemeIds)
Creates a new instance with the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAppliedThemeIds()
Returns the (locally) applied themes identifiers.List<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, 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
- ifinherited
istrue
andappliedThemeIds
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 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
-
-