public class ApprovalSetUpRecordsCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ApprovalSetUpRecordsCmd
Before executing this task command, the following sets should be performed:
After executing this task command, the following should be called:
Behaviour
This command will create one APRVSTATUS record for each potential approver of the action.
This command calls the following TaskCommands:
,
This command uses the following Access Beans:
,
OrganizationAccessBean
,
MemberGroupAccessBean
,
UserAccessBean
,
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApprovalSetUpRecordsCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventIdentifier()
Gets the event identifier.
|
boolean |
isApprovalNeeded()
Specifies whether or not approval is needed.
|
boolean |
isReadyToCallExecute()
Check if the command is ready to be executed.
|
void |
performExecute()
The main logic.
|
void |
setApproverGroupName(java.lang.String newApproverGroupName)
Sets the approver group name from which the approvers are to be derived.
|
void |
setApproverOrgId(java.lang.Long newApproverOrgId)
Sets the ID of the organization that needs to do the approval.
|
void |
setBusinessEntityId(java.lang.Long newBusinessEntityId)
The ID of the object being acted on.
|
void |
setBusinessFlowId(java.lang.Long newBusinessFlowId)
Sets the flow being used for this approval process.
|
void |
setBusinessFlowStateId(java.lang.Long newBusinessFlowStateId)
Sets the state of the business flow for this approvable action.
|
void |
setBusinessFlowTypeId(java.lang.Long newBusinessFlowTypeId)
Sets the ID of the type of business flow for the approvable action.
|
void |
setUserIdFromApproverOrg(java.lang.Long newUserIdFromApproverOrg)
Sets the ID of a user from the organization that needs to do the approval.
|
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 ApprovalSetUpRecordsCmdImpl()
public java.lang.String getEventIdentifier()
getEventIdentifier
in interface ApprovalSetUpRecordsCmd
public boolean isApprovalNeeded()
isApprovalNeeded
in interface ApprovalSetUpRecordsCmd
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 setApproverGroupName(java.lang.String newApproverGroupName)
setApproverGroupName
in interface ApprovalSetUpRecordsCmd
newApproverGroupName
- The approval member group name from which the
approvers are chosenpublic void setApproverOrgId(java.lang.Long newApproverOrgId)
setApproverOrgId
in interface ApprovalSetUpRecordsCmd
newApproverOrgId
- The organization which may need to approvepublic void setBusinessEntityId(java.lang.Long newBusinessEntityId)
setBusinessEntityId
in interface ApprovalSetUpRecordsCmd
newBusinessEntityId
- The entity on which the approval is being requestedpublic void setBusinessFlowId(java.lang.Long newBusinessFlowId)
setBusinessFlowId
in interface ApprovalSetUpRecordsCmd
newBusinessFlowId
- The flow being used for this approvalpublic void setBusinessFlowStateId(java.lang.Long newBusinessFlowStateId)
setBusinessFlowStateId
in interface ApprovalSetUpRecordsCmd
newBusinessFlowStateId
- the state of the business flow for this
approvable actionpublic void setBusinessFlowTypeId(java.lang.Long newBusinessFlowTypeId)
setBusinessFlowTypeId
in interface ApprovalSetUpRecordsCmd
newBusinessFlowTypeId
- The type of flow for this approvalpublic void setUserIdFromApproverOrg(java.lang.Long newUserIdFromApproverOrg)
setUserIdFromApproverOrg
in interface ApprovalSetUpRecordsCmd
newUserIdFromApproverOrg
- A user id from organization which may need to approve