|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hippoecm.hst.configuration.components.HstComponentConfigurationService
public class HstComponentConfigurationService
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.hippoecm.hst.configuration.components.HstComponentConfiguration |
|---|
HstComponentConfiguration.Type |
| Field Summary |
|---|
| Fields inherited from interface org.hippoecm.hst.configuration.components.HstComponentConfiguration |
|---|
PARAMETER_PREFIX_NAME_DELIMITER |
| Constructor Summary | |
|---|---|
HstComponentConfigurationService(HstNode node,
HstComponentConfiguration parent,
String rootNodeName)
|
|
HstComponentConfigurationService(HstNode node,
HstComponentConfiguration parent,
String rootNodeName,
boolean traverseDescendants)
|
|
| Method Summary | |
|---|---|
protected void |
autocreateReferenceNames()
|
String |
getCanonicalIdentifier()
Returns the identifier of the backing stored component configuration. |
String |
getCanonicalStoredLocation()
Returns the canonical (real physical) location of the stored configuration of this HstComponentConfiguration |
HstComponentConfiguration |
getChildByName(String name)
Returns the child HstComponentConfiguration by its name, or null if it doens't exist |
Map<String,HstComponentConfiguration> |
getChildren()
Implementations should return an unmodifiable linked map, for example Collections.UnmodifiableMap to avoid
client code changing configuration |
String |
getComponentClassName()
|
String |
getComponentFilterTag()
The filter tag (see HstRequestContext.getComponentFilterTags()) for this component. |
HstComponentConfiguration.Type |
getComponentType()
|
String |
getDummyContent()
Deprecated. |
String |
getHstResourceTemplate()
|
String |
getHstTemplate()
|
String |
getIconPath()
|
String |
getId()
Returns the id for this component configuration. |
String |
getLabel()
|
String |
getLocalParameter(String name)
Returns the parameter value without inheritance for the parameter name and null if not present. |
Map<String,String> |
getLocalParameters()
see HstComponentConfiguration.getParameter(String), but now only parameters directly present on the HstConfigurationItem are returned. |
String |
getName()
Return the name of this component configuration. |
String |
getNamedRenderer()
|
String |
getNamedResourceServer()
|
String |
getPageErrorHandlerClassName()
|
String |
getParameter(String name)
Returns the parameter value for the parameter name and null if not present. |
Map<String,String> |
getParameters()
Returns the map of all parameters. |
HstComponentConfiguration |
getParent()
Returns the parent HstComponentConfiguration for this this component or null if a root component. |
String |
getReferenceComponent()
|
String |
getReferenceName()
Return the referenceName of this HstComponentConfiguration. |
String |
getRenderPath()
|
String |
getServeResourcePath()
|
String |
getXType()
|
protected void |
inheritParameters()
|
boolean |
isInherited()
|
boolean |
isStandalone()
|
protected void |
populateComponentReferences(Map<String,HstComponentConfiguration> rootComponentConfigurations,
List<HstComponentConfiguration> populated)
|
void |
setReferenceName(String referenceName)
|
protected void |
setRenderPath(Map<String,HstNode> templateResourceMap)
|
protected void |
setServeResourcePath(Map<String,HstNode> templateResourceMap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HstComponentConfigurationService(HstNode node,
HstComponentConfiguration parent,
String rootNodeName)
throws ServiceException
ServiceException
public HstComponentConfigurationService(HstNode node,
HstComponentConfiguration parent,
String rootNodeName,
boolean traverseDescendants)
throws ServiceException
ServiceException| Method Detail |
|---|
public HstComponentConfiguration getParent()
HstComponentConfigurationHstComponentConfiguration for this this component or null if a root component.
getParent in interface HstComponentConfigurationpublic String getComponentClassName()
getComponentClassName in interface HstComponentInfoHstComponent interfacepublic String getXType()
getXType in interface HstComponentConfigurationnull if the component does not have an xtypepublic HstComponentConfiguration.Type getComponentType()
getComponentType in interface HstComponentConfigurationHstComponentConfiguration.Type of this componentpublic String getHstTemplate()
public String getRenderPath()
getRenderPath in interface HstComponentConfigurationnull when HstComponentConfiguration.getNamedRenderer() does not return nullHstComponentConfiguration.getNamedRenderer()public String getNamedRenderer()
getNamedRenderer in interface HstComponentConfigurationnull when HstComponentConfiguration.getRenderPath() does not return nullHstComponentConfiguration.getRenderPath()public String getHstResourceTemplate()
public String getServeResourcePath()
getServeResourcePath in interface HstComponentConfigurationHstComponentpublic String getNamedResourceServer()
getNamedResourceServer in interface HstComponentConfigurationnull when HstComponentConfiguration.getServeResourcePath() does not return nullHstComponentConfiguration.getServeResourcePath()public String getParameter(String name)
HstComponentConfigurationname and null if not present. Note that
from the HstComponentConfiguration always 'raw' parameters are returned. 'Raw' as in unresolved with respect
to property placeholders. So, a value might be ${year} or ${1}. In a HstComponent
instance, the implementation might have implemented some resolving for these values.
Parameters are inherited from ancestor configurations. Parameters that are configured in an ancestor override parameters
configured in this component. Ancestors have precedence. Note that this is opposite to HstSiteMapItem.getParameter(String)
getParameter in interface HstComponentConfigurationname - the name of the parameter
name and null if not existingpublic Map<String,String> getParameters()
HstComponentConfigurationHstComponentConfiguration.getParameter(String).
Implementations should return an unmodifiable map, for example Collections.UnmodifiableMap to avoid
client code changing configuration
Parameters are inherited from ancestor configurations. Parameters that are configured in an ancestor override parameters
configured in this component. Ancestors have precedence. Note that this is opposite to HstSiteMapItem.getParameters()
getParameters in interface HstComponentConfigurationpublic String getLocalParameter(String name)
HstComponentConfigurationname and null if not present.
It returns the parameters configured directly on this HstComponentConfiguration, without the merged parameters from parent
components (which have precedence, see HstComponentConfiguration.getParameter(String))
getLocalParameter in interface HstComponentConfigurationname - the name of the parameter
name and null if not existingpublic Map<String,String> getLocalParameters()
HstComponentConfigurationHstComponentConfiguration.getParameter(String), but now only parameters directly present on the HstConfigurationItem are returned. Thus,
no inheritance by parents involved
getLocalParameters in interface HstComponentConfigurationpublic String getId()
HstComponentInfoHstComponentsConfiguration,
or null if it is not needed to be directly accessed by the
HstComponentsConfiguration through HstComponentsConfiguration.getComponentConfiguration(String).
Every HstComponentConfiguration that can be referred to from within a
HstSiteMapItem must have an id.
getId in interface HstComponentInfonull if no id setpublic String getName()
HstComponentInfoHstComponent instance.
getName in interface HstComponentInfopublic String getReferenceName()
HstComponentConfigurationHstComponentConfiguration. It must be unique amongst sibling HstComponentConfiguration's.
The value returned by this method, is the value that will occur as part of the referencePath in request parameter names
getReferenceName in interface HstComponentConfigurationpublic void setReferenceName(String referenceName)
public String getReferenceComponent()
public String getPageErrorHandlerClassName()
getPageErrorHandlerClassName in interface HstComponentConfigurationPageErrorHandler or null when not configured@Deprecated public String getDummyContent()
public String getComponentFilterTag()
HstComponentConfigurationHstRequestContext.getComponentFilterTags()) for this component.
getComponentFilterTag in interface HstComponentConfigurationpublic Map<String,HstComponentConfiguration> getChildren()
HstComponentConfigurationCollections.UnmodifiableMap to avoid
client code changing configuration
getChildren in interface HstComponentConfigurationHstComponentConfiguration children in order they were added, and an empty Map if no children presentpublic HstComponentConfiguration getChildByName(String name)
HstComponentConfiguration
getChildByName in interface HstComponentConfigurationname - the name of the child HstComponentConfigurationpublic String getCanonicalStoredLocation()
HstComponentConfiguration
getCanonicalStoredLocation in interface HstComponentConfigurationpublic String getCanonicalIdentifier()
HstComponentConfigurationHstComponentConfiguration's can share the same
canonical identifier due to inheritance. Also, multiple subsites can share the same backing configuration, and thus share the same canonical identifiers
getCanonicalIdentifier in interface HstComponentConfigurationpublic boolean isInherited()
isInherited in interface HstComponentConfigurationtrue when the backing provider (HstNode) of this HstComponentConfiguration is inheritedpublic boolean isStandalone()
isStandalone in interface HstComponentInfotrue when this HstComponentConfiguration is configured to be rendered standalone in case of HstURL.COMPONENT_RENDERING_TYPEpublic String getLabel()
getLabel in interface HstComponentConfigurationnull otherwisepublic String getIconPath()
getIconPath in interface HstComponentConfigurationnull otherwise. The iconPath should be a path relative
to the site webapp
protected void populateComponentReferences(Map<String,HstComponentConfiguration> rootComponentConfigurations,
List<HstComponentConfiguration> populated)
throws ServiceException
ServiceExceptionprotected void setRenderPath(Map<String,HstNode> templateResourceMap)
protected void setServeResourcePath(Map<String,HstNode> templateResourceMap)
protected void inheritParameters()
protected void autocreateReferenceNames()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||