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, setViewInputProperties
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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public 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 OrderCommentRecordContrlCmd
arrOrderChangeReason
- the order change reason Ids.public void setComments(java.lang.String[] arrComments)
setComments
in interface OrderCommentRecordContrlCmd
arrComments
- the comments.public java.lang.String[] getComments()
public void setBusinesssChannelId(java.lang.Integer[] arrBusinessChannelId)
setBusinesssChannelId
in interface OrderCommentRecordContrlCmd
arrBusinessChannelId
- channel Id.public void setCsrId(java.lang.Long[] arrCSRId)
setCsrId
in interface OrderCommentRecordContrlCmd
arrCSRId
- this is the array of customer service representative Idpublic void setField1(java.lang.Integer[] arrField1)
setField1
in interface OrderCommentRecordContrlCmd
arrField1
- array of field1.public void setField2(java.lang.String[] arrField2)
setField2
in interface OrderCommentRecordContrlCmd
arrField2
- array of Field2.public void setField3(java.sql.Timestamp[] arrField3)
setField3
in interface OrderCommentRecordContrlCmd
arrField3
- array of Field3.public void setOrderId(java.lang.Long argOrderId)
setOrderId
in interface OrderCommentRecordContrlCmd
argOrderId
- the order Id.public void setOrderVersion(java.lang.Short argOrderVersion)
setOrderVersion
in interface OrderCommentRecordContrlCmd
argOrderVersion
- order version number.public java.lang.Long getOrderId()
public void setSubject(java.lang.String[] argSubject)
setSubject
in interface OrderCommentRecordContrlCmd
argSubject
- subjects of the email.public java.lang.String[] getSubject()
getSubject
in interface OrderCommentRecordContrlCmd
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- the request property.ECException.
ECException
ControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- 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.Command
reset
in class AbstractECTargetableCommand
Command.reset()
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[] getIsNotifyShopper()
public java.lang.String[] getReceiversEmailAddress()
public void setIsNotifyShopper(java.lang.String[] strings)
setIsNotifyShopper
in interface OrderCommentRecordContrlCmd
strings
- if sent email to shopper.public void setReceiversEmailAddress(java.lang.String[] strings)
setReceiversEmailAddress
in interface OrderCommentRecordContrlCmd
strings
- if sent email to shopper.