public class ApprovalCheckApproverForEntityCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ApprovalCheckApproverForEntityCmd
Before executing this task command, the following sets should be performed:
Upon completion of the command, the following should be called to retrieve boolean result
Behaviour
This command will check if there is an approval record for the given approver id and entity (flow type + BusinessEntityId).
This command uses the following AccessBeans:
ApprovalStatusAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApprovalCheckApproverForEntityCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
isApprover()
Returns whether or not the user is an approver for this submission.
|
boolean |
isReadyToCallExecute()
Check if the command is ready to be executed.
|
void |
performExecute()
The main logic.
|
void |
setApproverId(java.lang.Long newApproverId)
Sets the ID of a user to check to see if approver of entity.
|
void |
setBusinessEntityId(java.lang.Long newBusinessEntityId)
Sets the ID of the business entity object for which the approval is being requested.
|
void |
setBusinessFlowTypeIdentifier(java.lang.String newBusinessFlowTypeIdentifier)
Sets the identifier of the type of business flow for the approvable action.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public ApprovalCheckApproverForEntityCmdImpl()
public boolean isApprover()
isApprover
in interface ApprovalCheckApproverForEntityCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
ECException.
com.ibm.commerce.exception.ECException
public void setApproverId(java.lang.Long newApproverId)
setApproverId
in interface ApprovalCheckApproverForEntityCmd
newApproverId
- A user idpublic void setBusinessEntityId(java.lang.Long newBusinessEntityId)
setBusinessEntityId
in interface ApprovalCheckApproverForEntityCmd
newBusinessEntityId
- The entity on which the approval is being requestedpublic void setBusinessFlowTypeIdentifier(java.lang.String newBusinessFlowTypeIdentifier)
setBusinessFlowTypeIdentifier
in interface ApprovalCheckApproverForEntityCmd
newBusinessFlowTypeIdentifier
- The type of flow for this approval