public class SetApprovalsDetailsViewCmdImpl extends com.ibm.commerce.tools.command.ToolsControllerCommandImpl implements SetApprovalsDetailsViewCmd
The command is invoked when a user clicks the "Summary" button while viewing a list of approvals. The selected approval request id is supplied as a parameter to this command. The command will retrieve the entityId corresponding to the approval request. This entityId will be passed to the view as the ID parameter.
The view will depend on the flow type associated with the approval request and will be obtained from the VIEWNAME column of the FLOWTYPE table. If the viewname is null, it will be set to ApprovalConstants.EC_NO_SUMMARY_VIEW.
The name of the parameter which will be used to pass the entity id to the view can be customized. The attribute of the FLOWTYPE is a string consisting of name/values pairs. If this string contains an idName, the value of idName will be used as the parameter to the view. If this string does not contain an idName, the parameter to the view will be the value of ApprovalConstants.EC_SET_DETAIL_ID.
This command uses the following Access Beans:
ApprovalStatusAccessBean
Modifier and Type | Field and Description |
---|---|
java.lang.Long |
aprvId
Approval status id.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
SetApprovalsDetailsViewCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getAprvId()
Gets the approval status ID to be acted on.
|
void |
performExecute()
Determine the view and the name of the parameter in which to pass the entity id.
|
void |
reset()
Reset the command for next use.
|
void |
setAprvId(java.lang.Long newAprvId)
Sets the approval request ID.
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty reqParms)
Sets the request parameters.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getViewInputProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public java.lang.Long aprvId
public static final java.lang.String COPYRIGHT
public java.lang.Long getAprvId()
getAprvId
in interface SetApprovalsDetailsViewCmd
public void performExecute() throws com.ibm.commerce.exception.ECSystemException
Retrieves the APRVSTATUS record corresponding to the request to obtain the entityIid and the flowTypeId. Subsequently retrieves the flowtype record to obtain the view name and parameter name.
If the view name is null, it will set the view to ApprovalConstants.EC_NO_SUMMARY_VIEW.
The parameter name is obtained from the flowtype attribute. The attribute is a string consisting of name/value pairs. The idName field will contain the parameter name. If the attribute does not contain an idName, the value of ApprovalConstants.EC_SET_DETAIL_ID will be used as the parameter.
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECSystemException
- if a CreateExeception, FinderException, RemoteException
or NamingException is thrown by any of the AccessBeans.public void reset()
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void setAprvId(java.lang.Long newAprvId)
setAprvId
in interface SetApprovalsDetailsViewCmd
newAprvId
- The approval request ID.public void setRequestProperties(com.ibm.commerce.datatype.TypedProperty reqParms) throws com.ibm.commerce.exception.ECApplicationException
setRequestProperties
in interface com.ibm.commerce.command.ControllerCommand
setRequestProperties
in class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
reqParms
- The TypedProperty containing the request parameters.com.ibm.commerce.exception.ECApplicationException
- if: