public interface ViewCommand extends AccCommand
setCommandContext
method and the setRequestPropperties
method of a view command before calling the execute
method.
Two additional methods are required for a ViewCommand in addition to the basic ECCommand:
setRequestProperties
- This method is called before the execute
method to set up the request parameters.getResponseProperties
- This method is called after the execute
method to get all the response data.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName
Modifier and Type | Method and Description |
---|---|
TypedProperty |
getRequestProperties()
This method gets the request properties.
|
TypedProperty |
getResponseProperties()
This method gets the response properties.
|
java.lang.String |
getViewName()
This method gets the view task name for this view command.
|
TypedProperty |
mergeProperties(TypedProperty reqProp,
TypedProperty resProp)
This method merges three different types of properties.
|
void |
setRequestProperties(TypedProperty param)
This method sets the request properties for this command.
|
void |
setViewName(java.lang.String value)
This method sets the view task name for this view command.
|
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
TypedProperty getRequestProperties()
TypedProperty getResponseProperties()
java.lang.String getViewName()
TypedProperty mergeProperties(TypedProperty reqProp, TypedProperty resProp)
reqProp
- This is an object that represents the request properties passed to the controller command.resProp
- This is an object that represents the response properties returned by the controller command.void setRequestProperties(TypedProperty param) throws ECException
param
- This is an object that represents the request properties.ECException
void setViewName(java.lang.String value)
value
- This is the view name.