ccc.commands
Class CreateUserCommand

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

public class CreateUserCommand
extends java.lang.Object

Command: create a new user.

Author:
Civic Computing Ltd.

Constructor Summary
CreateUserCommand(IRepositoryFactory repoFactory)
          Constructor.
 
Method Summary
 UserEntity execute(UserEntity actor, java.util.Date happenedOn, User delta)
          Create new user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateUserCommand

public CreateUserCommand(IRepositoryFactory repoFactory)
Constructor.

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

execute

public UserEntity execute(UserEntity actor,
                          java.util.Date happenedOn,
                          User delta)
Create new user.

Parameters:
delta - The properties for the new user.
actor - The user who performed the command.
happenedOn - When the command was performed.
Returns:
Persisted user.


Copyright © 2010. All Rights Reserved.