ccc.commands
Class MoveResourceCommand

java.lang.Object
  extended by ccc.commands.MoveResourceCommand

public class MoveResourceCommand
extends java.lang.Object

Command: move a resource to another folder.

Author:
Civic Computing Ltd.

Constructor Summary
MoveResourceCommand(ResourceRepository repository, LogEntryRepository audit)
          Constructor.
 
Method Summary
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID resourceId, java.util.UUID newParentId)
          Move a resource to a new parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveResourceCommand

public MoveResourceCommand(ResourceRepository repository,
                           LogEntryRepository audit)
Constructor.

Parameters:
repository - The ResourceDao used for CRUD operations, etc.
audit - The audit logger, for logging business actions.
Method Detail

execute

public void execute(UserEntity actor,
                    java.util.Date happenedOn,
                    java.util.UUID resourceId,
                    java.util.UUID newParentId)
Move a resource to a new parent.

Parameters:
resourceId - The id of the resource to move.
newParentId - The id of the new parent.
actor - The user who performed the command.
happenedOn - When the command was performed.


Copyright © 2010. All Rights Reserved.