com.ibm.commerce.tools.optools.order.commands
Class CSROrderCommentsNotifyCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.tools.optools.order.commands.CSROrderCommentsNotifyCmdImpl
All Implemented Interfaces:
CSROrderCommentsNotifyCmd, ECCommand, TaskCommand

public class CSROrderCommentsNotifyCmdImpl
extends TaskCommandImpl
implements CSROrderCommentsNotifyCmd

 Send the order comment to the email address specified.  
 This command will use the email address of the store as the sender email address.
 


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands.CSROrderCommentsNotifyCmd
defaultCommandClassName, MSG_TYPE_NAME, NAME
 
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)
          Set the order comment which needs to be sent.
 void setOrderId(java.lang.Long newOrderId)
          Set the order ID.
 void setOrderId(java.lang.String newOrderId)
          Set the order ID.
 void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
          Set the email address.
 void setSubject(java.lang.String newSubject)
          Set the email subject.
 void validateParameters()
          Validate the input parameters are valid.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CSROrderCommentsNotifyCmdImpl

public CSROrderCommentsNotifyCmdImpl()
CSROrderCommentsNotifyCmdImpl constructor.
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECCommand
Returns:
AccessVector - a vector of resource action pairs

getStoreEMailAddress

public java.lang.String getStoreEMailAddress(java.lang.String newStoreId)
                                      throws java.lang.Exception
Obtain the email address of the store.
Parameters:
newStoreId - The store ID.
Returns:
The email address of the store.

performExecute

public void performExecute()
                    throws ECException
This method performs the execution to send order comment.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Throws:
ECException -  

setComment

public void setComment(java.lang.String newComment)
Set the order comment which needs to be sent.
Specified by:
setComment in interface CSROrderCommentsNotifyCmd
Parameters:
newComment - The order comment.

setOrderId

public void setOrderId(java.lang.Long newOrderId)
Set the order ID.
Specified by:
setOrderId in interface CSROrderCommentsNotifyCmd
Parameters:
newOrderId - The order ID.

setOrderId

public void setOrderId(java.lang.String newOrderId)
Set the order ID.
Specified by:
setOrderId in interface CSROrderCommentsNotifyCmd
Parameters:
newOrderId - The order ID.

setReceiverEmailAddress

public void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
Set the email address.
Specified by:
setReceiverEmailAddress in interface CSROrderCommentsNotifyCmd
Parameters:
newReceiverEmailAddr - The email address.

setSubject

public void setSubject(java.lang.String newSubject)
Set the email subject.
Specified by:
setSubject in interface CSROrderCommentsNotifyCmd
Parameters:
newSubject - The email subject.

validateParameters

public void validateParameters()
                        throws ECException
Validate the input parameters are valid.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Throws:
ECException -