Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.deployment.preprocessor.install.commands
Class MoveCommand

java.lang.Object
  extended by org.nuxeo.runtime.deployment.preprocessor.install.commands.MoveCommand
All Implemented Interfaces:
Command

public class MoveCommand
extends Object
implements Command

Author:
Bogdan Stefanescu

Constructor Summary
MoveCommand(Path src, Path dst)
          Constructor for copy command.
MoveCommand(Path src, Path dst, PathFilter filter)
           
 
Method Summary
 void exec(CommandContext ctx)
           
 String toString()
           
 String toString(CommandContext ctx)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoveCommand

public MoveCommand(Path src,
                   Path dst)
Constructor for copy command.

Parameters:
src - the path relative to the root container. The path will be made absolute if not already
dst - the path relative to teh root container of the destination. If it is ending with a slash '/' the destination path is treated as a directory

MoveCommand

public MoveCommand(Path src,
                   Path dst,
                   PathFilter filter)
Method Detail

exec

public void exec(CommandContext ctx)
          throws IOException
Specified by:
exec in interface Command
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(CommandContext ctx)
Specified by:
toString in interface Command

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.