org.jboss.dna.graph.request
Class ChangeRequest

java.lang.Object
  extended by org.jboss.dna.graph.request.Request
      extended by org.jboss.dna.graph.request.ChangeRequest
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CloneBranchRequest, CloneWorkspaceRequest, CopyBranchRequest, CreateNodeRequest, CreateWorkspaceRequest, DeleteBranchRequest, DeleteChildrenRequest, DestroyWorkspaceRequest, MoveBranchRequest, RemovePropertyRequest, RenameNodeRequest, SetPropertyRequest, UpdatePropertiesRequest, UpdateValuesRequest

public abstract class ChangeRequest
extends Request

A Request to make changes in a graph.

See Also:
Serialized Form

Method Summary
abstract  Location changedLocation()
          Get the location of the top-most node that is to be changed by this request.
abstract  String changedWorkspace()
          Get the name of the workspace that was changed by this request.
abstract  boolean changes(String workspace, Path path)
          Determine if this request changes the branch at the given path.
 
Methods inherited from class org.jboss.dna.graph.request.Request
cancel, freeze, getError, hasError, isCancelled, isFrozen, isReadOnly, setError, setLatchForFreezing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

changes

public abstract boolean changes(String workspace,
                                Path path)
Determine if this request changes the branch at the given path.

Parameters:
workspace - the name of the workspace; may not be null
path - the path; may not be null
Returns:
true if this request changes a node under the given path

changedLocation

public abstract Location changedLocation()
Get the location of the top-most node that is to be changed by this request.

Returns:
the location changed by this request

changedWorkspace

public abstract String changedWorkspace()
Get the name of the workspace that was changed by this request.

Returns:
the name of the workspace changed by this request


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