java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.orderquotation.commands.OrderItemSelectCmdImpl
This is the default implementation of the OrderItemSelect command.
Nested Class Summary |
Nested classes inherited from class com.ibm.commerce.orderquotation.commands.OrderItemSelectCmd |
OrderItemSelectCmd.EnumerationGroup |
Field Summary | |
static java.lang.String | COPYRIGHT The IBM copyright string. |
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.orderquotation.commands.OrderItemSelectCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
OrderItemSelectCmdImpl() Constructor for OrderItemSelectCmdImpl. |
Method Summary | |
protected void | copyOrderPaymentInfos(java.lang.Long anParentId, java.lang.Long anSelectionOrderId) Copies OrderPaymentInfos 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 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 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, status 'P', 'I', 'E', 'W' or 'N', and fulfillmentStatus 'INT'. |
protected 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() Contains the actual business logic of the command It should be implemented by all the command writer. |
void | reset() This method should be called after a command has been executed to reset its states 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. |
protected void | setResponseProperties() Sets the response properties. |
protected void | updateSelectionItem(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem, java.lang.Long anContractId, java.lang.Double adNormalizedQuantity) Creates or updates the appropiate OrderItem in the specified selection Order based on the specified source OrderItem, Contract ID and normalized quantity. |
void | validateParameters() Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, 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, 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 |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public OrderItemSelectCmdImpl()
Method Detail |
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 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 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 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 deleteSelectionItems(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem) throws ECException
protected void setResponseProperties() throws ECException
public void performExecute() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.