ccc.commands
Class ChangeTemplateForResourceCommand

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

public class ChangeTemplateForResourceCommand
extends java.lang.Object

Command: change the template for a resource.

Author:
Civic Computing Ltd.

Constructor Summary
ChangeTemplateForResourceCommand(IRepositoryFactory repoFactory)
          Constructor.
 
Method Summary
 void execute(UserEntity actor, java.util.Date happenedOn, java.util.UUID resourceId, java.util.UUID templateId)
          Change the template for the specified resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeTemplateForResourceCommand

public ChangeTemplateForResourceCommand(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,
                    java.util.UUID templateId)
Change the template for the specified resource.

Parameters:
resourceId - The id of the resource to change.
templateId - The id of template to set (NULL is allowed).
actor - The user who performed the command.
happenedOn - When the command was performed.


Copyright © 2010. All Rights Reserved.