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, validateParameters
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public 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
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)
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 OrderMessagingCmd
public 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.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
performExecute()
method; false
otherwise.public void performExecute() throws ECException
doPreProcess
, doProcess
and doPostProcess
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public boolean sendMessage() throws ECException
sendTransacted()
service.ECException
public void setOrderRn(java.lang.Long anOrderRn)
setOrderRn
in interface OrderMessagingCmd
anOrderRn
- The order reference number.public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
aRequestProperties
- The request properties object of the command.ECApplicationException
public 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.