public class OrderCommentRecordContrlCmdImpl extends ControllerCommandImpl implements OrderCommentRecordContrlCmd
OrderCommentRecordContrlCmd controller command.
?comments_1="comments1"&comments_2="comments2"&changeReason_2="1001"&CSRId_0="-1000",
The index 0 indicates all the comments are from this CSR -1000, also
you can use CSRId_1="-1000"&CSRId_2="-1000" instead.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
OrderCommentRecordContrlCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
callOrderCommentsNotifyCmd(java.lang.Long orderId)
The method calls
CSROrderCommentsNotifyCmd command to send comment to a specified email address. |
java.lang.String[] |
getComments()
This method gets the order comments.
|
java.lang.String[] |
getIsNotifyShopper()
This method gets the notifyShopper parameters
|
java.lang.Long |
getOrderId()
This method gets the order Id.
|
java.lang.String[] |
getReceiversEmailAddress() |
AccessVector |
getResources()
This method gets the access vector of OrderAccessBean accessed by this command.
|
java.lang.String[] |
getSubject()
This method gets the subject.
|
void |
performExecute()
This method executes the main business logic.
|
void |
reset()
This method resets the command for reusing.
|
void |
setBusinesssChannelId(java.lang.Integer[] arrBusinessChannelId)
This method sets the channel id from which the order change comments come.
|
void |
setComments(java.lang.String[] arrComments)
This method sets the comments for the changed Order.
|
void |
setCsrId(java.lang.Long[] arrCSRId)
This method sets the customer service representative Id array.
|
void |
setField1(java.lang.Integer[] arrField1)
This method sets the Field1 array.
|
void |
setField2(java.lang.String[] arrField2)
This method sets the Field2 array.
|
void |
setField3(java.sql.Timestamp[] arrField3)
This method sets the Field3 array.
|
void |
setIsNotifyShopper(java.lang.String[] strings)
This method sets if send email to shopper.
|
void |
setOrderchangeReasonId(java.lang.Integer[] arrOrderChangeReason)
This method sets the order change reason.
|
void |
setOrderId(java.lang.Long argOrderId)
This method sets the order id from which the order change comments come.
|
void |
setOrderVersion(java.lang.Short argOrderVersion)
This method sets the order version number which the order change comments are against.
|
void |
setReceiversEmailAddress(java.lang.String[] strings)
This method sets if send email to shopper.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties of this command implementation.
|
void |
setSubject(java.lang.String[] argSubject)
This method sets the subjects of the email.
|
void |
validateParameters()
This method validates the parameter orderId is passed in.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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, 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, 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 void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void callOrderCommentsNotifyCmd(java.lang.Long orderId)
throws ECException
CSROrderCommentsNotifyCmd command to send comment to a specified email address.orderId - The order ID.ECException - if the comment can not be sent.public void setOrderchangeReasonId(java.lang.Integer[] arrOrderChangeReason)
setOrderchangeReasonId in interface OrderCommentRecordContrlCmdarrOrderChangeReason - the order change reason Ids.public void setComments(java.lang.String[] arrComments)
setComments in interface OrderCommentRecordContrlCmdarrComments - the comments.public java.lang.String[] getComments()
public void setBusinesssChannelId(java.lang.Integer[] arrBusinessChannelId)
setBusinesssChannelId in interface OrderCommentRecordContrlCmdarrBusinessChannelId - channel Id.public void setCsrId(java.lang.Long[] arrCSRId)
setCsrId in interface OrderCommentRecordContrlCmdarrCSRId - this is the array of customer service representative Idpublic void setField1(java.lang.Integer[] arrField1)
setField1 in interface OrderCommentRecordContrlCmdarrField1 - array of field1.public void setField2(java.lang.String[] arrField2)
setField2 in interface OrderCommentRecordContrlCmdarrField2 - array of Field2.public void setField3(java.sql.Timestamp[] arrField3)
setField3 in interface OrderCommentRecordContrlCmdarrField3 - array of Field3.public void setOrderId(java.lang.Long argOrderId)
setOrderId in interface OrderCommentRecordContrlCmdargOrderId - the order Id.public void setOrderVersion(java.lang.Short argOrderVersion)
setOrderVersion in interface OrderCommentRecordContrlCmdargOrderVersion - order version number.public java.lang.Long getOrderId()
public void setSubject(java.lang.String[] argSubject)
setSubject in interface OrderCommentRecordContrlCmdargSubject - subjects of the email.public java.lang.String[] getSubject()
getSubject in interface OrderCommentRecordContrlCmdpublic void setRequestProperties(TypedProperty aRequestProperties) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplaRequestProperties - the request property.ECException.ECExceptionControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - with _ERR_BAD_MISSING_CMD_PARAMETER will be thrown when orderId is not passed in.ECCommand.validateParameters()public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandCommand.reset()public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECException - If the resource can not be retrieved.public java.lang.String[] getIsNotifyShopper()
public java.lang.String[] getReceiversEmailAddress()
public void setIsNotifyShopper(java.lang.String[] strings)
setIsNotifyShopper in interface OrderCommentRecordContrlCmdstrings - if sent email to shopper.public void setReceiversEmailAddress(java.lang.String[] strings)
setReceiversEmailAddress in interface OrderCommentRecordContrlCmdstrings - if sent email to shopper.