public interface HstComponentsConfiguration
HstComponentConfigurations
contains a map of (root) HstComponentConfiguration
objects
which themselves might contain additional HstComponentConfiguration
children and so on. Each root
HstComponentConfiguration
is identified by a unique id within the HstComponentConfiguration<'/code>s
object.
NOTE: As HstComponent
instances can access HstComponentConfigurations
instances but should not
be able to modify them, implementations must make sure that through the api a HstComponentConfigurations
instance cannot be changed. Returned List and Map should be therefor unmodifiable.
Modifier and Type | Field and Description |
---|---|
static HstComponentsConfiguration |
NOOP |
Modifier and Type | Method and Description |
---|---|
default Stream<HstComponentConfiguration> |
flattened(List<HstComponentConfiguration> childComponents) |
List<HstComponentConfiguration> |
getAvailableContainerItems()
Returns all the available
HstComponentConfiguration 's belonging to the HstSite
Implementations should return an unmodifiable List |
HstComponentConfiguration |
getComponentConfiguration(String id)
|
Map<String,HstComponentConfiguration> |
getComponentConfigurations()
Return the map of all *non prototype* canonical
HstComponentConfiguration 's where the keys are the the
HstComponentConfiguration 's (HstComponentInfo.getId() ). |
Map<String,HstComponentConfiguration> |
getPrototypePages() |
static final HstComponentsConfiguration NOOP
Map<String,HstComponentConfiguration> getComponentConfigurations()
Return the map of all *non prototype* canonical HstComponentConfiguration
's where the keys are the the
HstComponentConfiguration
's (HstComponentInfo.getId()
). Implementations should
return an unmodifiable map to avoid client code changing configuration
With canonical we mean the HstComponentConfiguration
's that are explicitly configured
in the hst configuration and not a result of inheritance
HstComponentConfiguration getComponentConfiguration(String id)
Returns the canonical HstComponentConfiguration
whose HstComponentInfo.getId()
equals
this id
.
With canonical we mean the HstComponentConfiguration
's that are explicitly configured
in the hst configuration and not a result of inheritance
id
- the id of the canonical HstComponentConfiguration
HstComponentConfiguration
whose HstComponentInfo.getId()
equals this
id
. When there is no HstComponentConfiguration
with this id
,
null
is returned.List<HstComponentConfiguration> getAvailableContainerItems()
HstComponentConfiguration
's belonging to the HstSite
Implementations should return an unmodifiable ListList
of all available container itemsMap<String,HstComponentConfiguration> getPrototypePages()
HstComponentConfiguration
s that are page prototypes . Unmodifiable
instance will be returned. Empty map will be returned if no prototypes availabledefault Stream<HstComponentConfiguration> flattened(List<HstComponentConfiguration> childComponents)
childComponents
plus their descendantsCopyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.