public class CSROrderCommentsNotifyCmdImpl extends TaskCommandImpl implements CSROrderCommentsNotifyCmd
CSROrderCommentsNotifyCmd command.
This command will use the email address of the store as the sender email address.
This command calls the following command:
This command uses the following AccessBeans:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, MSG_TYPE_NAME, NAME| Constructor and Description |
|---|
CSROrderCommentsNotifyCmdImpl()
CSROrderCommentsNotifyCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getStoreEMailAddress(java.lang.String newStoreId)
Obtain the email address of the store.
|
void |
performExecute()
This method performs the execution to send order comment.
|
void |
reset()
Reset
|
void |
setComment(java.lang.String newComment)
Sets the order comment which needs to be sent.
|
void |
setOrderId(java.lang.Long newOrderId)
Sets the order ID.
|
void |
setOrderId(java.lang.String newOrderId)
Sets the order ID.
|
void |
setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
Sets the email address.
|
void |
setSubject(java.lang.String newSubject)
Ses the email subject.
|
void |
validateParameters()
Validates the input parameters are valid.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public CSROrderCommentsNotifyCmdImpl()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - If the resource can not be retrieved.public java.lang.String getStoreEMailAddress(java.lang.String newStoreId)
throws java.lang.Exception
newStoreId - The store ID.java.lang.Exception - If the email address cannot be retrievedpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - if the comment can not be sent.public void setComment(java.lang.String newComment)
setComment in interface CSROrderCommentsNotifyCmdnewComment - The order comment.public void setOrderId(java.lang.Long newOrderId)
setOrderId in interface CSROrderCommentsNotifyCmdnewOrderId - The order ID.public void setOrderId(java.lang.String newOrderId)
setOrderId in interface CSROrderCommentsNotifyCmdnewOrderId - The order ID.public void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
setReceiverEmailAddress in interface CSROrderCommentsNotifyCmdnewReceiverEmailAddr - The email address.public void setSubject(java.lang.String newSubject)
setSubject in interface CSROrderCommentsNotifyCmdnewSubject - The email subject.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - if parameters are invalid.public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommand