|
||||||||||
| 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.UnlockBranchRequest
public class UnlockBranchRequest

Instruction to unlock an existing node or branch. Connectors that do not support locking must ignore this request.
| Constructor Summary | |
|---|---|
UnlockBranchRequest(Location at,
String workspaceName)
Create a request to unlock the node or branch at the supplied location. |
|
| Method Summary | |
|---|---|
Location |
at()
Get the location defining the node that is to be read. |
void |
cancel()
Cancel this request. |
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. |
UnlockBranchRequest |
clone()
This method does not clone the results. |
boolean |
equals(Object obj)
|
Location |
getActualLocation()
Get the actual location of the node that was unlocked. |
int |
hashCode()
|
String |
inWorkspace()
Get the name of the workspace in which the node exists. |
boolean |
isReadOnly()
Return whether this request only reads information. |
void |
setActualLocation(Location actualLocation)
Sets the actual and complete location of the node being unlocked. |
String |
toString()
|
| Methods inherited from class org.jboss.dna.graph.request.Request |
|---|
freeze, getError, hasError, isCancelled, isFrozen, setError, setLatchForFreezing |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnlockBranchRequest(Location at,
String workspaceName)
at - the location of the node to be unlockedworkspaceName - the name of the workspace containing the node
IllegalArgumentException - if the location or workspace name is null| Method Detail |
|---|
public boolean isReadOnly()
isReadOnly in class RequestRequest.isReadOnly()public Location at()
public String inWorkspace()
public void setActualLocation(Location actualLocation)
path.
actualLocation - the actual location of the node before being unlocked
IllegalArgumentException - if the either location is null or is missing its path, if the old location is not
equal to the current location
IllegalStateException - if the request is frozenpublic Location getActualLocation()
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()
path.
changedLocation in class ChangeRequestChangeRequest.changedLocation()public String changedWorkspace()
changedWorkspace in class ChangeRequestChangeRequest.changedWorkspace()public void cancel()
cancellation flag is set, and any current or
future processing of the request may be affected by the cancellation. (Note however, that processors may choose to not
respect this request.)
This method is safe to be called by different threads.
cancel in class RequestRequest.cancel()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()public UnlockBranchRequest clone()
This method does not clone the results.
This method does not clone the results.
clone in class ChangeRequestChangeRequest.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||