public interface AbstractProcessNounActionCmd
extends com.ibm.websphere.command.Command
The purpose of this interface is to represent a command that understands how to perform a particular process action on a noun.
The command is given the noun and action expression to peform. The command is given the opportunity to perform some preprocessing logic and indicate the amount of data to retrieve in order to perform the process action. When the command is executed it is given the persistent objects which represents the data that is managed by the controller. The command implementation performs the business logic associated with the process action to perform.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isGeneric()
This method returns true if the command can be run as a generic user, otherwise false.
|
void |
setActionExpression(ActionExpression processAction)
This method sets the
ActionExpression to perform. |
void |
setNoun(java.lang.Object noun)
This method sets the noun that is acted upon as part of the process
action.
|
void |
setPersistentObjects(java.util.Map persistentObjects)
This method sets the persistent objects that were retrieved
by the controller that can be used when executing the command.
|
void |
validate()
This method performs any additional validation on the action
expressions specified.
|
static final java.lang.String COPYRIGHT
void validate() throws AbstractApplicationException
AbstractApplicationException
- A problem occurred while preprocessing the
request. This problem could because of some validation logic performed which
the action specified is not valid.void setNoun(java.lang.Object noun)
noun
- The noun to act upon.void setActionExpression(ActionExpression processAction)
ActionExpression
to perform.
These change actions contain the noun to execute the process action on
and the control parameters that are part of that action.processAction
- The action expression to perform.void setPersistentObjects(java.util.Map persistentObjects)
persistentObjects
- The persistent objects that were retrieved
by the controller.boolean isGeneric()