|
||||||||||
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.DeleteResourceCommand
public class DeleteResourceCommand
Command: delete a resource.
Constructor Summary | |
---|---|
DeleteResourceCommand(ResourceRepository repository,
LogEntryRepository audit,
java.util.UUID resourceId)
Constructor. |
Method Summary | |
---|---|
protected java.lang.Void |
doExecute(UserEntity actor,
java.util.Date happenedOn)
Execute the command. |
java.util.UUID |
getResourceId()
Accessor. |
protected CommandType |
getType()
Get the type of this command. |
Methods inherited from class ccc.commands.Command |
---|
afterExecute, authorize, beforeExecute, execute, getAudit, getComments, getData, getGroups, getRepository, getUsers, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteResourceCommand(ResourceRepository repository, LogEntryRepository audit, java.util.UUID resourceId)
repository
- The ResourceDao used for CRUD operations, etc.audit
- The audit logger, for logging business actions.resourceId
- The ID of the resource to delete.Method Detail |
---|
protected 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 CommandType getType()
getType
in class Command<java.lang.Void>
public java.util.UUID getResourceId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |