public class OrderItemDeleteCmdImpl extends OrderBaseCmdImpl implements OrderItemDeleteCmd
Name | Description |
---|---|
orderItemId | The orderitem Ids, the order items to be deleted. Mandatory if catEntryId is not specified. |
catEntryId | The catalog entry Ids, to which the order items to be deleted. Mandatory if orderItemId is not specified. |
orderId | The order Ids. Mandatory if orderItemId is not specified. |
outOrderName | The names of name-value pairs to add to the redirection URL. The values of the added name-value pairs are the reference numbers of the input orders. Optional. |
calculateOrder | If order will be recalculated after some order items are removed. The values can be 1 for recalculate or 0 for not recalculate. Default value is 0 |
Name | Description |
---|---|
The value for outOrderName[i] | The array of order Ids. |
orderId | If outOrderName is empty, used as outOrderName. |
View Task: RedirectView
This command uses the following AccessBeans:Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected java.lang.String[] | iCatEntryId
Catalog entry Ids.
|
protected java.lang.String[] | iOrderId
Order ids abbreviations.
|
protected TypedProperty | iOrderIdProperty
Key is "orderId", value is the array of order Id abbreviations.
|
protected java.util.Vector | iOrderItemAB
Order items to be deleted.
|
protected java.lang.String[] | iOrderItemId
Orderitems Ids.
|
protected java.lang.String[] | iOutOrderNames
The names of name-value pairs to add to the redirection URL.
|
protected java.util.Hashtable | iUniqueOrderIdList
Key is resolved order Id, value is "".
|
protected java.lang.String[] | iValidInputPOrderValues
Valid input order abbreviations.
|
Constructor and Description |
---|
OrderItemDeleteCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void | buildResourceList()
Build resource list.
|
protected void | calculateOrder()
Call OrderCalculateCmd to calculate Order
|
protected boolean | contains(java.util.Vector stringList, java.lang.String searchString)
This method will return if a string is contained in a Vector of String.
|
protected void | flush()
flush all sql update statements to the database
|
protected java.lang.String | getCalculateOrder()
Get calculate Order
|
protected java.lang.String[] | getOrderIds()
Return a list of ids of the orders in which at lease one order item has been delete.
|
AccessVector | getResources()
Gets the resources.
|
protected boolean | isValidStatus(OrderAccessBean orderAB)
Checks whether the status of the order is valid when you try to delete order items from the order.
|
void | performExecute()
The main entry point of the command.
|
protected void | raiseBusinessEvents()
Business auditing probe that will raise the ORDERITEM_CREATION_EVENT for each new orderitem created for the quote.
|
void | reset()
Reset all instance variables.
|
protected void | resetPriceOverridePrepareFlagsForOrder()
Resets the price override prepare flags in the orderItems for the Order
|
protected void | resetSkipRepricingPrepareFlagsForOrder(OrderAccessBean orderAB)
Resets the SKIP_REPRICING prepare flag in the orderItems for the Order
|
protected void | setCalculateOrder(java.lang.String a)
Set Calculate Order.
|
void | setCatEntryId(java.lang.String[] ids)
set a list of catalog entry ids to be deleted from the pending orders specified by orderId.
|
void | setOrderId(java.lang.String[] numbers)
Specifies zero or more orders, using order ids or one of the special abbreviations ".", "*", ".t", "*t".
|
void | setOrderItemId(java.lang.String[] numbers)
Set an array of id of order items to be deleted.
|
void | setOutOrderName(java.lang.String[] names)
Specifies the names of name-value pairs to add to the redirection URL.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.
|
protected void | shipInfoVerify(java.lang.String[] orderIds)
After the delete has taken place ensures that any orphaned ship info records will be deleted.
|
protected void | unLockOrder(java.lang.String orderId)
Unlocks the order.
|
protected void | updateBusinessEventData(OrderItemAccessBean orderitemAB)
Capture the business event data
|
void | validateParameters()
Verify the input parameters.
|
public static final java.lang.String COPYRIGHT
protected java.lang.String[] iCatEntryId
protected java.lang.String[] iOrderItemId
protected java.lang.String[] iOrderId
protected java.lang.String[] iOutOrderNames
protected java.lang.String[] iValidInputPOrderValues
protected TypedProperty iOrderIdProperty
protected java.util.Hashtable iUniqueOrderIdList
protected java.util.Vector iOrderItemAB
protected boolean contains(java.util.Vector stringList, java.lang.String searchString)
protected java.lang.String[] getOrderIds()
public AccessVector getResources() throws ECException
protected void setCalculateOrder(java.lang.String a)
protected java.lang.String getCalculateOrder()
protected boolean isValidStatus(OrderAccessBean orderAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void performExecute() throws ECException
public void reset()
public void setCatEntryId(java.lang.String[] ids)
public void setOrderId(java.lang.String[] numbers)
public void setOrderItemId(java.lang.String[] numbers)
public void setOutOrderName(java.lang.String[] names)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
protected void unLockOrder(java.lang.String orderId) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void validateParameters() throws ECException
protected void buildResourceList() throws ECException
protected void shipInfoVerify(java.lang.String[] orderIds) throws ECException
protected void updateBusinessEventData(OrderItemAccessBean orderitemAB) throws ECSystemException, java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
protected void raiseBusinessEvents() throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException, ECSystemException
protected void resetPriceOverridePrepareFlagsForOrder() throws java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException, javax.ejb.CreateException, ECException
protected void resetSkipRepricingPrepareFlagsForOrder(OrderAccessBean orderAB) throws java.rmi.RemoteException, javax.naming.NamingException, javax.ejb.FinderException, javax.ejb.CreateException, ECException
protected void calculateOrder() throws ECException
protected void flush() throws ECException