public interface NodeUpdateVisitor
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Allows cleanup of resources held by this updater.
|
boolean |
doUpdate(javax.jcr.Node node)
Update the given node.
|
void |
initialize(javax.jcr.Session session)
Allows initialization of this updater.
|
boolean |
undoUpdate(javax.jcr.Node node)
Revert the given node.
|
void initialize(javax.jcr.Session session) throws javax.jcr.RepositoryException
session
- a JCR Session
with system credentialsjavax.jcr.RepositoryException
- when thrown, the updater will not be run by the frameworkboolean doUpdate(javax.jcr.Node node) throws javax.jcr.RepositoryException
node
- the Node
to be updatedtrue
if the node was changed, false
if notjavax.jcr.RepositoryException
- if an exception occurred while updating the nodeboolean undoUpdate(javax.jcr.Node node) throws javax.jcr.RepositoryException, UnsupportedOperationException
doUpdate(javax.jcr.Node)
method.
It allows update runs to be reverted in case a problem arises due to the update. The method should throw
an UnsupportedOperationException
when it is not implemented.node
- the node to be reverted.true
if the node was changed, false
if notjavax.jcr.RepositoryException
- if an exception occurred while reverting the nodeUnsupportedOperationException
- if the method is not implementedvoid destroy()
Copyright © 2007–2017 Hippo B.V. (http://www.onehippo.com). All rights reserved.