|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.commands.Command<T>
ccc.commands.UpdateFolderCommand
public class UpdateFolderCommand
Command: updates a folder.
Constructor Summary | |
---|---|
UpdateFolderCommand(IRepositoryFactory repoFactory,
java.util.UUID folderId,
java.util.UUID indexPageId,
java.util.List<java.util.UUID> orderList)
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 |
update(ResourceEntity resource,
UserEntity actor,
java.util.Date happenedOn)
Record that a resource has been updated (generates a log entry). |
Methods inherited from class ccc.commands.Command |
---|
afterExecute, 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 UpdateFolderCommand(IRepositoryFactory repoFactory, java.util.UUID folderId, java.util.UUID indexPageId, java.util.List<java.util.UUID> orderList)
repoFactory
- The repository factory for this command.folderId
- The folder to update.indexPageId
- The index page.orderList
- The manual order of the resources in the specified
folder.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 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>
protected void update(ResourceEntity resource, UserEntity actor, java.util.Date happenedOn)
resource
- The resource that was updated.actor
- The actor who performed the update.happenedOn
- The date the update took place.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |