org.jboss.dna.graph.request
Class DestroyWorkspaceRequest

java.lang.Object
  extended by org.jboss.dna.graph.request.Request
      extended by org.jboss.dna.graph.request.DestroyWorkspaceRequest
All Implemented Interfaces:
Serializable

public final class DestroyWorkspaceRequest
extends Request

Request that an existing workspace with the supplied name be destroyed.

See Also:
Serialized Form

Constructor Summary
DestroyWorkspaceRequest(String workspaceName)
          Create a request to destroy an existing workspace.
 
Method Summary
 boolean equals(Object obj)
          
 int hashCode()
          
 boolean isReadOnly()
          Return whether this request only reads information.
 String toString()
          
 String workspaceName()
          Get the name for the workspace that is to be destroyed.
 
Methods inherited from class org.jboss.dna.graph.request.Request
cancel, getError, hasError, isCancelled, setError
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DestroyWorkspaceRequest

public DestroyWorkspaceRequest(String workspaceName)
Create a request to destroy an existing workspace.

Parameters:
workspaceName - the name of the workspace that is to be destroyed
Throws:
IllegalArgumentException - if the workspace name is null
Method Detail

workspaceName

public String workspaceName()
Get the name for the workspace that is to be destroyed.

Returns:
the name for the workspace; never null

isReadOnly

public boolean isReadOnly()
Return whether this request only reads information.

Specified by:
isReadOnly in class Request
Returns:
true if this request reads information, or false if it requests that the repository content be changed in some way
See Also:
Request.isReadOnly()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.