java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.messaging.commands.SendXMLOrderCmdImpl
Task command to create and send XML Order Create message.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The IBM copyright notice field. |
static java.lang.Integer |
MSGTYPE Message type id for XML Order Create message, which is 101. |
protected
TypedProperty |
ocProp |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. OrderMessagingCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
SendXMLOrderCmdImpl() |
Method Summary | |
---|---|
boolean |
composeOrder() Build the XML Order Create message using the outbound messaging system composition services and OrderCreateXML.jsp template. |
boolean |
doPostProcess(
TypedProperty aRequestProperty) Performs additional processing after the command executes. |
boolean |
doPreProcess(
TypedProperty aRequestProperty) Performs additional processing before the command executes. |
boolean |
doProcess() Gets the order information, builds the order create message and sends the message. |
java.lang.String |
getDate(java.lang.String str) Converts timestamp string to YYYYMMDD format. |
java.lang.String |
getHeaderExtensionRecords() Implements this method when you extend the command to do outbound message extension at order header level using the UserData XML element and should return a String object that contains a series of UserDataField elements. |
java.lang.String |
getItemExtensionRecords() Implements this method when you extend the command to do outbound message extension at order item level using the UserData XML element and should return a String object that contains a series of UserDataField elements. |
java.lang.Long |
getOrderRn() Gets the order reference number passed to this command. |
java.lang.String |
getTime(java.lang.String str) Converts timestamp string to HHMMSS format |
boolean |
isReadyToCallExecute() Checks if the command is ready to call Execute . |
void |
performExecute() Executes the command by calling doPreProcess ,
doProcess and doPostProcess |
boolean |
sendMessage() Sends the outbound XML order create message using outbound messaging system sendTransacted() service. |
void |
setOrderRn(java.lang.Long OrderRn) Sets the order reference number used in the command. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Sets the request properties as input for the command. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected TypedProperty ocProp
public static final java.lang.Integer MSGTYPE
Constructor Detail |
---|
public SendXMLOrderCmdImpl()
Method Detail |
---|
public boolean composeOrder() throws ECException
ECException
public 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)
str
- the timestamp stringpublic java.lang.String getHeaderExtensionRecords()
public java.lang.String getItemExtensionRecords()
public java.lang.Long getOrderRn()
getOrderRn
in interface
OrderMessagingCmd
public java.lang.String getTime(java.lang.String str)
str
- the timestamp in String formatpublic boolean isReadyToCallExecute()
Execute
.
isReadyToCallExecute
in class
AbstractECTargetableCommand
performExecute()
method;
false otherwise.public void performExecute() throws ECException
doPreProcess
,
doProcess
and doPostProcess
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public boolean sendMessage() throws ECException
sendTransacted()
service.
ECException
public void setOrderRn(java.lang.Long OrderRn)
setOrderRn
in interface
OrderMessagingCmd
OrderRn
- order id.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
aRequestProperties
- The request properties object of the
command.
ECApplicationException