ccc.commands
Class ClearWorkingCopyCommand

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

public class ClearWorkingCopyCommand
extends java.lang.Object

Command: clears the working copy for a resource.

Author:
Civic Computing Ltd.

Constructor Summary
ClearWorkingCopyCommand(ResourceRepository repository, LogEntryRepository audit)
          Constructor.
 
Method Summary
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID resourceId)
          Clear a resource's working copy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClearWorkingCopyCommand

public ClearWorkingCopyCommand(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)
Clear a resource's working copy.

Parameters:
resourceId - The resource's id.
actor - The user that executed the command.
happenedOn - The date the command was executed.


Copyright © 2010. All Rights Reserved.