|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.graph.request.Request
org.jboss.dna.graph.request.ChangeRequest
org.jboss.dna.graph.request.DeleteChildrenRequest
public class DeleteChildrenRequest

Instruction that all nodes below a supplied node be deleted. This is similar to DeleteBranchRequest, except that the
parent node (top node in the branch) is not deleted.
| Constructor Summary | |
|---|---|
DeleteChildrenRequest(Location at,
String workspaceName)
Create a request to delete all children of the supplied node. |
|
| Method Summary | |
|---|---|
void |
addDeletedChild(Location child)
Add to the list of children that has been read the child with the given path and identification properties. |
void |
addDeletedChild(Path pathToChild,
Property idProperty)
Add to the list of children that has been read the child with the given path and identification property. |
void |
addDeletedChild(Path pathToChild,
Property firstIdProperty,
Property... remainingIdProperties)
Add to the list of children that has been read the child with the given path and identification properties. |
void |
addDeletedChildren(Iterable<Location> children)
Add to the list of children that has been read the supplied children with the given path and identification properties. |
Location |
at()
Get the location defining the top of the branch to be deleted |
Location |
changedLocation()
Get the location of the top-most node that is to be changed by this request. |
String |
changedWorkspace()
Get the name of the workspace that was changed by this request. |
boolean |
changes(String workspace,
Path path)
Determine if this request changes the branch at the given path. |
boolean |
equals(Object obj)
|
List<Location> |
getActualChildrenDeleted()
Get the list of the actual children that were deleted. |
Location |
getActualLocationOfNode()
Get the actual location of the node that was deleted. |
String |
inWorkspace()
Get the name of the workspace in which the branch exists. |
boolean |
isReadOnly()
Return whether this request only reads information. |
void |
setActualLocationOfNode(Location actual)
Sets the actual and complete location of the node being deleted. |
String |
toString()
|
| Methods inherited from class org.jboss.dna.graph.request.Request |
|---|
cancel, freeze, getError, hasError, isCancelled, isFrozen, setError |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteChildrenRequest(Location at,
String workspaceName)
at - the location of the parent nodeworkspaceName - the name of the workspace containing the parent
IllegalArgumentException - if the location or workspace name is null| Method Detail |
|---|
public Location at()
public String inWorkspace()
public boolean isReadOnly()
isReadOnly in class RequestRequest.isReadOnly()public void setActualLocationOfNode(Location actual)
path.
actual - the actual location of the node being deleted, or null if the current location should be used
IllegalArgumentException - if the actual location does not represent the same
location as the current location, or if the actual location does not have a path.
IllegalStateException - if the request is frozenpublic void addDeletedChildren(Iterable<Location> children)
children - the locations of the children that were read
IllegalArgumentException - if the parameter is null
IllegalStateException - if the request is frozenaddDeletedChild(Location),
addDeletedChild(Path, Property),
addDeletedChild(Path, Property, Property...)public void addDeletedChild(Location child)
child - the location of the child that was read
IllegalArgumentException - if the location is null
IllegalStateException - if the request is frozenaddDeletedChild(Path, Property),
addDeletedChild(Path, Property, Property...)
public void addDeletedChild(Path pathToChild,
Property firstIdProperty,
Property... remainingIdProperties)
pathToChild - the path of the child that was just readfirstIdProperty - the first identification property of the child that was just readremainingIdProperties - the remaining identification properties of the child that was just read
IllegalArgumentException - if the path or identification properties are null
IllegalStateException - if the request is frozenaddDeletedChild(Location),
addDeletedChild(Path, Property)
public void addDeletedChild(Path pathToChild,
Property idProperty)
pathToChild - the path of the child that was just readidProperty - the identification property of the child that was just read
IllegalArgumentException - if the path or identification properties are null
IllegalStateException - if the request is frozenaddDeletedChild(Location),
addDeletedChild(Path, Property, Property...)public List<Location> getActualChildrenDeleted()
public Location getActualLocationOfNode()
public boolean changes(String workspace,
Path path)
changes in class ChangeRequestworkspace - the name of the workspace; may not be nullpath - the path; may not be null
ChangeRequest.changes(java.lang.String, org.jboss.dna.graph.property.Path)public Location changedLocation()
changedLocation in class ChangeRequestChangeRequest.changedLocation()public String changedWorkspace()
changedWorkspace in class ChangeRequestChangeRequest.changedWorkspace()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||