|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.commands.Command<java.lang.Void>
ccc.commands.UpdateCurrentUserCommand
public class UpdateCurrentUserCommand
Command: update a user's own email and password.
Constructor Summary | |
---|---|
UpdateCurrentUserCommand(IRepositoryFactory repoFactory,
java.util.UUID userId,
User delta)
Constructor. |
Method Summary | |
---|---|
protected void |
authorize(UserEntity actor)
Confirm that the actor may execute this command. |
java.lang.Void |
doExecute(UserEntity actor,
java.util.Date happenedOn)
Execute the command. |
protected CommandType |
getType()
Get the type of this command. |
protected void |
validate()
Validate the command's inputs. |
Methods inherited from class ccc.commands.Command |
---|
afterExecute, beforeExecute, execute, getAudit, getComments, getData, getGroups, getRepository, getUsers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateCurrentUserCommand(IRepositoryFactory repoFactory, java.util.UUID userId, User delta)
repoFactory
- The repository factory for this command.userId
- The user's id.delta
- The changes to apply.Method Detail |
---|
public java.lang.Void doExecute(UserEntity actor, java.util.Date happenedOn)
doExecute
in class Command<java.lang.Void>
actor
- The user who performed the command.happenedOn
- When the command was performed.
protected void validate()
validate
in class Command<java.lang.Void>
protected void authorize(UserEntity actor)
The default implementation allows any actor to execute the command.
authorize
in class Command<java.lang.Void>
actor
- The actor performing the command.protected CommandType getType()
getType
in class Command<java.lang.Void>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |