java.lang.ObjectCacheableCommandImpl
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
public boolean doPostProcess(TypedProperty aRequestProperty)
public boolean doPreProcess(TypedProperty aRequestProperty)
public boolean doProcess()
public java.lang.String getDate(java.lang.String str)
public java.lang.String getHeaderExtensionRecords()
public java.lang.String getItemExtensionRecords()
public java.lang.Long getOrderRn()
public java.lang.String getTime(java.lang.String str)
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
public boolean sendMessage() throws ECException
public void setOrderRn(java.lang.Long OrderRn)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.