Package org.opencms.ade.configuration
Class CmsModelPageConfig
- java.lang.Object
-
- org.opencms.ade.configuration.CmsModelPageConfig
-
- All Implemented Interfaces:
java.lang.Cloneable,I_CmsConfigurationObject<CmsModelPageConfig>
public class CmsModelPageConfig extends java.lang.Object implements I_CmsConfigurationObject<CmsModelPageConfig>, java.lang.Cloneable
This class contains the model page configuration for a sitemap region.- Since:
- 8.0.0
- Version:
- $Revision: 1.0 $
- Author:
- Georg Westenberger
-
-
Field Summary
-
Fields inherited from interface org.opencms.ade.configuration.I_CmsConfigurationObject
DEFAULT_ORDER
-
-
Constructor Summary
Constructors Constructor Description CmsModelPageConfig(CmsResource res, boolean isDefault, boolean isDisabled)Creates a new model page configuration bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsModelPageConfigclone()java.lang.StringgetKey()The name of the configuration object.CmsResourcegetResource()Gets the model page resource.booleanisDefault()Returns true if this is a default model page.booleanisDisabled()Returns true if this entry disables the model page.CmsModelPageConfigmerge(CmsModelPageConfig child)Merges this configuration object with a child configuration object.
-
-
-
Constructor Detail
-
CmsModelPageConfig
public CmsModelPageConfig(CmsResource res, boolean isDefault, boolean isDisabled)
Creates a new model page configuration bean.- Parameters:
res- the model page resourceisDefault- true if this is a default model pageisDisabled- true if this is a disabled model page
-
-
Method Detail
-
clone
public CmsModelPageConfig clone()
- Overrides:
clonein classjava.lang.Object- See Also:
Object.clone()
-
getKey
public java.lang.String getKey()
Description copied from interface:I_CmsConfigurationObjectThe name of the configuration object.This name should be unique for each single configuration
- Specified by:
getKeyin interfaceI_CmsConfigurationObject<CmsModelPageConfig>- Returns:
- the name
- See Also:
I_CmsConfigurationObject.getKey()
-
getResource
public CmsResource getResource()
Gets the model page resource.- Returns:
- the model page resource
-
isDefault
public boolean isDefault()
Returns true if this is a default model page.- Returns:
- true if this is a default model page
-
isDisabled
public boolean isDisabled()
Returns true if this entry disables the model page.- Specified by:
isDisabledin interfaceI_CmsConfigurationObject<CmsModelPageConfig>- Returns:
- true if this entry disables the model page
-
merge
public CmsModelPageConfig merge(CmsModelPageConfig child)
Description copied from interface:I_CmsConfigurationObjectMerges this configuration object with a child configuration object.- Specified by:
mergein interfaceI_CmsConfigurationObject<CmsModelPageConfig>- Parameters:
child- the child configuration object- Returns:
- the merged configuration objects
- See Also:
I_CmsConfigurationObject.merge(org.opencms.ade.configuration.I_CmsConfigurationObject)
-
-