Class CmsContainerConfiguration
java.lang.Object
org.opencms.ade.containerpage.inherited.CmsContainerConfiguration
A bean representing a single configuration entry for the inherited container configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name. -
Constructor Summary
ConstructorDescriptionCmsContainerConfiguration
(List<String> ordering, Map<String, Boolean> visibility, Map<String, CmsContainerElementBean> newElements) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic CmsContainerConfiguration
Generates an empty configuration object.Gets the map of new elements.Gets the new elements in the order in which they appear in the 'ordering' list.Gets the ordering list.getPath()
Gets the path from which this configuration was read.Gets the visibility map for this configuration.void
Sets the path for this configuration.
-
Field Details
-
N_CONFIGURATION
Node name.- See Also:
-
N_ELEMENT
Node name.- See Also:
-
N_HIDDEN
Node name.- See Also:
-
N_KEY
Node name.- See Also:
-
N_NAME
Node name.- See Also:
-
N_NEWELEMENT
Node name.- See Also:
-
N_ORDERKEY
Node name.- See Also:
-
N_URI
Node name.- See Also:
-
N_VISIBLE
Node name.- See Also:
-
-
Constructor Details
-
CmsContainerConfiguration
public CmsContainerConfiguration(List<String> ordering, Map<String, Boolean> visibility, Map<String, CmsContainerElementBean> newElements) Creates a new instance.- Parameters:
ordering
- the new ordering listvisibility
- the visibility mapnewElements
- the new elements
-
-
Method Details
-
emptyConfiguration
Generates an empty configuration object.- Returns:
- an empty configuration object
-
getNewElements
Gets the map of new elements.- Returns:
- the map of new elements
-
getNewElementsInOrder
Gets the new elements in the order in which they appear in the 'ordering' list.- Returns:
- an ordered map containing the new elements in the correct order
-
getOrdering
Gets the ordering list.- Returns:
- the ordering list
-
getPath
Gets the path from which this configuration was read.- Returns:
- the path from which this configuration was read
-
getVisibility
Gets the visibility map for this configuration.- Returns:
- the visibility map
-
setPath
Sets the path for this configuration.- Parameters:
path
- the new path value
-