WCS Commands
Any business logic that should be executed on server is written in the form of commands in WCS.
Basic command types:
1. Controller Command
2. Task Command
Controller Command
|
Task Command
|
Holds the complete business logic for an action.
|
Holds a part of logic involved in an action i.e; to execute a
specific task.
|
Can be executed as an independent request.
|
Cannot be executed as an independent request but should be invoked
from another command.
|
Needs resource level access control policies to be defined and
executed.
|
Does not need access control as this is executed from a controller
command which already has the policies defined.
|
Can be defined specific to a store.
|
Can be defined specific to a store.
|
Can be cached
|
Can be cached
|
Example:
UserRegistrationAddCmd is used to Register a user.
|
Example:
UpdateCredentialsCmd is invoked from UserRegistrationAddCmd to
encrypt and update the credentials of the user.
|
No comments:
Post a Comment