public class SendXMLOrderCmdImpl extends TaskCommandImpl implements OrderMessagingCmd
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.Integer |
MSGTYPE
Deprecated.
This field is replaced by
MSGTYPENAME. |
static java.lang.String |
MSGTYPENAME
Message type name for OrderCreateXMLFormat message (OrderCreateXMLFormat).
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
SendXMLOrderCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
composeOrder()
This method builds the OrderCreateXMLFormat message using the outbound messaging system
composition services and OrderCreateXML.jsp template.
|
boolean |
doPostProcess(TypedProperty aRequestProperty)
This method performs additional processing after the command executes.
|
boolean |
doPreProcess(TypedProperty aRequestProperty)
This method performs additional processing before the command executes.
|
boolean |
doProcess()
This method gets the order information, builds the order create message, and sends the message.
|
java.lang.String |
getDate(java.lang.String str)
This method converts timestamp string to
|
java.lang.String |
getHeaderExtensionRecords()
Implement this method when extending the command for
outbound message extension at the order header level using the
UserData XML element. |
java.lang.String |
getItemExtensionRecords()
Implement this method when extending the command for
outbound message extension at the order item level using
the
UserData XML element. |
Messaging |
getMsgObj()
This method gets the Messaging object.
|
java.lang.Long |
getOrderRn()
This method gets the order reference number passed to this command.
|
java.lang.String |
getTime(java.lang.String str)
This method converts timestamp string to
|
boolean |
isReadyToCallExecute()
This method checks if the command is ready to call
performExecute. |
void |
performExecute()
This method executes the command by calling
doPreProcess, doProcess and doPostProcess |
boolean |
sendMessage()
This method sends the outbound OrderCreateXMLFormat message using outbound messaging system
sendTransacted() service. |
void |
setException(java.lang.Exception ex)
Sets the execution exception when it happens.
|
void |
setMsgObj(Messaging aMsgObj)
This method sets the Messaging object.
|
void |
setOrderRn(java.lang.Long anOrderRn)
This method sets the order reference number used in the command.
|
void |
setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties as input for the command.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersexecuteFromCache, 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, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic static final java.lang.String COPYRIGHT
public static final java.lang.Integer MSGTYPE
MSGTYPENAME.public static final java.lang.String MSGTYPENAME
public boolean composeOrder()
throws ECException
ECExceptionpublic boolean doPostProcess(TypedProperty aRequestProperty)
aRequestProperty - com.ibm.commerce.datatype.TypedPropertypublic boolean doPreProcess(TypedProperty aRequestProperty)
aRequestProperty - com.ibm.commerce.datatype.TypedPropertypublic boolean doProcess()
public java.lang.String getDate(java.lang.String str)
YYYYMMDDformat.
str - the timestamp stringpublic java.lang.String getHeaderExtensionRecords()
UserData XML element. This should return a String object that
contains a series of UserDataField elements.public java.lang.String getItemExtensionRecords()
UserData XML element. This should return a String object that
contains a series of UserDataField elements.public java.lang.Long getOrderRn()
getOrderRn in interface OrderMessagingCmdpublic java.lang.String getTime(java.lang.String str)
HHMMSSformat
str - the timestamp in String formatpublic boolean isReadyToCallExecute()
performExecute.isReadyToCallExecute in interface com.ibm.websphere.command.CommandisReadyToCallExecute in class AbstractECTargetableCommandperformExecute() method; false
otherwise.public void performExecute()
throws ECException
doPreProcess, doProcess and doPostProcessperformExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic boolean sendMessage()
throws ECException
sendTransacted() service.ECExceptionpublic void setOrderRn(java.lang.Long anOrderRn)
setOrderRn in interface OrderMessagingCmdanOrderRn - The order reference number.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
aRequestProperties - The request properties object of the command.ECApplicationExceptionpublic Messaging getMsgObj()
public void setMsgObj(Messaging aMsgObj)
aMsgObj - The Messaging object used in this class.public void setException(java.lang.Exception ex)
ex - The exception thrown when the logic of this class executes.