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
ItemStates 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 OperationObject.getClass()public Collection<ItemState> getAffectedItemStates()
OperationItemStates that are affected by this operation.getAffectedItemStates in interface OperationItemStates.public void undo()
throws RepositoryException
Operationundo in interface OperationRepositoryExceptionpublic int getStatus()
Operationprotected void addAffectedItemState(ItemState affectedState)
ItemState.affectedState - the ItemStates of the affected item.protected static NodeState getNodeState(Path nodePath, HierarchyManager hierMgr) throws PathNotFoundException, RepositoryException
nodePath - hierMgr - PathNotFoundExceptionRepositoryExceptionprotected static void assertChildNodeEntries(NodeState parentState) throws RepositoryException
parentState - RepositoryExceptionCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.