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, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public CSROrderCommentsNotifyCmdImpl()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- if the comment can not be sent.public void setComment(java.lang.String newComment)
setComment
in interface CSROrderCommentsNotifyCmd
newComment
- The order comment.public void setOrderId(java.lang.Long newOrderId)
setOrderId
in interface CSROrderCommentsNotifyCmd
newOrderId
- The order ID.public void setOrderId(java.lang.String newOrderId)
setOrderId
in interface CSROrderCommentsNotifyCmd
newOrderId
- The order ID.public void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
setReceiverEmailAddress
in interface CSROrderCommentsNotifyCmd
newReceiverEmailAddr
- The email address.public void setSubject(java.lang.String newSubject)
setSubject
in interface CSROrderCommentsNotifyCmd
newSubject
- The email subject.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- if parameters are invalid.public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand