|
||||||||||
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()
HstComponentConfiguration
HstComponentConfiguration
for this this component or null if a root component.
getParent
in interface HstComponentConfiguration
public String getComponentClassName()
getComponentClassName
in interface HstComponentInfo
HstComponent
interfacepublic String getXType()
getXType
in interface HstComponentConfiguration
null
if the component does not have an xtypepublic HstComponentConfiguration.Type getComponentType()
getComponentType
in interface HstComponentConfiguration
HstComponentConfiguration.Type
of this componentpublic String getHstTemplate()
public String getRenderPath()
getRenderPath
in interface HstComponentConfiguration
null
when HstComponentConfiguration.getNamedRenderer()
does not return null
HstComponentConfiguration.getNamedRenderer()
public String getNamedRenderer()
getNamedRenderer
in interface HstComponentConfiguration
null
when HstComponentConfiguration.getRenderPath()
does not return null
HstComponentConfiguration.getRenderPath()
public String getHstResourceTemplate()
public String getServeResourcePath()
getServeResourcePath
in interface HstComponentConfiguration
HstComponent
public String getNamedResourceServer()
getNamedResourceServer
in interface HstComponentConfiguration
null
when HstComponentConfiguration.getServeResourcePath()
does not return null
HstComponentConfiguration.getServeResourcePath()
public String getParameter(String name)
HstComponentConfiguration
name
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 HstComponentConfiguration
name
- the name of the parameter
name
and null
if not existingpublic Map<String,String> getParameters()
HstComponentConfiguration
HstComponentConfiguration.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 HstComponentConfiguration
public String getLocalParameter(String name)
HstComponentConfiguration
name
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 HstComponentConfiguration
name
- the name of the parameter
name
and null
if not existingpublic Map<String,String> getLocalParameters()
HstComponentConfiguration
HstComponentConfiguration.getParameter(String)
, but now only parameters directly present on the HstConfigurationItem are returned. Thus,
no inheritance by parents involved
getLocalParameters
in interface HstComponentConfiguration
public String getId()
HstComponentInfo
HstComponentsConfiguration
,
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 HstComponentInfo
null
if no id setpublic String getName()
HstComponentInfo
HstComponent
instance.
getName
in interface HstComponentInfo
public String getReferenceName()
HstComponentConfiguration
HstComponentConfiguration
. 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 HstComponentConfiguration
public void setReferenceName(String referenceName)
public String getReferenceComponent()
public String getPageErrorHandlerClassName()
getPageErrorHandlerClassName
in interface HstComponentConfiguration
PageErrorHandler
or null
when not configured@Deprecated public String getDummyContent()
public String getComponentFilterTag()
HstComponentConfiguration
HstRequestContext.getComponentFilterTags()
) for this component.
getComponentFilterTag
in interface HstComponentConfiguration
public Map<String,HstComponentConfiguration> getChildren()
HstComponentConfiguration
Collections.UnmodifiableMap
to avoid
client code changing configuration
getChildren
in interface HstComponentConfiguration
HstComponentConfiguration
children in order they were added, and an empty Map if no children presentpublic HstComponentConfiguration getChildByName(String name)
HstComponentConfiguration
getChildByName
in interface HstComponentConfiguration
name
- the name of the child HstComponentConfigurationpublic String getCanonicalStoredLocation()
HstComponentConfiguration
getCanonicalStoredLocation
in interface HstComponentConfiguration
public String getCanonicalIdentifier()
HstComponentConfiguration
HstComponentConfiguration
'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 HstComponentConfiguration
public boolean isInherited()
isInherited
in interface HstComponentConfiguration
true
when the backing provider (HstNode
) of this HstComponentConfiguration
is inheritedpublic boolean isStandalone()
isStandalone
in interface HstComponentInfo
true
when this HstComponentConfiguration
is configured to be rendered standalone in case of HstURL.COMPONENT_RENDERING_TYPE
public String getLabel()
getLabel
in interface HstComponentConfiguration
null
otherwisepublic String getIconPath()
getIconPath
in interface HstComponentConfiguration
null
otherwise. The iconPath should be a path relative
to the site webappprotected void populateComponentReferences(Map<String,HstComponentConfiguration> rootComponentConfigurations, List<HstComponentConfiguration> populated) throws ServiceException
ServiceException
protected 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 |