public class CSROrderCommentsAddCmdImpl extends ToolsControllerCommandImpl implements CSROrderCommentsAddCmd
CSROrderCommentsAddCmd command.
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, NAME| Constructor and Description |
|---|
CSROrderCommentsAddCmdImpl()
CSROrderCommentsAddCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
callCSROrderCommentsNotifyCmd(java.lang.Long orderId)
Calls CSROrderCommentsNotify command to send comment to a specified email address.
|
java.lang.String |
getInComment()
Returns the order comment.
|
java.lang.String |
getIsNotifyShopper()
Returns the flag to indicate if there is a need to send the comment to the email address.
|
java.util.Hashtable |
getNLS()
Returns NLS properties.
|
java.lang.Long[] |
getOrderIds()
Returns the list of orders IDs which need to be added the order comments.
|
CommandContext |
getOrgCmdContext()
Returns original command context.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.String |
getXmlfile()
Return the XML file.
|
void |
performExecute()
This method performs the execution to add comment to orders.
|
void |
setInComment(java.lang.String newInComment)
Set order comment.
|
void |
setIsNotifyShopper(java.lang.String notifyShopper)
Set the flag to indicate if the order comment needs to be emailed.
|
void |
setOrderIds(java.lang.Long[] newOrderIds)
Set Order IDs which needs to be canceled.
|
void |
setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
Set the email address.
|
void |
validateParameters()
Sets the NLS properties and parse the input XML parameters.
|
getViewInputProperties, setRequestPropertiescheckPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public CSROrderCommentsAddCmdImpl()
public void callCSROrderCommentsNotifyCmd(java.lang.Long orderId)
throws ECException
orderId - The order ID.ECException - if the comment can not be sent.public java.lang.String getInComment()
public java.lang.String getIsNotifyShopper()
public java.util.Hashtable getNLS()
public java.lang.Long[] getOrderIds()
public CommandContext getOrgCmdContext()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - If the resource can not be retrieved.public java.lang.String getXmlfile()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - if comment can not be sent.public void setInComment(java.lang.String newInComment)
newInComment - The order comment.public void setIsNotifyShopper(java.lang.String notifyShopper)
notifyShopper - The flag to indicate if the order comment needs to be emailed.public void setOrderIds(java.lang.Long[] newOrderIds)
newOrderIds - The order IDs.public void setReceiverEmailAddress(java.lang.String newReceiverEmailAddr)
newReceiverEmailAddr - The email address.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - if parameter is invalid.