java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.messaging.commands.SendWCSOrderCmdImpl
Task command to create and send legacy WCS Order Create message.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT The IBM copyright notice field. |
static java.lang.Integer |
MSGTYPE Message type id for WCS Order Create message, which is 100. |
protected
TypedProperty |
ocProp Used to provide data as input parms to doPreProcess()
and doPostProcess() |
TypedProperty |
orderNVP Used to hold temporary name-value pairs for order information retrieved from database which will be used when building the message. |
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 | |
---|---|
SendWCSOrderCmdImpl() |
Method Summary | |
---|---|
boolean |
doPostProcess(
TypedProperty aRequestProperty) Performs a 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 USRLST record. |
java.lang.String |
getItemExtensionRecords() Implements this method when you extend the command to do outbound message extension at order item level using the USRLST record. |
java.lang.StringBuffer |
getOrderMsg() Gets the order create message content built by the command. |
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 order create message by doing the following: - Sets the content of the message. |
boolean |
setOrderCreateBillToData() Gets all the bill-to data for WCS Order Create message. |
boolean |
setOrderCreateHeaderData() Gets all the order header values for WCS Order Create message. |
boolean |
setOrderCreateItemData() Gets all the order header values for WCS Order Create message. |
boolean |
setOrderCreatePurchaserData() Gets all the purchaser data for WCS Order Create message. |
boolean |
setOrderCreateStoreData() Gets all the store data for WCS Order Create message. |
boolean |
setOrderNVPValues() Gets all the name value pairs for the WCS Order Create message. |
void |
setOrderRn(java.lang.Long anOrderRn) Sets the order reference number used in the command. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Sets the request properties as input for the command. |
boolean |
writeOrder() Builds the WCS Order Create message. |
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
public TypedProperty orderNVP
protected TypedProperty ocProp
doPreProcess()
and
doPostProcess()
public static final java.lang.Integer MSGTYPE
Constructor Detail |
---|
public SendWCSOrderCmdImpl()
Method Detail |
---|
public boolean doPostProcess(TypedProperty aRequestProperty)
aRequestProperty
- The request properties used by the
command.public boolean doPreProcess(TypedProperty aRequestProperty)
aRequestProperty
- The request properties used by the
command.public 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.StringBuffer getOrderMsg()
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()
sendTransacted()
service.
public boolean setOrderCreateBillToData() throws ECException
ECException
- Raised with ERR_CREATE_EXCEPTION when javax.ejb.CreateException exception is
encountered. Raised with ERR_GENERIC when javax.naming.NamingException
exception is encountered. Raised with ERR_REMOTE_EXCEPTION when
java.rmi.RemoteException exception is encountered. Raised with
ERR_OC_SUPPLIER_ERROR when javax.ejb.FinderException exception is
encountered.public boolean setOrderCreateHeaderData() throws ECException
ECException
- Raised with ERR_CREATE_EXCEPTION when javax.ejb.CreateException exception is
encountered. Raised with ERR_GENERIC when javax.naming.NamingException
exception is encountered. Raised with ERR_REMOTE_EXCEPTION when
java.rmi.RemoteException exception is encountered. Raised with
ERR_OC_SUPPLIER_ERROR when javax.ejb.FinderException exception is
encountered.public boolean setOrderCreateItemData() throws ECException
ECException
- Raised with ERR_CREATE_EXCEPTION when javax.ejb.CreateException exception is
encountered. Raised with ERR_GENERIC when javax.naming.NamingException
exception is encountered. Raised with ERR_REMOTE_EXCEPTION when
java.rmi.RemoteException exception is encountered. Raised with
ERR_OC_SUPPLIER_ERROR when javax.ejb.FinderException exception is
encountered.public boolean setOrderCreatePurchaserData() throws ECException
ECException
- Raised with ERR_CREATE_EXCEPTION when javax.ejb.CreateException exception is
encountered. Raised with ERR_GENERIC when javax.naming.NamingException
exception is encountered. Raised with ERR_REMOTE_EXCEPTION when
java.rmi.RemoteException exception is encountered. Raised with
ERR_OC_SUPPLIER_ERROR when javax.ejb.FinderException exception is
encountered.public boolean setOrderCreateStoreData() throws ECException
ECException
- Raised with ERR_CREATE_EXCEPTION when javax.ejb.CreateException exception is
encountered. Raised with ERR_GENERIC when javax.naming.NamingException
exception is encountered. Raised with ERR_REMOTE_EXCEPTION when
java.rmi.RemoteException exception is encountered. Raised with
ERR_OC_SUPPLIER_ERROR when javax.ejb.FinderException exception is
encountered.public boolean setOrderNVPValues()
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 boolean writeOrder()