public class ApproversNotifyCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ApproversNotifyCmd
Behaviour
This command calls the following TaskCommands:
SendMsgCmd
This command uses the following AccessBeans:
LanguageAccessBean
StoreAccessBean
UserAccessBean
ApprovalStatusAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
ERRTASK_NAME
Error task name.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApproversNotifyCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getEntityId()
Gets the entity ID.
|
java.lang.Long |
getFlowId()
Gets the flow ID.
|
java.lang.Long |
getFlowTypeId()
Gets the flow type ID.
|
void |
performExecute()
Determines recipients and calls SendMsgCmd to create notification messages.
|
void |
setEntityId(java.lang.Long lngEntityId)
Sets the entity ID.
|
void |
setFlowId(java.lang.Long lngFlowId)
Sets the flow ID.
|
void |
setFlowTypeId(java.lang.Long lngFlowTypeId)
Sets the flow type ID.
|
void |
validateParameters()
Verifies that the entity ID and flow ID have been provided.
|
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, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public java.lang.Long getEntityId()
public java.lang.Long getFlowId()
public java.lang.Long getFlowTypeId()
public void performExecute() throws com.ibm.commerce.exception.ECException
validateParameters() is called prior to this method to verify input.
Obtains Approver MemberIDs from Approval Status Records
For each Approver:
Determines preferred language (default is store language).
Generates Message Subject in preferred language (from ApprovalNotification Properties file)
Creates, Populates and Executes SendMsgCmd
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
public void setEntityId(java.lang.Long lngEntityId)
setEntityId
in interface ApproversNotifyCmd
lngEntityId
- public void setFlowId(java.lang.Long lngFlowId)
setFlowId
in interface ApproversNotifyCmd
lngFlowId
- public void setFlowTypeId(java.lang.Long lngFlowTypeId)
setFlowTypeId
in interface ApproversNotifyCmd
lngFlowTypeId
- public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- If an error is found while verifying parameters.