public class OrderItemSelectCmdImpl extends ControllerCommandImpl implements OrderItemSelectCmd
For each OrderItem specified by the orderItemId_i parameter:
For each OrderItem specified by the orderItemId_i parameter where the value of the quantity parameter is greater than zero:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright string.
|
Constructor and Description |
---|
OrderItemSelectCmdImpl()
Constructor for OrderItemSelectCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
protected void | copyOrderPaymentInfos(java.lang.Long anParentId, java.lang.Long anSelectionOrderId)
Copys the order payment info from the specified parent Order to the specified selection Order.
|
protected OrderAccessBean | createSelectionOrder(OrderAccessBean aabParentOrder, java.lang.Integer anStoreId)
Creates a selection Order based on the specified parent Order.
|
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean | createSelectionRel(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId, java.lang.Long anSelectionOrderId)
Creates a selection OrderQuotationRel.
|
protected void | deleteSelectionItems(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem)
Deletes the OrderItems in the specified selection Order that match the specified source OrderItem.
|
protected CatalogEntryAccessBean | getCatalogEntry(java.lang.Long anCatalogEntryId)
Returns the CatalogEntry with the specified CatalogEntry ID.
|
protected java.lang.Long | getDefaultContractId(java.lang.Integer anStoreId)
Returns the default Contract ID of the specified Store ID.
|
protected OrderItemSelectCmd.EnumerationGroup[] | getEnumerationGroups()
Returns the enumeration groups.
|
protected OrderAccessBean | getOrder(java.lang.Long anOrderId)
Returns the Order with the specified Order ID.
|
protected java.lang.String[] | getOutSelectionOrderQuotationRelIdNames()
Returns the names of the output selectionOrderQuotationRelId name-value pairs.
|
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean | getRelByChildId(java.lang.Long anChildId)
Returns the OrderQuotationRel with the specified child Order ID.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
protected java.util.List | getSelectionItems(java.lang.Long anSelectionOrderId, java.lang.Long anCatalogEntryId, java.lang.Long anItemSpecId, java.lang.Long anCorrelationGroup, java.lang.String astrSupplierPartNumber)
Returns the selection OrderItems with the specified Order ID, CatalogEntry ID, ItemSpec ID and correlation group.
|
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean | getSelectionRel(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId)
Returns the selection OrderQuotationRel with the specified parent Order ID, Store ID and Contract ID.
|
protected java.lang.Object | getSelectionRelKey(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId) |
protected boolean | isCatalogEntryValid(java.lang.Long anCatalogEntryId, java.lang.Integer anStoreId, java.lang.Long anContractId)
Returns whether the specified CatalogEntry is valid under the specified Store and Contract.
|
void | performExecute()
Executes the business logic of this command implementation.
|
void | reset()
Resets the instance variables.
|
protected void | resolveNumericAbbreviations()
Resolves the numeric Order/OrderItem abbreviations without resorting to the ResolveOrderItems command.
|
protected void | resolveOrderItemAbbreviations()
Resolves the Order/OrderItem abbreviations using the ResolveOrderItems command.
|
void | setEnumerationGroups(OrderItemSelectCmd.EnumerationGroup[] aEnumerationGroups)
Sets the enumeration groups.
|
void | setOutSelectionOrderQuotationRelIdNames(java.lang.String[] astrOutSelectionOrderQuotationRelIdNames)
Sets the names of name value pairs that should be added to the redirection URL.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties of this command implementation.
|
protected void | setResponseProperties()
Sets the response properties.
|
protected void | updateComponentList(OrderItemAccessBean orderitemAB)
Updates the component list for the order item.
|
protected void | updateSelectionItem(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem, java.lang.Long anContractId, java.lang.Double adNormalizedQuantity)
Creates or updates the appropriate OrderItem in the specified selection Order based on the specified source OrderItem, Contract ID and normalized quantity.
|
void | validateParameters()
Extracts and validates the input parameters of this command implementation.
|
public static final java.lang.String COPYRIGHT
public OrderItemSelectCmdImpl()
public void reset()
protected OrderItemSelectCmd.EnumerationGroup[] getEnumerationGroups()
protected java.lang.String[] getOutSelectionOrderQuotationRelIdNames()
public void setEnumerationGroups(OrderItemSelectCmd.EnumerationGroup[] aEnumerationGroups)
public void setOutSelectionOrderQuotationRelIdNames(java.lang.String[] astrOutSelectionOrderQuotationRelIdNames)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
protected void resolveNumericAbbreviations() throws ECException
protected void resolveOrderItemAbbreviations() throws ECException
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean getRelByChildId(java.lang.Long anChildId) throws ECException
protected java.lang.Object getSelectionRelKey(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId)
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean getSelectionRel(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId) throws ECException
protected OrderAccessBean getOrder(java.lang.Long anOrderId) throws ECException
public void validateParameters() throws ECException
public AccessVector getResources() throws ECException
protected java.lang.Long getDefaultContractId(java.lang.Integer anStoreId) throws ECException
protected void copyOrderPaymentInfos(java.lang.Long anParentId, java.lang.Long anSelectionOrderId) throws ECException
protected OrderAccessBean createSelectionOrder(OrderAccessBean aabParentOrder, java.lang.Integer anStoreId) throws ECException
protected com.ibm.commerce.order.objects.OrderQuotationRelAccessBean createSelectionRel(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId, java.lang.Long anSelectionOrderId) throws ECException
protected java.util.List getSelectionItems(java.lang.Long anSelectionOrderId, java.lang.Long anCatalogEntryId, java.lang.Long anItemSpecId, java.lang.Long anCorrelationGroup, java.lang.String astrSupplierPartNumber) throws ECException
protected CatalogEntryAccessBean getCatalogEntry(java.lang.Long anCatalogEntryId) throws ECException
protected boolean isCatalogEntryValid(java.lang.Long anCatalogEntryId, java.lang.Integer anStoreId, java.lang.Long anContractId) throws ECException
protected void updateSelectionItem(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem, java.lang.Long anContractId, java.lang.Double adNormalizedQuantity) throws ECException
protected void updateComponentList(OrderItemAccessBean orderitemAB) throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void deleteSelectionItems(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem) throws ECException
protected void setResponseProperties() throws ECException
public void performExecute() throws ECException