|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.graph.request.Request org.modeshape.graph.request.VerifyWorkspaceRequest
public final class VerifyWorkspaceRequest
Verify that a workspace exists with the supplied name. This is useful to determine the name of the "default" workspace for a source.
Constructor Summary | |
---|---|
VerifyWorkspaceRequest(String workspaceName)
Create a request to verify the existance of the named workspace. |
Method Summary | |
---|---|
void |
cancel()
Cancel this request. |
boolean |
equals(Object obj)
|
Location |
getActualLocationOfRoot()
Get the actual location of the root node in the new workspace, or null if the workspace was not (yet) created. |
String |
getActualWorkspaceName()
Get the actual name of the workspace. |
RequestType |
getType()
Returns the type of the request |
int |
hashCode()
|
boolean |
isReadOnly()
Return whether this request only reads information. |
void |
setActualRootLocation(Location actualLocationOfRoot)
Set the actual location of the root node in the new workspace. |
void |
setActualWorkspaceName(String actualWorkspaceName)
Set the actual name of the workspace. |
String |
toString()
|
String |
workspaceName()
Get the desired name for the workspace. |
Methods inherited from class org.modeshape.graph.request.Request |
---|
checkNotFrozen, freeze, getError, hasError, isCancelled, isFrozen, setError, setLatchForFreezing |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VerifyWorkspaceRequest(String workspaceName)
workspaceName
- the desired name of the workspace, or null if the source's default workspace should be usedMethod Detail |
---|
public String workspaceName()
public String getActualWorkspaceName()
public void setActualWorkspaceName(String actualWorkspaceName)
actualWorkspaceName
- the actual name of the workspace; never null
IllegalStateException
- if the request is frozenpublic Location getActualLocationOfRoot()
public void setActualRootLocation(Location actualLocationOfRoot)
actualLocationOfRoot
- the actual location of the workspace's root node.
IllegalStateException
- if the request is frozenpublic boolean isReadOnly()
isReadOnly
in class Request
Request.isReadOnly()
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()
public RequestType getType()
Request
getType
in class Request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |