public class ServiceProviderChildOrderCreateCmdImpl extends ControllerCommandImpl implements ChildOrderCreateCmd
Name | Description |
---|---|
orderId | the parent order ID |
orderItemId | the parent order item ID |
Name | Description |
---|---|
outOrderName | the order name |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ServiceProviderChildOrderCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | cancelChildOrder()
This method cancel the new created child order.
|
protected java.util.HashMap | copyOrder(TypedProperty reqParms, CommandContext iCommandContext)
Copy parent order to child order using the TypedProperty and CommandContext
|
protected void | copyOrderItemMisc(OrderItemAccessBean oiabSource, OrderItemAccessBean oiabTarget)
Copy tax, shipping, shipping tax, adjustment and product price from source orderItemId to target orderItemId
|
protected void | copyOrderMisc(OrderAccessBean oabSource, OrderAccessBean oabTarget)
Copy tax, shipping, shipping tax, adjustment and product price from source orderId to target orderId
|
protected java.lang.String | copyRecurringOrder()
Copy parent recurring order to child order If needRecalculate=false copy parent order item to child order one by one.
|
protected java.lang.String | copySubscription()
Copy parent Subscription to child order To create child order for Subscription, the method only copy specified order item to new child order
|
protected void | createChildOrder()
This method implements creating child order.
|
protected void | createOrderRel(java.lang.Long parentOrderId, java.lang.Long parentOrderItemId, java.lang.Long childOrderId)
Create child order of specified parent order or parent order item.
|
java.lang.Long | getCatEntryId()
Gets the catalog entry id.
|
CommandContext | getChildCommandContext()
get the command context for child order
|
OrderAccessBean | getChildOrderAccessBean()
Gets the order access bean.
|
java.lang.Long | getChildOrderId()
Gets the child order item id.
|
protected boolean | getNeedPayment()
get the boolean value whether payment is required
|
protected boolean | getNeedRecalculate()
get the boolean value whether recalculate is required
|
java.lang.Long | getOrderId()
Gets the order id.
|
java.lang.Long | getOrderItemId()
Gets the order item id.
|
java.lang.String | getOrderType()
Gets the order type.
|
AccessVector | getResources()
This method returns an AccessVector containing the parent OrderAccessBean .
|
java.math.BigDecimal | getSubscriptionAmount()
Gets the subscription amount.
|
java.lang.Double | getSubscriptionQuantity()
Gets the subscription quantity.
|
java.lang.String | getSubscriptionQuantityUOM()
Gets the subscription quantity unit of measure.
|
protected boolean | isCopyAutoAddedOrderItems()
This method return whether we need copy auto added order items.
|
void | performExecute()
Command to create child order.
|
protected TypedProperty | prepareChildOrderForProcessing()
prepare order for processing
|
protected void | processChildOrder(TypedProperty aReqParms)
Process order
|
void | reset()
This method should be called after a command has been executed to reset its state variables.
|
protected void | resetChildOrderType()
This method reset recurring child order type back to 'ORD'.
|
void | setCatEntryId(java.lang.Long newCatEntryId)
Sets the catalog entry id.
|
void | setChildCommandContext(CommandContext childCommandContext)
Sets the command context for child order
|
void | setChildOrderABandType(java.lang.String orderId)
Sets child order access bean and child order type using order id
|
void | setChildOrderAccessBean(OrderAccessBean orderAB)
Sets the order access bean.
|
void | setChildOrderId(java.lang.Long childOrderId)
Sets the new created child order id.
|
protected TypedProperty | setCopyOrderCommonRequestProperties(CommandContext childContext)
Set common request properties for copy child order
|
protected void | setNeedPayment()
set the boolean value whether payment is required
|
protected void | setNeedRecalculate()
set the boolean value whether recalculate is required
|
void | setOrderId(java.lang.Long newOrderId)
Sets the order id.
|
void | setOrderItemId(java.lang.Long newOrderItemId)
Sets the order item id.
|
void | setOrderType(java.lang.String iOrderType)
Sets the order type.
|
void | setRequestProperties(TypedProperty aReqParms)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command.
|
void | setSubscriptionAmount(java.math.BigDecimal iSubscriptionAmount)
Sets the subscription amount.
|
void | setSubscriptionQuantity(java.lang.Double iSubscriptionQuantity)
Sets the subscription quantity.
|
void | setSubscriptionQuantityUOM(java.lang.String iSubscriptionQuantityUOM)
Sets the subscription quantity unit of measure.
|
protected void | startNewTransaction()
This method commit previous transaction and start a new transaction
|
protected void | updateChildOrderPI()
If no need payment, use the dummy PI to process order
|
protected void | updateSubscription()
This method update subscription child order.
|
protected void | validateCatalogEntryId()
For subscription, child order accept new catalog entry id as input.
|
protected void | validateChildOrderInventory()
This method checks each order item's inventory status and order item status of child order.
|
protected void | validateChildOrderPayment(TypedProperty response)
This method validate child order's payment status.
|
void | validateParameters()
This method performs server side parameter checking.
|
protected void | validateParentOrder()
Validate parent order.
|
protected void | validateSubscription()
This method validate parameters for Subscription.
|
public static final java.lang.String COPYRIGHT
public ServiceProviderChildOrderCreateCmdImpl()
protected void setNeedPayment() throws ECException
protected void setNeedRecalculate() throws ECException
protected boolean getNeedPayment()
public CommandContext getChildCommandContext()
protected boolean getNeedRecalculate()
public OrderAccessBean getChildOrderAccessBean()
public java.lang.Long getOrderId()
public java.math.BigDecimal getSubscriptionAmount()
public java.lang.String getSubscriptionQuantityUOM()
public java.lang.Double getSubscriptionQuantity()
public java.lang.Long getCatEntryId()
public java.lang.String getOrderType()
public java.lang.Long getOrderItemId()
public java.lang.Long getChildOrderId()
public void performExecute() throws ECException
protected void validateChildOrderInventory() throws ECException
protected void validateChildOrderPayment(TypedProperty response) throws ECException
protected void startNewTransaction() throws ECException
protected void cancelChildOrder() throws ECException
protected void validateCatalogEntryId() throws ECException
public void validateParameters() throws ECException
protected void validateSubscription() throws ECException
protected void validateParentOrder() throws ECException
protected void updateChildOrderPI() throws ECException
protected void resetChildOrderType() throws ECException
protected void createOrderRel(java.lang.Long parentOrderId, java.lang.Long parentOrderItemId, java.lang.Long childOrderId) throws ECException
protected TypedProperty prepareChildOrderForProcessing() throws ECException
protected void processChildOrder(TypedProperty aReqParms) throws ECException
protected TypedProperty setCopyOrderCommonRequestProperties(CommandContext childContext) throws ECException
protected java.lang.String copyRecurringOrder() throws ECException
protected void copyOrderMisc(OrderAccessBean oabSource, OrderAccessBean oabTarget) throws ECException
protected void copyOrderItemMisc(OrderItemAccessBean oiabSource, OrderItemAccessBean oiabTarget) throws ECException
protected java.lang.String copySubscription() throws ECException
protected void updateSubscription() throws ECException
protected java.util.HashMap copyOrder(TypedProperty reqParms, CommandContext iCommandContext) throws ECException
protected void createChildOrder() throws ECException
public void setOrderId(java.lang.Long newOrderId)
public void setSubscriptionAmount(java.math.BigDecimal iSubscriptionAmount)
public void setSubscriptionQuantity(java.lang.Double iSubscriptionQuantity)
public void setSubscriptionQuantityUOM(java.lang.String iSubscriptionQuantityUOM)
public void setCatEntryId(java.lang.Long newCatEntryId)
public void setOrderType(java.lang.String iOrderType)
public void setChildOrderId(java.lang.Long childOrderId)
public void setOrderItemId(java.lang.Long newOrderItemId)
public void setChildCommandContext(CommandContext childCommandContext)
public void setChildOrderAccessBean(OrderAccessBean orderAB)
public void setChildOrderABandType(java.lang.String orderId) throws ECException
public AccessVector getResources() throws ECException
public void setRequestProperties(TypedProperty aReqParms) throws ECException
protected boolean isCopyAutoAddedOrderItems() throws ECException
public void reset()