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 RepositoryException
Operation
undo
in interface Operation
RepositoryException
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 PathNotFoundException, RepositoryException
nodePath
- hierMgr
- PathNotFoundException
RepositoryException
protected static void assertChildNodeEntries(NodeState parentState) throws RepositoryException
parentState
- RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.