public class OrderItemDisplayCmdImpl extends ControllerCommandImpl implements OrderItemDisplayCmd
Name | Description |
---|---|
addressId | The address Id. Optional |
orderId | The order Id abbreviations. Optional |
outOrderName | Names of the name-value pairs for Order Id to be added to the response object. Optional |
Name | Description |
---|---|
addressId | If addressId is passed in, the usable address related to it will be put in. |
The value for outOrderName[i] | The array of order Ids. |
errorOrderItemId | The array of orderItem Id there are not enough inventory when checking inventory. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected java.lang.Long | iAddressId
Address Id
|
protected ATPParameters | iATPParms
ATP Parameters: atp parameters define the lists of order items passed to Inventory task command
|
protected java.util.Hashtable | ihsATPParmsDefaults
Default ATP parameters
|
protected java.lang.String[] | iOrderId
Order Ids
|
protected java.util.Vector | iOrderIdList
Resolved order Ids
|
protected TypedProperty | iOrderIdProperty
Key is "orderId", value is the array of order Id abbreviations.
|
protected java.lang.String[] | iOutOrderNames
Names of the name-value pairs for Order Id to be added to the response object.
|
protected java.util.Hashtable | iUniqueOrderIdList
Key is resolved order Id, value is "".
|
protected java.util.Hashtable | iUnlockedOrderIdList
Key is unlocked order Id, value is "".
|
protected java.util.Hashtable | iUnlockedOrderItemIdList
Key is orderitem Id for the unlocked order, value is "".
|
protected java.lang.String[] | iValidInputPOrderValues
Valid input for order abbreviations, *, ., .t, *t, 1.
|
Constructor and Description |
---|
OrderItemDisplayCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void | deleteItemOutOfStock(java.util.Vector errorOrderItemId)
Delete the out of stock orderItem from the shopping cart.
|
protected java.lang.Long | getAddressId()
This method gets the input parameter addressId.
|
ATPParameters | getATPParms()
This method gets the input ATP parameters.
|
protected java.lang.String[] | getOrderIds()
This method returns a list of ids of the orders which are displayed.
|
AccessVector | getResources()
This method gets the resources.
|
protected java.lang.Long | getUpdatedAddressId(java.lang.Long address_id)
This method gets the refreshed address for the user by the given address.
|
protected void | orderUpdateExt(OrderItemAccessBean orderItemAB)
This method allows for easier extension of this command in updatePriceAndCheckInventory.
|
void | performExecute()
The main entry point of the command.
|
protected boolean | quoteIsStillGood(OrderItemAccessBean orderitemAB)
This method returns a boolean value to indicate whether the order item last update time has been expired.
|
void | reset()
This method resets all instance variables.
|
void | setAddressId(java.lang.Long addressId)
This method sets the id of the address book entry for the items to display (optional).
|
void | setATPParms(ATPParameters newATPParms)
This method sets the ATP parameters.
|
void | setOrderId(java.lang.String[] numbers)
This method sets zero or more order ids (optional).
|
void | setOutOrderName(java.lang.String[] names)
This method sets the names of the name-value pairs to be added to the response object passed to the command's view task.
|
void | setRequestProperties(TypedProperty aRequestProperties)
This method sets the request properties.
|
protected void | updateAddress(java.util.Vector orderItems, java.lang.Long[] addressIds)
This method calls UpdateShippingAddressCmd to update address for all the order items of the given order.
|
protected void | updateInventory(java.lang.String orderId)
This method updates inventory for all the order items of the given order.
|
protected void | updateOrderItemTime(OrderItemAccessBean orderitemAB)
This method updates the order item last update time.
|
protected void | updatePrice(java.util.Vector orderItems, java.lang.String currency)
This method updates price for all the order items of the given order.
|
protected void | updatePriceAndCheckInventory(java.lang.Long orderId)
This method updates shipping address, price and checks inventory for all the order items of the given order.
|
void | validateParameters()
This method verifies the input parameters.
|
public static final java.lang.String COPYRIGHT
protected java.lang.Long iAddressId
protected java.lang.String[] iOrderId
protected java.lang.String[] iOutOrderNames
protected java.lang.String[] iValidInputPOrderValues
protected java.util.Hashtable iUniqueOrderIdList
protected TypedProperty iOrderIdProperty
protected java.util.Hashtable iUnlockedOrderIdList
protected java.util.Hashtable iUnlockedOrderItemIdList
protected ATPParameters iATPParms
protected java.util.Hashtable ihsATPParmsDefaults
protected java.util.Vector iOrderIdList
protected java.lang.Long getAddressId()
public ATPParameters getATPParms()
protected java.lang.String[] getOrderIds()
public AccessVector getResources() throws ECException
protected java.lang.Long getUpdatedAddressId(java.lang.Long address_id) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public void performExecute() throws ECException
protected void updatePriceAndCheckInventory(java.lang.Long orderId) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected boolean quoteIsStillGood(OrderItemAccessBean orderitemAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void reset()
public void setAddressId(java.lang.Long addressId)
public void setATPParms(ATPParameters newATPParms)
public void setOrderId(java.lang.String[] numbers)
public void setOutOrderName(java.lang.String[] names)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
protected void updatePrice(java.util.Vector orderItems, java.lang.String currency) throws ECException
protected void deleteItemOutOfStock(java.util.Vector errorOrderItemId) throws ECException, java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
public void validateParameters() throws ECException
protected void orderUpdateExt(OrderItemAccessBean orderItemAB) throws ECException
protected void updateOrderItemTime(OrderItemAccessBean orderitemAB) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
protected void updateAddress(java.util.Vector orderItems, java.lang.Long[] addressIds) throws ECException
protected void updateInventory(java.lang.String orderId) throws ECException