|
||||||||
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.SendWCSOrderCmdImpl
Task command to create and send legacy WCS Order Create message
Field Summary | |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
static java.lang.Integer |
MSGTYPE
Message type for WCS Order Create message = 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.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands.OrderMessagingCmd |
defaultCommandClassName, NAME |
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()
Get the order information, build the order create message and the message |
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 USRLST record. |
java.lang.String |
getItemExtensionRecords()
Implement this method when you extend the command to do outbound message extension at order item level using the USRLST record. |
java.lang.String |
getOrderMsg()
Get the order create message content built by the command |
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 order create message by doing the following - Set the content of the message - Send the message using outbound messaging system sendTransacted() service |
boolean |
setOrderCreateBillToData()
Get all the bill-to data for WCS Order Create message |
boolean |
setOrderCreateHeaderData()
Get all the order header values for WCS Order Create message |
boolean |
setOrderCreateItemData()
Get all the order header values for WCS Order Create message |
boolean |
setOrderCreatePurchaserData()
Get all the purchaser data for WCS Order Create message |
boolean |
setOrderCreateStoreData()
Get all the store data for WCS Order Create message |
boolean |
setOrderNVPValues()
Get all the name value pairs for the WCS Order Create message. |
void |
setOrderRn(java.lang.Long OrderRn)
Sets the order reference number. |
void |
setRequestProperties(TypedProperty aRequestProperties)
Set the request properties as input for the command. |
boolean |
writeOrder()
Build the WCS Order Create message |
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
public TypedProperty orderNVP
Constructor Detail |
public SendWCSOrderCmdImpl()
Method Detail |
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()
aRequestProperty
- com.ibm.commerce.datatype.TypedPropertypublic 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.String getOrderMsg()
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()
public boolean setOrderCreateBillToData() throws ECException
public boolean setOrderCreateHeaderData() throws ECException
public boolean setOrderCreateItemData() throws ECException
public boolean setOrderCreatePurchaserData() throws ECException
public boolean setOrderCreateStoreData() throws ECException
public boolean setOrderNVPValues()
public void setOrderRn(java.lang.Long OrderRn)
setOrderRn
in interface OrderMessagingCmd
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public boolean writeOrder()
aRequestProperty
- com.ibm.commerce.datatype.TypedProperty
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |