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.
|
void |
initialize(javax.jcr.Session session)
Allows initialization of this updater.
|
void |
setLogger(org.slf4j.Logger log) |
void |
setParametersMap(Map<String,Object> parametersMap) |
void |
setVisitorContext(NodeUpdateVisitorContext visitorContext) |
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 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 void destroy()
NodeUpdateVisitor
destroy
in interface NodeUpdateVisitor
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.