|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.observe.NetChangeObserver.ChangeContext
protected class NetChangeObserver.ChangeContext
Representation of the context in which a set of changes are being made.
Constructor Summary | |
---|---|
protected |
NetChangeObserver.ChangeContext()
|
Method Summary | |
---|---|
void |
delete(String workspace,
Location location)
Record the details of a deleted node at the supplied location in the named workspace. |
org.modeshape.graph.observe.NetChangeObserver.NetChangeDetails |
detailsFor(String workspace,
Location location)
Find or create the details for the changes made to a node at the supplied location in the named workspace. |
List<NetChangeObserver.NetChange> |
getNetChanges()
Compute the set of net changes that were made within this context. |
void |
move(String workspace,
Location fromLocation,
Location toLocation,
Location before,
boolean isReorder)
Record that a node was moved from one location to another, and potentially into a new workspace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected NetChangeObserver.ChangeContext()
Method Detail |
---|
public void delete(String workspace, Location location)
workspace
- the workspace of the location; may not be nulllocation
- the location whose details are being deleted; may not be nullpublic org.modeshape.graph.observe.NetChangeObserver.NetChangeDetails detailsFor(String workspace, Location location)
workspace
- the workspace of the location; may not be nulllocation
- the location whose details are being deleted; may not be null
public void move(String workspace, Location fromLocation, Location toLocation, Location before, boolean isReorder)
workspace
- the name of the original workspace in which the node existed prior to this move; may not be nullfromLocation
- the location of the node prior to this move; may not be nulltoLocation
- the location of the node after this move; may not be nullbefore
- the location of the node before which this node is to be moved; may be nullisReorder
- true if the operation is a simple re-ordering of siblingspublic List<NetChangeObserver.NetChange> getNetChanges()
NetChangeObserver.NetChange
objects; never null but possibly empty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |