ccc.commands
Class UpdateWorkingCopyCommand

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

public class UpdateWorkingCopyCommand
extends java.lang.Object

Command: updates the working copy for a page.

Author:
Civic Computing Ltd.

Constructor Summary
UpdateWorkingCopyCommand(IRepositoryFactory repoFactory)
          Constructor.
 
Method Summary
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID resourceId, long revisionNo)
          Updates the working copy.
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID resourceId, Page delta)
          Updates the working copy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateWorkingCopyCommand

public UpdateWorkingCopyCommand(IRepositoryFactory repoFactory)
Constructor.

Parameters:
repoFactory - The repository factory for this command.
Method Detail

execute

public void execute(UserEntity actor,
                    java.util.Date happenedOn,
                    java.util.UUID resourceId,
                    Page delta)
Updates the working copy.

Parameters:
delta - The page delta to store in the page.
resourceId - The page's id.
actor - The user who performed the command.
happenedOn - When the command was performed.

execute

public void execute(UserEntity actor,
                    java.util.Date happenedOn,
                    java.util.UUID resourceId,
                    long revisionNo)
Updates the working copy.

Parameters:
resourceId - The page's id.
actor - The user who performed the command.
happenedOn - When the command was performed.
revisionNo - The revision that the working copy will be created from.


Copyright © 2010. All Rights Reserved.