java.lang.Object | +--CacheableCommandImpl | +--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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public OrderItemSelectCmdImpl()
Method Detail |
---|
public void reset()
AbstractECTargetableCommand
reset
in class
AbstractECTargetableCommand
com.ibm.sfc.cmd.Command#reset()
protected OrderItemSelectCmd.EnumerationGroup[] getEnumerationGroups()
protected java.lang.String[] getOutSelectionOrderQuotationRelIdNames()
public void setEnumerationGroups(OrderItemSelectCmd.EnumerationGroup[] aEnumerationGroups)
OrderItemSelectCmd
setEnumerationGroups
in interface
OrderItemSelectCmd
aEnumerationGroups
- the enumeration groups.OrderItemSelectCmd#setEnumerationGroups(EnumerationGroup[])
public void setOutSelectionOrderQuotationRelIdNames(java.lang.String[] astrOutSelectionOrderQuotationRelIdNames)
OrderItemSelectCmd
setOutSelectionOrderQuotationRelIdNames
in interface
OrderItemSelectCmd
astrOutSelectionOrderQuotationRelIdNames
- the names of the
output selectionOrderQuotationRelId name-value pairs.OrderItemSelectCmd.setOutSelectionOrderQuotationRelIdNames(String[])
public void setRequestProperties(TypedProperty aRequestProperties) throws ECException
ControllerCommand
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- the request properties.ECException
ControllerCmd#setRequestProperties(TypedProperty)
protected void resolveNumericAbbreviations() throws ECException
ECException
protected void resolveOrderItemAbbreviations() throws ECException
ECException
protected OrderQuotationRelAccessBean getRelByChildId(java.lang.Long anChildId) throws ECException
anChildId
- the child Order ID.ECException
protected java.lang.Object getSelectionRelKey(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId)
anParentId
- the parent Order ID.anStoreId
- the Store ID.anContractId
- the Contract ID.ECException
protected OrderQuotationRelAccessBean getSelectionRel(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId) throws ECException
anParentId
- the parent Order ID.anStoreId
- the Store ID.anContractId
- the Contract ID.ECException
protected OrderAccessBean getOrder(java.lang.Long anOrderId) throws ECException
anOrderId
- the Order ID.ECException
public void validateParameters() throws ECException
ECCommand
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
ECCommand.validateParameters()
public AccessVector getResources() throws ECException
ECCommand
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
ECCommand.getResources()
protected java.lang.Long getDefaultContractId(java.lang.Integer anStoreId) throws ECException
anStoreId
- the Store ID.ECException
protected void copyOrderPaymentInfos(java.lang.Long anParentId, java.lang.Long anSelectionOrderId) throws ECException
anParentId
- the parent Order ID.anSelectionOrderId
- the selection Order ID.ECException
protected OrderAccessBean createSelectionOrder(OrderAccessBean aabParentOrder, java.lang.Integer anStoreId) throws ECException
aabParentOrder
- the parent Order.anStoreId
- the Store ID.ECException
protected OrderQuotationRelAccessBean createSelectionRel(java.lang.Long anParentId, java.lang.Integer anStoreId, java.lang.Long anContractId, java.lang.Long anSelectionOrderId) throws ECException
anParentId
- the parent Order ID.anStoreId
- the Store ID.anContractId
- the Contract ID.anSelectionOrderId
- the selection Order ID.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
anSelectionOrderId
- the selection Order ID.anCatalogEntryId
- the CatalogEntry ID.anItemSpecId
- the ItemSpec ID.anCorrelationGroup
- the correlation group.astrSupplierPartNumber
- the supplier part number.ECException
protected CatalogEntryAccessBean getCatalogEntry(java.lang.Long anCatalogEntryId) throws ECException
anCatalogEntryId
- the CatalogEntry ID.ECException
protected boolean isCatalogEntryValid(java.lang.Long anCatalogEntryId, java.lang.Integer anStoreId, java.lang.Long anContractId) throws ECException
anCatalogEntryId
- the CatalogEntry ID.anStoreId
- the Store ID.anContractId
- the Contract ID.ECException
protected void updateSelectionItem(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem, java.lang.Long anContractId, java.lang.Double adNormalizedQuantity) throws ECException
aabSelectionOrder
- the selection Order.aabSourceItem
- the source OrderItem.anContractId
- the Contract ID.adNormalizedQuantity
- the normalized quantity.ECException
protected void deleteSelectionItems(OrderAccessBean aabSelectionOrder, OrderItemAccessBean aabSourceItem) throws ECException
aabSelectionOrder
- the selection Order.aabSourceItem
- the source OrderItem.ECException
protected void setResponseProperties() throws ECException
ECException
public void performExecute() throws ECException
ECCommand
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
ECCommand.performExecute()