|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--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 internal copyright field. |
static java.lang.Integer |
MSGTYPE
Message type for XML Order Create message = 101 |
protected TypedProperty |
ocProp
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands.OrderMessagingCmd |
defaultCommandClassName, NAME |
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()
|
java.lang.String |
getDate(java.lang.String str)
Converts timestamp string to YYYYMMDD format |
java.lang.String |
getHeaderExtensionRecords()
Implement 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()
Implement 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()
Get the order reference number passed to this command |
java.lang.String |
getTime(java.lang.String str)
Converts timestamp string to HHMMSS format |
boolean |
isReadyToCallExecute()
This method checks if command is ready to be executed |
void |
performExecute()
Execute the command by calling doPreProcess, doProcess and doPostProcess |
boolean |
sendMessage()
Send the outbound XML order create message using outbound messaging system sendTransacted() service |
void |
setOrderRn(java.lang.Long OrderRn)
Sets the order reference number. |
void |
setRequestProperties(TypedProperty aRequestProperties)
Set the request properties as input for the command. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.Integer MSGTYPE
protected TypedProperty ocProp
Constructor Detail |
public SendXMLOrderCmdImpl()
Method Detail |
public boolean composeOrder() throws ECException
public boolean doPostProcess(TypedProperty aRequestProperty)
aRequestProperty
- com.ibm.commerce.datatype.TypedPropertyECException
- public boolean doPreProcess(TypedProperty aRequestProperty)
aRequestProperty
- com.ibm.commerce.datatype.TypedPropertyECException
- public boolean doProcess()
public java.lang.String getDate(java.lang.String str)
str
- java.lang.String - timestamppublic 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
- java.lang.String - timestamppublic boolean isReadyToCallExecute()
isReadyToCallExecute
in class AbstractECCommand
com.ibm.commerce.command.AbstractECCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public boolean sendMessage() throws ECException
public void setOrderRn(java.lang.Long OrderRn)
setOrderRn
in interface OrderMessagingCmd
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |