|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.jcr2spi.operation.AbstractOperation
public abstract class AbstractOperation
AbstractOperation
...
Field Summary | |
---|---|
protected int |
status
|
Fields inherited from interface org.apache.jackrabbit.jcr2spi.operation.Operation |
---|
STATUS_PENDING, STATUS_PERSISTED, STATUS_UNDO |
Constructor Summary | |
---|---|
AbstractOperation()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.jackrabbit.jcr2spi.operation.Operation |
---|
accept, persisted |
Field Detail |
---|
protected int status
Constructor Detail |
---|
public AbstractOperation()
Method Detail |
---|
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
getStatus
in interface 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |