com.ibm.commerce.requisitionlist.commands
Class RequisitionListItemUpdateCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.orderitems.commands.OrderItemBaseCmdImpl
                          |
                          +--com.ibm.commerce.orderitems.commands.OrderItemUpdateCmdImpl
                                |
                                +--com.ibm.commerce.requisitionlist.commands.RequisitionListItemUpdateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderItemAddCmd, OrderItemUpdateCmd, RequisitionListItemUpdateCmd

public class RequisitionListItemUpdateCmdImpl
extends OrderItemUpdateCmdImpl
implements RequisitionListItemUpdateCmd

Add, update and delete items in a requisition list. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
protected  java.lang.Long iRequisitionListId
          The id of the requisition list.
protected  java.lang.String iRequisitionListName
          The name of the requisition list.
protected  java.lang.String iRequisitionListStatus
          The status of the requisition list.
 
Fields inherited from class com.ibm.commerce.orderitems.commands. OrderItemBaseCmdImpl
cachedCurrentCatEntryAB, CONTINUE_FALSE, CONTINUE_TRUE, GENERATED_ORDERITEM, iATPParms, iCommandExecuted, iContinue, ihsATPParmsDefaults, ihsCatalogEntryAccessBeans, ihshAddress_id, ihshAttr_name, ihshAttr_value, ihshCatentry_id, ihshComment, ihshConfigurationId, ihshContract_id, ihshCorrelationGroup, ihshDescription, ihshExpandConfigurationId, ihshField1, ihshField2, ihshKey, ihshMember_id, ihshOffer_id, ihshOrderitem_id, ihshOrderResourceList, ihshOutOrderItemId, ihshPart_number, ihshQuantity, ihshShipmode_id, ihshStoreResourceList, ihshUom, iList_id, iList_order_id, iNew_order_id, iNewQuantity, inItemSpecId, iOrder_desc, iOrderComment, iOrderIdProperty, iOrderItemIndex, iOut_order_name, iOut_orderitem_name, iResolvedOrderIdList, iResolvedRequestProperties, iResourcelist, iSavedItemSpecId, isetDeletedOrderitemIds, iUniqueOrderIdList, iUniqueOrderitemIdList, iUniqueStoreIdList, iValidInputPOrderValues, ivecComponentList, MANUAL_FULFILLMENT_CENTER, MANUAL_PRICE, NORMAL_ORDERITEM, QUOTATION_ORDERITEM, STR_ADDRESS_ID, STR_ATTR_NAME, STR_ATTR_VALUE, STR_CATENTRY_ID, STR_COMMENT, STR_CONFIGURATION_ID, STR_CONTINUE, STR_CONTRACT_ID, STR_CORRELATION_GROUP, STR_DESCRIPTION, STR_EXPAND_CONFIGURATION_ID, STR_FIELD1, STR_FIELD2, STR_INVALID_INPUT_ERROR_VIEW, STR_LIST_ID, STR_MEMBER_ID, STR_OFFER_ID, STR_ORDER_COMMENT, STR_ORDER_DESC, STR_ORDER_ID, STR_ORDERITEM_ID, STR_OUT_ORDER_NAME, STR_OUT_ORDERITEM_NAME, STR_PART_NUMBER, STR_QUANTITY, STR_SHIPMODE_ID, STR_STORE_ID, STR_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.requisitionlist.commands. RequisitionListItemUpdateCmd
defaultCommandClassName, NAME, RLBadPartNumberErrorView, RLInvalidInputErrorView
 
Fields inherited from interface com.ibm.commerce.orderitems.commands. OrderItemAddCmd
badPartNumberErrorView, badPartNumberList, badPartNumberQuantityList, defaultCommandClassName, goodPartNumberList, goodPartNumberQuantityList, multiplePartNumberCatalogEntriesList, multiplePartNumberList, multiplePartNumberQuantityList, NAME
 
Constructor Summary
RequisitionListItemUpdateCmdImpl()
           
 
Method Summary
protected  void checkValidStatus( OrderAccessBean orderAB)
          It checks the validation of the order status.
protected  java.lang.Long getRequisitionListId()
          Returns the id of the requisition list.
  AccessVector getResources()
          It returns the order access bean.
protected  void migrateInterestItemsToOrderItems()
          It does nothing.
 void performExecute()
           It just calls super.performExecute() to do work. If the super class throws exception with error view badPartNumberErrorView, it changes the error view to RLBadPartNumberErrorView. If the super class throws exception with error view InvalidInputErrorView, it changes the error view to RLInvalidInputErrorView.
 void reset()
          Reset all instance variables.
protected  void resolveOrderId()
          It overwrites the method in the super class.
 void setName(java.lang.String name)
          Specifies the requisition list name.
 void setRequestProperties( TypedProperty reqProperties)
          Sets the request properties.
 void setRequisitionListId(java.lang.Long id)
          Specifies the requisition list id.
 void setStatus(java.lang.String status)
          Specifies the status of the requisition list.
protected  void unLockOrder(java.lang.String orderId)
          It unlocks the order.
protected  void updateFulfillmentCenter()
          It does nothing.
protected  void updateOrderItem( OrderItemAccessBean orderitemAB, java.lang.Integer i)
          It updates the order item.
protected  void updateOutOrderName()
          It adds the order id and the requisition list id to the output response property.
protected  void updatePrice()
          It does nothing.
protected  void updateRequisitionListName()
          It updates the requisition list name.
 void validateParameters()
          Validate the input parameters.
protected  void validateTradingPaymentMethods()
          Does nothing.
 
Methods inherited from class com.ibm.commerce.orderitems.commands. OrderItemBaseCmdImpl
checkBuyable, checkProductEntitlement, createOrder, createOrderItem, getAddressId, getATPParms, getAttributeNVP, getCatalogEntryAccessBean, getCatEntryId, getComment, getConfigurationId, getContinue, getContractId, getCorrelationGroup, getDeletedOrderItemIds, getDescription, getExpandConfigurationId, getField1, getField2, getItemSpecId, getMemberId, getNewOrderId, getNewOrderItemIds, getOfferId, getOrderComment, getOrderDesc, getOrderId, getOrderIds, getOrderItemId, getOrderItemIds, getPartNumber, getQuantity, getResolvedOrderId, getResolvedRequestProperties, getRoundedQuantityAmount, getShipModeId, getTheUser, getTheUserId, getTradingId, getUniqueOrderId, getUniqueOrderItemId, getUOM, insertAddressId, insertItemSpecId, insertOrderItem, insertOrderItem, insertOrderItems, insertPartNumber, invalidateAllocation, orderItemAdd, orderItemUpdate, resolveSku, setAddressId, setATPParms, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setItemSpecId, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setQuantity, setResolvedOrderId, setShipmodeId, setTradingId, setUom, updateAddressId, updateAddressId, updateAddressId, updateAllShippingAndAddress, updateComponentList, updateCorrelationGroup, updateCurrency, updateItemSpecId, updateOrder, updateOrderItem, updateOutOrderItemId, updateOutOrderItemName, updatePrice, updatePrice, updateQuantity, updateResourceList, updateShipModeId, updateShipModeId, updateShipModeId, updateShippingAndAddress
 
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.orderitems.commands. OrderItemUpdateCmd
getDeletedOrderItemIds, getNewOrderItemIds, getOrderIds, getOrderItemIds, setAddressId, setAttrName, setAttrValue, setCatEntryId, setComment, setConfigurationId, setContinue, setContractId, setCorrelationGroup, setDescription, setExpandConfigurationId, setField1, setField2, setListId, setMemberId, setOfferId, setOrderComment, setOrderDesc, setOrderId, setOrderItemId, setOutOrderItemName, setOutOrderName, setPartNumber, setQuantity, setShipmodeId, setTradingId, setUom
 
Methods inherited from interface com.ibm.commerce.command. ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, 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
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

iRequisitionListId

protected java.lang.Long iRequisitionListId
The id of the requisition list.

iRequisitionListStatus

protected java.lang.String iRequisitionListStatus
The status of the requisition list.

iRequisitionListName

protected java.lang.String iRequisitionListName
The name of the requisition list.
Constructor Detail

RequisitionListItemUpdateCmdImpl

public RequisitionListItemUpdateCmdImpl()
Method Detail

checkValidStatus

protected void checkValidStatus(OrderAccessBean orderAB)
                         throws ECException,
                                FinderException,
                                CreateException,
                                javax.naming.NamingException,
                                java.rmi.RemoteException,
                                java.sql.SQLException
It checks the validation of the order status. The status can only be 'Y' or 'Z'. It overwrites the method in the super class.
Overrides:
checkValidStatus in class OrderItemBaseCmdImpl
Parameters:
orderAB - order access bean.
Throws:
ECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException

getRequisitionListId

protected java.lang.Long getRequisitionListId()
Returns the id of the requisition list.
Returns:
requisition list id

getResources

public AccessVector getResources()
It returns the order access bean. It overwrites the method in the super class.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class OrderItemBaseCmdImpl
Returns:
AccessVector.
Throws:
ECException

migrateInterestItemsToOrderItems

protected void migrateInterestItemsToOrderItems()
It does nothing. It overwrites the method in the super class.
Overrides:
migrateInterestItemsToOrderItems in class OrderItemBaseCmdImpl

performExecute

public void performExecute()
                    throws ECException
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class OrderItemBaseCmdImpl
Throws:
ECException

reset

public void reset()
Reset all instance variables.
Overrides:
reset in class OrderItemBaseCmdImpl

resolveOrderId

protected void resolveOrderId()
                       throws ECException
It overwrites the method in the super class.
Overrides:
resolveOrderId in class OrderItemBaseCmdImpl
Throws:
ECException

setName

public void setName(java.lang.String name)
Specifies the requisition list name.
Specified by:
setName in interface RequisitionListItemUpdateCmd
Parameters:
name - requisition list name

setRequestProperties

public void setRequestProperties(TypedProperty reqProperties)
                          throws ECException
Sets the request properties.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class OrderItemBaseCmdImpl
Parameters:
reqProperties - request properties.
Throws:
ECException

setRequisitionListId

public void setRequisitionListId(java.lang.Long id)
Specifies the requisition list id.
Specified by:
setRequisitionListId in interface RequisitionListItemUpdateCmd
Parameters:
id - requisition list id

setStatus

public void setStatus(java.lang.String status)
Specifies the status of the requisition list.
Specified by:
setStatus in interface RequisitionListItemUpdateCmd
Parameters:
status - status

unLockOrder

protected void unLockOrder(java.lang.String orderId)
                    throws ECException,
                           FinderException,
                           CreateException,
                           javax.naming.NamingException,
                           java.rmi.RemoteException,
                           java.sql.SQLException
It unlocks the order. It overwrites the method in the super class. It does not set the status to 'P'.
Overrides:
unLockOrder in class OrderItemBaseCmdImpl
Parameters:
orderId - order id
Throws:
ECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException

updateFulfillmentCenter

protected void updateFulfillmentCenter()
It does nothing. It overwrites the method in the super class.
Overrides:
updateFulfillmentCenter in class OrderItemBaseCmdImpl

updateOrderItem

protected void updateOrderItem(OrderItemAccessBean orderitemAB,
                               java.lang.Integer i)
                        throws ECException,
                               FinderException,
                               CreateException,
                               javax.naming.NamingException,
                               java.rmi.RemoteException,
                               java.sql.SQLException
It updates the order item. It overwrites the method in the super class. It does not update price.
Overrides:
updateOrderItem in class OrderItemBaseCmdImpl
Parameters:
orderitemAB - OrderItemAccessBean
i - enumeration group
Throws:
ECException
FinderException
CreateException
javax.naming.NamingException
java.rmi.RemoteException
java.sql.SQLException

updateOutOrderName

protected void updateOutOrderName()
It adds the order id and the requisition list id to the output response property. It overwrites the method in the super class.
Overrides:
updateOutOrderName in class OrderItemBaseCmdImpl

updatePrice

protected void updatePrice()
It does nothing.
Overrides:
updatePrice in class OrderItemBaseCmdImpl

updateRequisitionListName

protected void updateRequisitionListName()
                                  throws ECException
It updates the requisition list name.
Throws:
ECException

validateParameters

public void validateParameters()
                        throws ECException
Validate the input parameters.

It checks the validation of the follwoing parameter values:

Exception:

Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class OrderItemBaseCmdImpl
Throws:
ECException

validateTradingPaymentMethods

protected void validateTradingPaymentMethods()
Does nothing. It overwrites the method in the super class.
Overrides:
validateTradingPaymentMethods in class OrderItemBaseCmdImpl