public interface HstNode
Modifier and Type | Method and Description |
---|---|
void |
addNode(String name,
HstNode hstNode)
Adds or replaces a child HST node with the given name.
|
String |
getName() |
HstNode |
getNode(String relPath) |
List<HstNode> |
getNodes() |
List<HstNode> |
getNodes(String nodeTypeName) |
String |
getNodeTypeName() |
HstNode |
getParent() |
ValueProvider |
getValueProvider() |
boolean |
isStale() |
void |
markStale()
Deprecated.
since 7.9.0 : use
markStaleByPropertyEvent() or markStaleByNodeEvent() |
void |
markStaleByNodeEvent()
marks the HstNode as stale due to node event: The JCRValueProvider might be out-of-date and/or the child nodes.
|
void |
markStaleByPropertyEvent()
marks the HstNode as stale due to property event: The JCRValueProvider is out-of-date.
|
void |
removeNode(String name)
removes child node with
name and does nothing if not present |
void |
setJCRValueProvider(JCRValueProvider valueProvider)
sets the new valueProvider
|
void |
update(javax.jcr.Session session)
updates all the HstNode's that need reloading.
|
String getName()
ValueProvider getValueProvider()
HstNode
HstNode getNode(String relPath) throws IllegalArgumentException
relPath
- a path that does not start with a slash, for example 'foo' or 'foo/bar'.relPath
or null
if it does not existIllegalArgumentException
- if relPath
is not a valid relPathList<HstNode> getNodes(String nodeTypeName)
HstNode
> of all the child nodes with getNodeTypeName()
equals to nodeTypeName
String getNodeTypeName()
void addNode(String name, HstNode hstNode)
name
- the name for the new HST node.hstNode
- the HST node to add or replace.void removeNode(String name)
name
and does nothing if not presentname
- void setJCRValueProvider(JCRValueProvider valueProvider)
valueProvider
- void markStale()
markStaleByPropertyEvent()
or markStaleByNodeEvent()
void markStaleByPropertyEvent()
void markStaleByNodeEvent()
boolean isStale()
true
when this HstNode is stalevoid update(javax.jcr.Session session) throws javax.jcr.RepositoryException
session
- javax.jcr.RepositoryException
Copyright © 2008–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.