public class PreProcessOrderCmdImpl extends TaskCommandImpl implements PreProcessOrderCmd
The command checks the last update timestamp of the order if:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
PreProcessOrderCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getAvailabilityChangeURL()
This method gets the URL to redirect to.
|
java.lang.Long | getBillToRn()
This method gets the reference number of the address to bill.
|
java.lang.String | getExternalPassword()
This method gets the external password
|
java.lang.String | getExternalUserId()
This method gets the external user id
|
java.lang.Integer | getField1()
This method gets merchant-customizable field one.
|
java.math.BigDecimal | getField2()
This method gets merchant-customizable field two.
|
java.lang.String | getField3()
This method gets merchant-customizable field three.
|
java.lang.Long | getMaxAvailabilityChange()
This method gets the time interval, in seconds, used with the url set by the setAvailabilityChangeURL method.
|
java.lang.String | getNoInventoryURL()
This method gets the URL to redirect to if any of the order items in the order cannot be allocated or backordered.
|
java.lang.Short | getNotifyMerchant()
This method determines whether the store should be notified when the order processing is complete.
|
java.lang.Short | getNotifyOrderSubmitted()
This method determines whether the customer should be notified when the order is successfully submitted for processing.
|
java.lang.Short | getNotifyShopper()
This method determines whether the customer should be notified when the order processing is complete.
|
java.lang.Long | getOrderRn()
This method gets the order reference number.
|
java.lang.String | getPoNumber()
This method gets the parameter PO number
|
java.lang.String | getQuotationSubmission()
This method gets the quotationSubmission parameter.
|
java.lang.String | getQuoteExpiredURL()
This method gets the URL to redirect to if the order total expired in agreement with the expiry policy set by the setQuoteExpiryPolicy method.
|
java.lang.String | getQuoteExpiryPolicy()
This method gets the quote expiry policy.
|
java.lang.String | getReduceParentQuantities()
This method gets the reduceParentQuantities parameter.
|
TypedProperty | getResponseProperties()
This method gets the response properties object for the calling controller command to use.
|
protected java.lang.String | getTransferMode()
This method gets the transferMode property of the command.
|
protected boolean | isCompatiblePaymentUsedByOrder(OrderAccessBean abOrder)
This method returns a boolean value to indicate whether the order is using compatible payment.
|
boolean | isReadyToCallExecute()
This method checks the validity of the parameters
|
void | performExecute()
Main business logic
|
protected void | reduceParentQuantities(OrderAccessBean parentOrderAB, OrderAccessBean orderAB)
This method reduces the parent order item quantity.
|
void | reset()
This method should be called after a command has been executed to reset its states variables.
|
void | setAvailabilityChangeURL(java.lang.String newAvailabilityChangeURL)
This method sets the URL to redirect to.
|
void | setBillToRn(java.lang.Long anBillToRn)
This method sets the reference number of the address to bill.
|
void | setExternalPassword(java.lang.String astrExternalPassword)
This method sets the external password
|
void | setExternalUserId(java.lang.String astrExternalUserId)
This method sets the external user id
|
void | setField1(java.lang.Integer anField1)
This method sets merchant-customizable field one.
|
void | setField2(java.math.BigDecimal adField2)
This method sets merchant-customizable field two.
|
void | setField3(java.lang.String astrField3)
This method sets merchant-customizable field three.
|
void | setMaxAvailabilityChange(java.lang.Long newMaxAvailabilityChange)
This method sets the time interval, in seconds, used with the url set by the setAvailabilityChangeURL method.
|
void | setNoInventoryURL(java.lang.String newNoInventoryURL)
This method sets the URL to redirect to if any of the order items in the order cannot be allocated or backordered.
|
void | setNotificationAttributes(java.util.Hashtable aNotificationAttributes)
This method sets the notification attributes
|
void | setNotifyMerchant(java.lang.Short newNotifyMerchant)
This method specifies whether to notify the merchant when the order has been processed.
|
void | setNotifyOrderSubmitted(java.lang.Short newNotifyOrderSubmitted)
This method specifies whether the customer should be notified when the order is successfully submitted for processing.
|
void | setNotifyShopper(java.lang.Short newNotifyShopper)
This method specifies whether to notify the shopper when the order has been processed.
|
void | setOrderRn(java.lang.Long anOrderRn)
This method sets the order reference number.
|
void | setPoNumber(java.lang.String argPoNumber)
This method sets the parameter PO number
|
void | setQuotationSubmission(java.lang.String astrQuotationSubmission)
This method sets the quotationSubmission parameter.
|
void | setQuoteExpiredURL(java.lang.String newQuoteExpiredURL)
This method sets the URL to redirect to if the order total expired in agreement with the expiry policy set by the setQuoteExpiryPolicy method.
|
void | setQuoteExpiryPolicy(java.lang.String newQuoteExpiryPolicy)
This method sets the behavior of the command if the order total expires or an order item's fulfillment center changes during inventory allocation.
|
void | setReduceParentQuantities(java.lang.String astrReduceParentQuantities)
This method sets the reduceParentQuantities parameter.
|
void | setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
void | setRetainQuoteFlag(java.lang.String retainQuoteFlag)
This method sets the flag indicating whether to retain the source Quote after successful submission of Order ("Y"/"N")
|
void | setTransferMode(java.lang.String transferMode)
This method sets the transferMode property of the command.
|
protected void | updateBillingAddress()
This method updates the billing address id in the order.
|
protected void | updateQuotationSubmissionAndReduceParentQuantities(OrderAccessBean anabOrder)
This method updates the reltype of OrderQuotaionRel from select to submission and reduce the parent order quantities.
|
protected void | validateContract()
This method validates all the order items' contracts for the order.
|
protected void | validateOrderState()
This method validates the order states.
|
void | validateParameters()
This method checks the validity of the parameters
|
protected void | validateShippingAddress()
This method validates the shipping address for all order items in the order.
|
public static final java.lang.String COPYRIGHT
public java.lang.String getAvailabilityChangeURL()
public java.lang.Long getBillToRn()
public java.lang.Integer getField1()
public java.math.BigDecimal getField2()
public java.lang.String getField3()
public java.lang.Long getMaxAvailabilityChange()
public java.lang.String getNoInventoryURL()
public java.lang.Short getNotifyMerchant()
public java.lang.Short getNotifyOrderSubmitted()
public java.lang.Short getNotifyShopper()
public java.lang.String getQuotationSubmission()
public java.lang.Long getOrderRn()
public java.lang.String getQuoteExpiredURL()
public java.lang.String getQuoteExpiryPolicy()
public java.lang.String getReduceParentQuantities()
public java.lang.String getExternalUserId()
public void setExternalUserId(java.lang.String astrExternalUserId)
public java.lang.String getExternalPassword()
public void setExternalPassword(java.lang.String astrExternalPassword)
public TypedProperty getResponseProperties()
public boolean isReadyToCallExecute()
public void performExecute() throws ECException
protected void validateShippingAddress() throws ECException
protected void validateContract() throws ECException
protected void reduceParentQuantities(OrderAccessBean parentOrderAB, OrderAccessBean orderAB) throws javax.ejb.FinderException, java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException, java.sql.SQLException, ECException
public void reset()
public void setAvailabilityChangeURL(java.lang.String newAvailabilityChangeURL)
public void setBillToRn(java.lang.Long anBillToRn)
public void setField1(java.lang.Integer anField1)
public void setField2(java.math.BigDecimal adField2)
public void setField3(java.lang.String astrField3)
public void setMaxAvailabilityChange(java.lang.Long newMaxAvailabilityChange)
public void setNoInventoryURL(java.lang.String newNoInventoryURL)
public void setNotifyMerchant(java.lang.Short newNotifyMerchant)
public void setNotifyOrderSubmitted(java.lang.Short newNotifyOrderSubmitted)
1=Yes
0=No (default)
public void setNotifyShopper(java.lang.Short newNotifyShopper)
public void setQuotationSubmission(java.lang.String astrQuotationSubmission)
public void setOrderRn(java.lang.Long anOrderRn)
public void setQuoteExpiredURL(java.lang.String newQuoteExpiredURL)
public void setQuoteExpiryPolicy(java.lang.String newQuoteExpiryPolicy)
public void setReduceParentQuantities(java.lang.String astrReduceParentQuantities)
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
public void setTransferMode(java.lang.String transferMode)
protected java.lang.String getTransferMode()
protected void updateQuotationSubmissionAndReduceParentQuantities(OrderAccessBean anabOrder) throws javax.ejb.FinderException, java.rmi.RemoteException, javax.ejb.CreateException, javax.naming.NamingException, java.sql.SQLException, ECException
protected void validateOrderState() throws ECException
public void validateParameters() throws ECException
public void setNotificationAttributes(java.util.Hashtable aNotificationAttributes)
public void setRetainQuoteFlag(java.lang.String retainQuoteFlag)
public java.lang.String getPoNumber()
public void setPoNumber(java.lang.String argPoNumber)
protected boolean isCompatiblePaymentUsedByOrder(OrderAccessBean abOrder) throws ECException
protected void updateBillingAddress() throws ECException