public abstract class AbstractOperation extends Object implements Operation
AbstractOperation
...Modifier and Type | Field and Description |
---|---|
protected int |
status |
STATUS_PENDING, STATUS_PERSISTED, STATUS_UNDO
Constructor and Description |
---|
AbstractOperation() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAffectedItemState(ItemState affectedState)
Adds an affected
ItemState . |
protected static void |
assertChildNodeEntries(NodeState parentState)
Asserts that the NodeEntry of the given parent state has it's child node
entries loaded.
|
Collection<ItemState> |
getAffectedItemStates()
A collection of
ItemState s that are affected by this operation. |
String |
getName()
Returns the name of the class
|
protected static NodeState |
getNodeState(Path nodePath,
HierarchyManager hierMgr) |
int |
getStatus()
Returns the status of this operation.
|
void |
undo()
Revert changes made by this operation.
|
public String getName()
getName
in interface Operation
Object.getClass()
public Collection<ItemState> getAffectedItemStates()
Operation
ItemState
s that are affected by this operation.getAffectedItemStates
in interface Operation
ItemState
s.public void undo() throws javax.jcr.RepositoryException
Operation
public int getStatus()
Operation
protected void addAffectedItemState(ItemState affectedState)
ItemState
.affectedState
- the ItemState
s of the affected item.protected static NodeState getNodeState(Path nodePath, HierarchyManager hierMgr) throws javax.jcr.PathNotFoundException, javax.jcr.RepositoryException
nodePath
- hierMgr
- javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
protected static void assertChildNodeEntries(NodeState parentState) throws javax.jcr.RepositoryException
parentState
- javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.