|
||||||||||
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.CacheableRequest
org.jboss.dna.graph.request.VerifyNodeExistsRequest
public class VerifyNodeExistsRequest
Instruction to verify the existance of a node at the specified location. This request also returns the actual location.
Constructor Summary | |
---|---|
VerifyNodeExistsRequest(Location at,
String workspaceName)
Create a request to verify the existance and location of a node at the supplied location. |
Method Summary | |
---|---|
Location |
at()
Get the location defining the node that is to be read. |
void |
cancel()
Cancel this request. |
boolean |
equals(Object obj)
|
boolean |
exists()
Return whether this node is known to exist. |
Location |
getActualLocationOfNode()
Get the actual location of the node whose properties were read. |
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 |
setActualLocationOfNode(Location actual)
Sets the actual and complete location of the node whose properties have been read. |
String |
toString()
|
Methods inherited from class org.jboss.dna.graph.request.CacheableRequest |
---|
getCachePolicy, getTimeLoaded, setCachePolicy, setTimeLoaded |
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 VerifyNodeExistsRequest(Location at, String workspaceName)
at
- the location of the node to be verifiedworkspaceName
- the name of the workspace containing the node
IllegalArgumentException
- if the location or workspace name is nullMethod Detail |
---|
public boolean isReadOnly()
isReadOnly
in class Request
Request.isReadOnly()
public Location at()
public String inWorkspace()
public void setActualLocationOfNode(Location actual)
path
.
actual
- the actual location of the node being read, or null if the current location
should be used
IllegalArgumentException
- if the actual location is not equal to
the current location
, or if the actual location does not have a path.
IllegalStateException
- if the request is frozenpublic Location getActualLocationOfNode()
public boolean exists()
actual location
or an error
.
getActualLocationOfNode()
,
Request.getError()
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 Request
Request.cancel()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |