java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
This is the base class for OrderItemAdd and OrderItemUpdate. This command calls the following TaskCommands:
Field Summary | |
protected CatalogEntryAccessBean | cachedCurrentCatEntryAB Deprecated. |
protected static java.lang.String | CONTINUE_FALSE Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.CONTINUE_FALSE |
protected static java.lang.String | CONTINUE_TRUE Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.CONTINUE_TRUE |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
static int | GENERATED_ORDERITEM Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.PREPAREFLAGS_GENERATED |
protected ATPParameters | iATPParms ATP parameters. |
protected boolean | iCommandExecuted Deprecated. |
protected java.lang.String | iContinue Input parameter: continue. |
protected java.util.Hashtable | ihsATPParmsDefaults ATP parameter defaults. |
protected java.util.Hashtable | ihsCatalogEntryAccessBeans A list of cached catalog entry access beans. |
protected java.util.Hashtable | ihshAddress_id Input parameter: addressId. |
protected java.util.Hashtable | ihshAttr_name Input parameter: attrName. |
protected java.util.Hashtable | ihshAttr_value Input parameter: attrValue. |
protected java.util.Hashtable | ihshCatentry_id Input parameter: catEntryId. |
protected java.util.Hashtable | ihshComment Input parameter: comment. |
protected java.util.Hashtable | ihshConfigurationId Input parameter: configurationId. |
protected java.util.Hashtable | ihshContract_id Input parameter: contractId. |
protected java.util.Hashtable | ihshCorrelationGroup Input parameter: correlationGroup. |
protected java.util.Hashtable | ihshDescription Input parameter: description. |
protected java.util.Hashtable | ihshExpandConfigurationId Input parameter: expandConfigurationId. |
protected java.util.Hashtable | ihshField1 Input parameter: field1. |
protected java.util.Hashtable | ihshField2 Input parameter: field2. |
protected java.util.Hashtable | ihshKey Keys contains all enumeration group. |
protected java.util.Hashtable | ihshMember_id Input parameter: memberId. |
protected java.util.Hashtable | ihshOffer_id Input parameter: offerId. |
protected java.util.Hashtable | ihshOrderitem_id Input parameter: orderItemId. |
protected java.util.Hashtable | ihshOrderResourceList Resource list for orders. |
protected java.util.Hashtable | ihshOutOrderItemId Out order item ids. |
protected java.util.Hashtable | ihshPart_number Input parameter: partNumber. |
protected java.util.Hashtable | ihshQuantity Input parameter: quantity. |
protected java.util.Hashtable | ihshShipmode_id Input parameter: shipModeId. |
protected java.util.Hashtable | ihshStoreResourceList Resource list for stores. |
protected java.util.Hashtable | ihshUom Input parameter: UOM. |
protected java.lang.String[] | iList_id Input parameter: listId. |
protected java.lang.Long | iList_order_id Order id for newly created order when listId is specified. |
protected java.lang.String | iNew_order_id Order id for newly created order. |
protected boolean | iNewQuantity Keeps track of quanity changes or if new order item is inserted. |
protected java.lang.Long | inItemSpecId Instance variable. |
protected java.lang.String | iOrder_desc Input parameter: orderDesc. |
protected java.lang.String | iOrderComment Input parameter: orderComment. |
protected TypedProperty | iOrderIdProperty Order id list. |
protected java.util.Hashtable | iOrderItemIndex A map from order item id to the enumeration group i. |
protected java.lang.String[] | iOut_order_name Input parameter: outOrderName. |
protected java.lang.String[] | iOut_orderitem_name Input parameter: outOrderItemName. |
protected java.util.Vector | iResolvedOrderIdList Resolved order id list. |
protected TypedProperty | iResolvedRequestProperties Resolved request properties used by user traffic. |
protected AccessVector | iResourcelist Resource list. |
protected java.lang.Long | iSavedItemSpecId ItemspcId. |
protected java.util.Set | isetDeletedOrderitemIds Deleted order item id set. |
protected java.util.Hashtable | iUniqueOrderIdList Unique order id list. |
protected java.util.Hashtable | iUniqueOrderitemIdList Unique order item id list. |
protected java.util.Hashtable | iUniqueStoreIdList Unique store id list. |
protected java.lang.String[] | iValidInputPOrderValues Instance variable. |
protected java.util.Vector | ivecComponentList Instance variable. |
static int | MANUAL_FULFILLMENT_CENTER Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.PREPAREFLAGS_FULFILLMENT_CENTER_OVERRIDE |
static int | MANUAL_PRICE Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.PREPAREFLAGS_PRICE_OVERRIDE |
static int | NORMAL_ORDERITEM Deprecated. Use "0x00" instead |
protected static int | QUOTATION_ORDERITEM Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.PREPAREFLAGS_QUOTATION |
protected static java.lang.String | STR_ADDRESS_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ADDRESS_ID |
protected static java.lang.String | STR_ATTR_NAME Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ATTR_NAME |
protected static java.lang.String | STR_ATTR_VALUE Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ATTR_VALUE |
protected static java.lang.String | STR_CATENTRY_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_CATENTRY_ID |
protected static java.lang.String | STR_COMMENT Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_COMMENT |
protected static java.lang.String | STR_CONFIGURATION_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_CONFIGURATION_ID |
protected static java.lang.String | STR_CONTINUE Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_CONTINUE |
protected static java.lang.String | STR_CONTRACT_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_CONTRACT_ID |
protected static java.lang.String | STR_CORRELATION_GROUP Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_CORRELATTION_GROUP |
protected static java.lang.String | STR_DESCRIPTION Deprecated. Use "description" instead |
protected static java.lang.String | STR_EXPAND_CONFIGURATION_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_EXPAND_CONFIGURATION_ID |
protected static java.lang.String | STR_FIELD1 Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_FIELD1 |
protected static java.lang.String | STR_FIELD2 Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_FIELD2 |
static java.lang.String | STR_INVALID_INPUT_ERROR_VIEW The invalid input error view. |
protected static java.lang.String | STR_LIST_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_LIST_ID |
protected static java.lang.String | STR_MEMBER_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_MEMBER_ID |
protected static java.lang.String | STR_OFFER_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_OFFER_ID |
protected static java.lang.String | STR_ORDER_COMMENT Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ORDER_COMMENT |
protected static java.lang.String | STR_ORDER_DESC Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ORDER_DESC |
protected static java.lang.String | STR_ORDER_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ORDER_ID |
protected static java.lang.String | STR_ORDERITEM_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_ORDERITEM_ID |
protected static java.lang.String | STR_OUT_ORDER_NAME Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_OUT_ORDER_NAME |
protected static java.lang.String | STR_OUT_ORDERITEM_NAME Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_OUT_ORDERITEM_NAME |
protected static java.lang.String | STR_PART_NUMBER Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_PART_NUMBER |
protected static java.lang.String | STR_QUANTITY Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_QUANTITY |
protected static java.lang.String | STR_SHIPMODE_ID Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_SHIPMODE_ID |
protected static java.lang.String | STR_STORE_ID Deprecated. Replaced by com.ibm.commerce.server.ECConstants.EC_STORE_ID |
protected static java.lang.String | STR_UOM Deprecated. Replaced by com.ibm.commerce.order.utils.OrderConstants.EC_UOM |
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl |
requestProperties, responseProperties, retriable, viewReqProperties |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemAddCmd |
badPartNumberErrorView, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.orderitems.commands.OrderItemUpdateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
OrderItemBaseCmdImpl() |
Method Summary | |
protected void | checkBuyable(java.lang.Long catentry_id) Checks whether the catalog entry is buyable and available in the store. |
protected void | checkProductEntitlement(java.lang.Long catentry_id, java.lang.Long member_id) Checks whether the user is entitled to buy this product. |
protected void | checkValidStatus(OrderAccessBean orderAB) Checks whether the status of the order is valid when you modify the order. |
protected java.lang.String | createOrder() Creates a new order. |
protected OrderItemAccessBean | createOrderItem(java.lang.Integer i, java.lang.Long catentry_id, java.lang.String orderId) Create an order item. |
protected java.lang.Long | getAddressId(java.lang.Integer i) Gets the input parameter addressId with enumeration group i. |
ATPParameters | getATPParms() Gets the input ATP parameters. |
protected java.util.Hashtable | getAttributeNVP(java.lang.Integer i) Gets the input parameter attrName_i and attrValue_i and puts them into a hashtable. |
protected CatalogEntryAccessBean | getCatalogEntryAccessBean(java.lang.String astrCatalogEntry) Get the catalog entry access bean from a cached hashtable. |
protected java.lang.Long | getCatEntryId(java.lang.Integer i) Gets the input parameter catEntryId with enumeration group i. |
protected java.lang.String | getComment(java.lang.Integer i) Gets the input parameter comment with enumeration group i. |
protected java.lang.String | getConfigurationId(java.lang.Integer i) Gets the input parameter configurationId with enumeration group i. |
protected java.lang.String | getContinue() Gets the input parameter continue. |
protected java.lang.Long[] | getContractId(java.lang.Integer i) Gets the input parameter contarctId with enumeration group i. |
protected java.lang.Long | getCorrelationGroup(java.lang.Integer i) Gets the input parameter correlationGroup with enumeration group i. |
java.util.Set | getDeletedOrderItemIds() Returns a Set of (String) identifiers of deleted OrderItems. |
protected java.lang.String | getDescription(java.lang.Integer i) Gets the input parameter Description with enumeration group i. |
protected java.lang.String | getExpandConfigurationId(java.lang.Integer i) Gets the input parameter expandConfigurationId with enumeration group i. |
protected java.lang.Integer | getField1(java.lang.Integer i) Gets the input parameter field1 with enumeration group i. |
protected java.lang.String | getField2(java.lang.Integer i) Gets the input parameter field2 with enumeration group i. |
protected java.lang.Long | getItemSpecId() Gets the itemSpecId. |
protected java.lang.Long | getMemberId(java.lang.Integer i) Gets the input parameter memberId with enumeration group i. |
java.lang.Long | getNewOrderId() Gets the id of the newly created order. |
java.util.Hashtable | getNewOrderItemIds() Returns a Hashtable whose (String) values are identifiers of newly created OrderItems. |
protected java.lang.Long[] | getOfferId(java.lang.Integer i) Gets the input parameter offerId with enumeration group i. |
protected java.lang.String | getOrderComment() Gets the input parameter OrderComment. |
protected java.lang.String | getOrderDesc() Gets the input parameter OrderDesc. |
protected java.lang.String[] | getOrderId() Gets the resolved order ids. |
java.lang.String[] | getOrderIds() Return a list of order ids which are touched or created by the command. |
protected java.lang.Long | getOrderItemId(java.lang.Integer i) Gets the input parameter orderItemId with enumeration group i. |
java.lang.String[] | getOrderItemIds() Return a list of order item ids which are created or updated by the command. |
protected java.lang.String | getPartNumber(java.lang.Integer i) Gets the input parameter partNumber with enumeration group i. |
protected java.lang.Double | getQuantity(java.lang.Integer i) Gets the input parameter quantity with enumeration group i. |
protected java.util.Vector | getResolvedOrderId() Gets the list of resolved order id. |
TypedProperty | getResolvedRequestProperties() Gets the resolved request properties. |
AccessVector | getResources() Gets the resources. |
protected QuantityAmount | getRoundedQuantityAmount(java.lang.Long catentry_id, java.lang.Double quantity) Returns a rounded quantity amount based on the catalog entry. |
protected java.lang.Integer | getShipModeId(java.lang.Integer i) Gets the input parameter shipModeId with enumeration group i. |
UserAccessBean | getTheUser() Returns super.getUser(). |
java.lang.Long | getTheUserId() Returns super.getUserId(). |
protected java.lang.Long[] | getTradingId(java.lang.Integer i) Gets the input parameter contractId with enumeration group i. |
protected java.util.Hashtable | getUniqueOrderId() Returns a Hashtable whose (String) keys are identifiers of created or updated Orders. |
protected java.util.Hashtable | getUniqueOrderItemId() Returns a Hashtable whose (String) keys are identifiers of created or updated OrderItems. |
protected java.lang.String | getUOM(java.lang.Integer i) Gets the input parameter UOM with enumeration group i. |
protected void | insertAddressId(OrderItemAccessBean orderitemAB, java.lang.Integer i) Deprecated. Replaced by setAddressId(Hashtable ahshAddress_id) |
protected void | insertItemSpecId(OrderItemAccessBean orderitemAB) Inserts an item spec id to the order item. |
protected void | insertOrderItem(java.lang.Integer i, java.lang.Long catentry_id) Inserts a new order item to each resolved orders. |
protected void | insertOrderItem(InterestItemAccessBean iitemAB) Creates a new order item based on the interest item and insert into the order. |
protected void | insertOrderItems(java.lang.Integer i, java.lang.String expandConfigurationId) Insert order items based on the expandConfigurationId parameter. |
protected void | insertPartNumber(OrderItemAccessBean orderitemAB, java.lang.Integer i) Inserts the part number to the order item. |
protected void | invalidateAllocation(OrderItemAccessBean aabOI) Invalidate the allocation for the order item. |
protected void | migrateInterestItemsToOrderItems() Migrate all interest items to order items when listId is specified. |
protected void | orderItemAdd(java.lang.Integer i) Add order item for enumeration group i. |
protected void | orderItemUpdate(java.lang.Integer i) Update order item for enumeration group i. |
void | performExecute() For each enumeration group i: It checks whether the parameters orderItemId_i, expandConfigurationId_i, partNumber_i or catEntryId_i are specified. The order of precedence is: orderItemId_i, expandConfigurationId_i, partNumber_i and catEntryId_i. |
void | reset() reset all instance variables. |
protected void | resolveOrderId() Resolves order ids by calling MiscCmd.getListOfPendingOrders(). |
protected java.lang.Long | resolveSku(java.lang.Integer i, java.lang.Long catentry_id) It calls ResolveSkuCmd to resolve the sku and calls checkBuyable(). |
void | setAddressId(java.util.Hashtable ahshAddress_id) Set the address id parameters (optional). |
void | setATPParms(ATPParameters newATPParms) Set the ATP parameters. |
void | setAttrName(java.util.Hashtable ahshAttr_name) Set the attribute name parameters (optional). |
void | setAttrValue(java.util.Hashtable ahshAttr_value) Set the attribute value parameters (optional). |
void | setCatEntryId(java.util.Hashtable ahshCatentry_id) Set the attribute name parameters. |
void | setComment(java.util.Hashtable ahshComment) Set the comment parameters (optional). |
void | setConfigurationId(java.util.Hashtable ahshConfigurationId) Set the configurationId parameter. |
void | setContinue(java.lang.String aContinue) Set the continue parameter (optional). |
void | setContractId(java.util.Hashtable ahshContract_id) Set the contract id parameters (optional). |
void | setCorrelationGroup(java.util.Hashtable ahshCorrelationGroup) Set the correlation group parameters. |
void | setDescription(java.util.Hashtable ahshDescription) Set the description parameters (optional). |
void | setExpandConfigurationId(java.util.Hashtable ahshExpandConfigurationId) Set the expandConfigurationId parameter. |
void | setField1(java.util.Hashtable ahshField1) Set the field1 parameters (optional). |
void | setField2(java.util.Hashtable ahshField2) Set the field2 parameters (optional). |
protected void | setItemSpecId(java.lang.Long anItemSpecId) Sets the ItemSpecId |
void | setListId(java.lang.String[] aList_id) Set the interest item list id parameters (optional). |
void | setMemberId(java.util.Hashtable ahshMember_id) Set the member id parameters (optional). |
void | setOfferId(java.util.Hashtable ahshOffer_id) Set the offer id parameters (optional). |
void | setOrderComment(java.lang.String aOrderComment) Set the Order comment parameter (optional). |
void | setOrderDesc(java.lang.String aOrder_desc) Set the Order description parameter (optional). |
void | setOrderId(java.lang.String[] aOrder_id) Set the order id parameters (optional). |
void | setOrderItemId(java.util.Hashtable ahshOrderitem_id) Set the order item ids for which to update. |
void | setOutOrderItemName(java.lang.String[] aOut_orderitem_name) Set the out order item name parameters (optional). |
void | setOutOrderName(java.lang.String[] aOut_order_name) Set the out order name parameters (optional). |
void | setPartNumber(java.util.Hashtable ahshPart_number) Set the part number parameters (optional). |
void | setQuantity(java.util.Hashtable ahshQuantity) Set the quantity parameters. |
void | setQuantity(java.lang.Integer i, java.lang.Double aQuantity) Set the quantity parameters. |
void | setRequestProperties(TypedProperty aRequestProperties) Sets the request properties. |
protected void | setResolvedOrderId(java.util.Vector resolvedOrderIdList) Set the resolved id parameters. |
void | setShipmodeId(java.util.Hashtable ahshShipmode_id) Set the ship mode id parameters (optional). |
void | setTradingId(java.util.Hashtable ahshTrading_id) Set the trading id parameters (optional). |
void | setUom(java.util.Hashtable ahshUom) Set the unit of measure parameters (optional). |
protected void | unLockOrder(java.lang.String orderId) Unlocks the order. |
protected void | updateAddressId() Update the shipping address for the all touched order items. |
protected void | updateAddressId(OrderItemAccessBean orderitemAB, java.lang.Integer i) Deprecated. Replaced by updateAddressId(Vector orderItems) |
protected void | updateAddressId(java.util.Vector orderItems) Updates the address for the order item. |
protected void | updateAllShippingAndAddress() It calls updateShippingAndAddress() to update the shipping address and shipping mode for each order item. |
protected void | updateComponentList(OrderItemAccessBean orderitemAB, java.lang.Integer i) Updates the component list for the order item. |
protected void | updateCorrelationGroup(OrderItemAccessBean orderitemAB, java.lang.Integer i) Updates the correlation group for the order item. |
protected void | updateCurrency(OrderAccessBean orderAB) Updates the currency for the order. |
protected void | updateFulfillmentCenter() Updates the fulfillment centers and checks for available inventory for all order items modified or created. |
protected void | updateItemSpecId(OrderItemAccessBean orderitemAB) Updates the item spec id for the order item. |
protected void | updateOrder() Updates order related information. |
protected void | updateOrderItem(java.lang.Integer i, java.lang.Long orderitem_id) Deprecated. Replaced by updateOrderItem(OrderItemAccessBean orderitemAB, Integer i) |
protected void | updateOrderItem(OrderItemAccessBean orderitemAB, java.lang.Integer i) Updates the order item. |
protected void | updateOutOrderItemId() Adds the ids of the newly created order items to the response properties with key being the input parameter value of outOrderItemName concatenated with "_i" and the value being the id of the order item. |
protected void | updateOutOrderItemName() Adds the ids of the created and updated order items to the response properties with key being the input parameter value of outOrderItemName and the value being the String array of order item ids. |
protected void | updateOutOrderName() Adds the ids of the created and updated orders to the response properties with key being the input parameter value of outOrderName and the value being the String array of order ids. |
protected void | updatePrice() Calculates the best price for the all touched order items. |
protected void | updatePrice(OrderItemAccessBean orderitemAB, java.lang.Integer i) Deprecated. Replaced by updatePrice(Vector orderItems, String currency) |
protected void | updatePrice(java.util.Vector orderItems, java.lang.String currency) Calculates the best price for the input orderitems. |
protected boolean | updateQuantity(OrderItemAccessBean orderitemAB, java.lang.Integer i) Updates the quantity for the order item. |
protected void | updateResourceList() Updates the resources list. |
protected void | updateShipModeId() Update the shipping modes for the all touched order items. |
protected void | updateShipModeId(OrderItemAccessBean orderitemAB, java.lang.Integer i) Deprecated. Replaced by updateShipModeId(Vector orderItems) |
protected void | updateShipModeId(java.util.Vector orderItems) Updates the shipping mode id for all order items. |
protected void | updateShippingAndAddress(OrderItemAccessBean orderitemAB, java.lang.Integer i) It calls updateAddressId() and updateShipModeId() to update the shipping address and shipping mode for the order item. |
void | validateParameters() Verify the input parameters. |
protected void | validateTradingPaymentMethods() Validate the trading agreements used by the orderitems in an order by checking if they define compatible payment methods and are associated with the same account as the other orderitems in the order. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
protected static final java.lang.String STR_STORE_ID
protected static final java.lang.String STR_ORDERITEM_ID
protected static final java.lang.String STR_CATENTRY_ID
protected static final java.lang.String STR_PART_NUMBER
protected static final java.lang.String STR_MEMBER_ID
protected static final java.lang.String STR_ATTR_NAME
protected static final java.lang.String STR_ATTR_VALUE
protected static final java.lang.String STR_QUANTITY
protected static final java.lang.String STR_ADDRESS_ID
protected static final java.lang.String STR_SHIPMODE_ID
protected static final java.lang.String STR_COMMENT
protected static final java.lang.String STR_FIELD1
protected static final java.lang.String STR_FIELD2
protected static final java.lang.String STR_CONTRACT_ID
protected static final java.lang.String STR_OFFER_ID
protected static final java.lang.String STR_UOM
protected static final java.lang.String STR_ORDER_ID
protected static final java.lang.String STR_OUT_ORDER_NAME
protected static final java.lang.String STR_OUT_ORDERITEM_NAME
protected static final java.lang.String STR_ORDER_DESC
protected static final java.lang.String STR_LIST_ID
protected static final java.lang.String STR_DESCRIPTION
protected static final java.lang.String STR_CONFIGURATION_ID
protected static final java.lang.String STR_CORRELATION_GROUP
public static final int NORMAL_ORDERITEM
public static final int GENERATED_ORDERITEM
public static final int MANUAL_PRICE
public static final int MANUAL_FULFILLMENT_CENTER
protected static final java.lang.String CONTINUE_TRUE
protected static final java.lang.String CONTINUE_FALSE
protected static final int QUOTATION_ORDERITEM
protected static final java.lang.String STR_CONTINUE
protected static final java.lang.String STR_EXPAND_CONFIGURATION_ID
protected static final java.lang.String STR_ORDER_COMMENT
public static final java.lang.String STR_INVALID_INPUT_ERROR_VIEW
protected java.lang.String[] iValidInputPOrderValues
protected java.lang.Long inItemSpecId
protected java.util.Vector ivecComponentList
protected java.util.Hashtable ihshOrderitem_id
protected java.util.Hashtable ihshCatentry_id
protected java.util.Hashtable ihshPart_number
protected java.util.Hashtable ihshMember_id
protected java.util.Hashtable ihshAttr_name
protected java.util.Hashtable ihshAttr_value
protected java.util.Hashtable ihshQuantity
protected java.util.Hashtable ihshAddress_id
protected java.util.Hashtable ihshShipmode_id
protected java.util.Hashtable ihshComment
protected java.util.Hashtable ihshDescription
protected java.util.Hashtable ihshField1
protected java.util.Hashtable ihshField2
protected java.util.Hashtable ihshContract_id
protected java.util.Hashtable ihshOffer_id
protected java.util.Hashtable ihshUom
protected java.util.Hashtable ihshCorrelationGroup
protected java.lang.String[] iOut_order_name
protected java.lang.String[] iOut_orderitem_name
protected java.lang.String iOrder_desc
protected java.lang.String[] iList_id
protected java.lang.Long iList_order_id
protected java.lang.String iNew_order_id
protected java.util.Hashtable ihshKey
protected boolean iCommandExecuted
protected boolean iNewQuantity
protected ATPParameters iATPParms
protected java.util.Hashtable ihsATPParmsDefaults
protected java.util.Hashtable ihshConfigurationId
protected java.util.Hashtable ihshOrderResourceList
protected java.util.Hashtable ihshStoreResourceList
protected AccessVector iResourcelist
protected java.util.Hashtable ihshOutOrderItemId
protected CatalogEntryAccessBean cachedCurrentCatEntryAB
protected java.util.Hashtable ihsCatalogEntryAccessBeans
protected java.util.Hashtable iOrderItemIndex
protected java.lang.String iContinue
protected java.util.Hashtable ihshExpandConfigurationId
protected java.lang.String iOrderComment
protected java.lang.Long iSavedItemSpecId
protected TypedProperty iResolvedRequestProperties
protected TypedProperty iOrderIdProperty
protected java.util.Vector iResolvedOrderIdList
protected java.util.Hashtable iUniqueOrderIdList
protected java.util.Hashtable iUniqueOrderitemIdList
protected java.util.Set isetDeletedOrderitemIds
protected java.util.Hashtable iUniqueStoreIdList
Constructor Detail |
public OrderItemBaseCmdImpl()
Method Detail |
protected void checkBuyable(java.lang.Long catentry_id) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void checkProductEntitlement(java.lang.Long catentry_id, java.lang.Long member_id) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void checkValidStatus(OrderAccessBean orderAB) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected java.lang.String createOrder() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected OrderItemAccessBean createOrderItem(java.lang.Integer i, java.lang.Long catentry_id, java.lang.String orderId) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected java.lang.Long getAddressId(java.lang.Integer i) throws InvalidParameterValueException
public ATPParameters getATPParms()
protected java.util.Hashtable getAttributeNVP(java.lang.Integer i) throws InvalidParameterValueException
protected CatalogEntryAccessBean getCatalogEntryAccessBean(java.lang.String astrCatalogEntry) throws java.rmi.RemoteException, javax.naming.NamingException, FinderException, CreateException
protected java.lang.Long getCatEntryId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getComment(java.lang.Integer i)
protected java.lang.String getConfigurationId(java.lang.Integer i)
protected java.lang.String getContinue()
protected java.lang.Long[] getContractId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.Long getCorrelationGroup(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getDescription(java.lang.Integer i)
protected java.lang.String getExpandConfigurationId(java.lang.Integer i)
protected java.lang.Integer getField1(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getField2(java.lang.Integer i)
protected java.lang.Long getItemSpecId()
protected java.lang.Long getMemberId(java.lang.Integer i) throws InvalidParameterValueException
public java.lang.Long getNewOrderId()
public java.util.Hashtable getNewOrderItemIds()
protected java.lang.Long[] getOfferId(java.lang.Integer i) throws InvalidParameterValueException
protected java.lang.String getOrderComment()
protected java.lang.String getOrderDesc()
protected java.lang.String[] getOrderId() throws ECException
public java.lang.String[] getOrderIds()
protected java.lang.Long getOrderItemId(java.lang.Integer i) throws InvalidParameterValueException
public java.lang.String[] getOrderItemIds()
protected java.lang.String getPartNumber(java.lang.Integer i)
protected java.lang.Double getQuantity(java.lang.Integer i) throws InvalidParameterValueException
protected java.util.Vector getResolvedOrderId()
public TypedProperty getResolvedRequestProperties()
public AccessVector getResources()
protected QuantityAmount getRoundedQuantityAmount(java.lang.Long catentry_id, java.lang.Double quantity) throws ECException
protected java.lang.Integer getShipModeId(java.lang.Integer i) throws InvalidParameterValueException
public UserAccessBean getTheUser() throws ECSystemException
public java.lang.Long getTheUserId()
protected java.lang.Long[] getTradingId(java.lang.Integer i) throws InvalidParameterValueException
protected java.util.Hashtable getUniqueOrderId()
protected java.util.Hashtable getUniqueOrderItemId()
public java.util.Set getDeletedOrderItemIds()
protected java.lang.String getUOM(java.lang.Integer i)
protected void insertAddressId(OrderItemAccessBean orderitemAB, java.lang.Integer i)
protected void insertItemSpecId(OrderItemAccessBean orderitemAB) throws ECException
protected void insertOrderItem(InterestItemAccessBean iitemAB) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void insertOrderItem(java.lang.Integer i, java.lang.Long catentry_id) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void insertOrderItems(java.lang.Integer i, java.lang.String expandConfigurationId) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void insertPartNumber(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void invalidateAllocation(OrderItemAccessBean aabOI) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void migrateInterestItemsToOrderItems() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void orderItemAdd(java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void orderItemUpdate(java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void performExecute() throws ECException
public void reset()
protected void resolveOrderId() throws ECException
protected java.lang.Long resolveSku(java.lang.Integer i, java.lang.Long catentry_id) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void setAddressId(java.util.Hashtable ahshAddress_id)
public void setATPParms(ATPParameters newATPParms)
public void setAttrName(java.util.Hashtable ahshAttr_name)
public void setAttrValue(java.util.Hashtable ahshAttr_value)
public void setCatEntryId(java.util.Hashtable ahshCatentry_id)
public void setComment(java.util.Hashtable ahshComment)
public void setConfigurationId(java.util.Hashtable ahshConfigurationId)
public void setContinue(java.lang.String aContinue)
public void setContractId(java.util.Hashtable ahshContract_id)
public void setCorrelationGroup(java.util.Hashtable ahshCorrelationGroup)
public void setDescription(java.util.Hashtable ahshDescription)
public void setExpandConfigurationId(java.util.Hashtable ahshExpandConfigurationId)
public void setField1(java.util.Hashtable ahshField1)
public void setField2(java.util.Hashtable ahshField2)
protected void setItemSpecId(java.lang.Long anItemSpecId) throws ECException
public void setListId(java.lang.String[] aList_id)
public void setMemberId(java.util.Hashtable ahshMember_id)
public void setOfferId(java.util.Hashtable ahshOffer_id)
public void setOrderComment(java.lang.String aOrderComment)
public void setOrderDesc(java.lang.String aOrder_desc)
public void setOrderId(java.lang.String[] aOrder_id)
public void setOrderItemId(java.util.Hashtable ahshOrderitem_id)
public void setOutOrderItemName(java.lang.String[] aOut_orderitem_name)
public void setOutOrderName(java.lang.String[] aOut_order_name)
public void setPartNumber(java.util.Hashtable ahshPart_number)
public void setQuantity(java.lang.Integer i, java.lang.Double aQuantity)
public void setQuantity(java.util.Hashtable ahshQuantity)
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
protected void setResolvedOrderId(java.util.Vector resolvedOrderIdList)
public void setShipmodeId(java.util.Hashtable ahshShipmode_id)
public void setTradingId(java.util.Hashtable ahshTrading_id)
public void setUom(java.util.Hashtable ahshUom)
protected void unLockOrder(java.lang.String orderId) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateAddressId() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateAddressId(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateAddressId(java.util.Vector orderItems) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateAllShippingAndAddress() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateComponentList(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateCorrelationGroup(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateCurrency(OrderAccessBean orderAB) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateFulfillmentCenter() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateItemSpecId(OrderItemAccessBean orderitemAB) throws ECException
protected void updateOrder() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException
protected void updateOrderItem(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateOrderItem(java.lang.Integer i, java.lang.Long orderitem_id) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateOutOrderItemId()
protected void updateOutOrderItemName()
protected void updateOutOrderName()
protected void updatePrice() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updatePrice(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updatePrice(java.util.Vector orderItems, java.lang.String currency) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
If price has been obtainted previously, the price will be refreshed according to the Price Refresh Flag (PRICEREFFLAGS) in STORE as follows: 0: Default, same as 1 except that it will not save the trading id and the offer id. 1: This means useCurrentOnly. This uses the prices directly referenced by the OrderItems. Fail if they can no longer be used. 2: This means useCurrentOrSearchAgain. This is the same as useCurrentOnly, but instead of failing when they can no longer be used, it searches the ones that were originally searched when the OrderItems were created or updated with new trading ids/offer ids specified. 4: This means alwaysSearchAgain. This option always searches the prices that were originally searched when the OrderItems were created or updated with new trading ids/offer ids specified.
protected boolean updateQuantity(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateResourceList() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException
protected void updateShipModeId() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateShipModeId(java.util.Vector orderItems) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateShipModeId(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
protected void updateShippingAndAddress(OrderItemAccessBean orderitemAB, java.lang.Integer i) throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
public void validateParameters() throws ECException
protected void validateTradingPaymentMethods() throws ECException, FinderException, CreateException, javax.naming.NamingException, java.rmi.RemoteException, java.sql.SQLException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.