public abstract class BaseNodeUpdateVisitor extends Object implements NodeUpdateVisitor
NodeUpdateVisitor
class adding support for logging.Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
log |
protected Map<String,Object> |
parametersMap |
protected NodeUpdateVisitorContext |
visitorContext |
Constructor and Description |
---|
BaseNodeUpdateVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Allows cleanup of resources held by this updater.
|
javax.jcr.Node |
firstNode(javax.jcr.Session session)
Initiates the retrieval of the nodes when using custom, instead of path or xpath (query) based, node
selection/navigation, returning the first node to visit.
|
void |
initialize(javax.jcr.Session session)
Allows initialization of this updater.
|
boolean |
logSkippedNodePaths()
Overridable boolean function to indicate if skipped node paths should be logged (default true)
|
javax.jcr.Node |
nextNode()
Return a following node, when using custom, instead of path or xpath (query) based, node selection/navigation.
|
void |
setLogger(org.slf4j.Logger log) |
void |
setParametersMap(Map<String,Object> parametersMap) |
void |
setVisitorContext(NodeUpdateVisitorContext visitorContext) |
boolean |
skipCheckoutNodes()
Overridable boolean function to indicate if node checkout can be skipped (default false)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doUpdate, undoUpdate
protected org.slf4j.Logger log
protected NodeUpdateVisitorContext visitorContext
public void setLogger(org.slf4j.Logger log)
public void setVisitorContext(NodeUpdateVisitorContext visitorContext)
public boolean logSkippedNodePaths()
public boolean skipCheckoutNodes()
public void initialize(javax.jcr.Session session) throws javax.jcr.RepositoryException
NodeUpdateVisitor
initialize
in interface NodeUpdateVisitor
session
- a JCR Session
with system credentialsjavax.jcr.RepositoryException
- when thrown, the updater will not be run by the frameworkpublic javax.jcr.Node firstNode(javax.jcr.Session session) throws javax.jcr.RepositoryException
session
- javax.jcr.RepositoryException
public javax.jcr.Node nextNode() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void destroy()
NodeUpdateVisitor
destroy
in interface NodeUpdateVisitor
Copyright © 2007–2019 Hippo B.V. (http://www.onehippo.com). All rights reserved.