org.jboss.dna.connector.federation.executor
Class ProjectedMoveBranchCommand

java.lang.Object
  extended by org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand<MoveBranchCommand>
      extended by org.jboss.dna.connector.federation.executor.ProjectedMoveBranchCommand
All Implemented Interfaces:
ActsAsUpdate, ActsOnPath, GraphCommand, MoveBranchCommand

public class ProjectedMoveBranchCommand
extends ActsOnProjectedPathCommand<MoveBranchCommand>
implements MoveBranchCommand

Author:
Randall Hauch

Constructor Summary
ProjectedMoveBranchCommand(MoveBranchCommand delegate, Path projectedPath, Path newProjectedPath)
           
 
Method Summary
 NodeConflictBehavior getConflictBehavior()
          Get the desired behavior when a node at the target path already exists.
 Path getNewPath()
          Get the new path to which the branch is to be moved.
 
Methods inherited from class org.jboss.dna.connector.federation.executor.ActsOnProjectedPathCommand
getError, getPath, hasError, hasNoError, isCancelled, setError
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.dna.graph.commands.GraphCommand
getError, hasError, hasNoError, isCancelled, setError
 
Methods inherited from interface org.jboss.dna.graph.commands.ActsOnPath
getPath
 

Constructor Detail

ProjectedMoveBranchCommand

public ProjectedMoveBranchCommand(MoveBranchCommand delegate,
                                  Path projectedPath,
                                  Path newProjectedPath)
Method Detail

getConflictBehavior

public NodeConflictBehavior getConflictBehavior()
Get the desired behavior when a node at the target path already exists.

Specified by:
getConflictBehavior in interface MoveBranchCommand
Returns:
the desired behavior; never null
See Also:
MoveBranchCommand.getConflictBehavior()

getNewPath

public Path getNewPath()
Get the new path to which the branch is to be moved.

Specified by:
getNewPath in interface MoveBranchCommand
Returns:
the new path; never null
See Also:
MoveBranchCommand.getNewPath()


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