java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.tools.optools.order.commands.CSROrderCommentsNotifyCmdImpl
This is the default implementation of the
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:
OrderAccessBean
StoreAccessBean
StoreAddressAccessBean
StoreEntityDescriptionAccessBeanean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands. CSROrderCommentsNotifyCmd |
defaultCommandClassName,
MSG_TYPE_NAME,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CSROrderCommentsNotifyCmdImpl() CSROrderCommentsNotifyCmdImpl constructor. |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CSROrderCommentsNotifyCmdImpl()
Method Detail |
---|
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 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.