protected final class JcrSession.JcrPreSave extends Object implements SessionCache.PreSave
Modifier | Constructor and Description |
---|---|
protected |
JcrPreSave(SystemContent content,
Map<NodeKey,NodeKey> baseVersionKeys,
Map<NodeKey,NodeKey> originalVersionKeys,
long aclChangesCount) |
Modifier and Type | Method and Description |
---|---|
void |
processAfterLocking(MutableCachedNode modifiedNode,
SessionCache.SaveContext context)
Process the supplied existing node prior to saving the changes but only after the entry corresponding to the key of the
node has been exclusively locked.
|
void |
processBeforeLocking(MutableCachedNode node,
SessionCache.SaveContext context)
Process the supplied node prior to saving the changes.
|
public void processBeforeLocking(MutableCachedNode node, SessionCache.SaveContext context) throws Exception
SessionCache.PreSave
processBeforeLocking
in interface SessionCache.PreSave
node
- the mutable node that was changed in this session; never nullcontext
- the context of the save operation; never nullException
- if there is a problem during the processingpublic void processAfterLocking(MutableCachedNode modifiedNode, SessionCache.SaveContext context) throws RepositoryException
SessionCache.PreSave
processAfterLocking
in interface SessionCache.PreSave
modifiedNode
- the mutable node that was changed in this session; never nullcontext
- the context of the save operation; never nullRepositoryException
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.