java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.returns.commands.ReturnItemBaseCmdImpl
Base implementation for both ReturnItemAdd and ReturnItemUpdate.
Field Summary | |
protected java.util.Hashtable | ihshAttr_name |
protected java.util.Hashtable | ihshAttr_value |
protected java.util.Hashtable | ihshCatentry_id |
protected java.util.Hashtable | ihshComment |
protected java.util.Hashtable | ihshCreditAdjustment |
protected java.util.Hashtable | ihshKey |
protected java.util.Hashtable | ihshOrderitem_id |
protected java.util.Hashtable | ihshQuantity |
protected java.util.Hashtable | ihshReason |
protected java.util.Hashtable | ihshReasonId |
protected java.util.Hashtable | ihshReceive |
protected java.util.Hashtable | ihshRMAItem_id |
protected java.util.Hashtable | ihshUom |
protected static java.lang.String | STR_ATTR_NAME |
protected static java.lang.String | STR_ATTR_VALUE |
protected static java.lang.String | STR_CATENTRY_ID |
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.returns.commands.ReturnItemAddCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.returns.commands.ReturnItemUpdateCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
protected | ReturnItemBaseCmdImpl() ReturnItemBaseCmdImpl constructor. |
Method Summary | |
protected abstract boolean | doAdd() This method is reserved for IBM internal use only. |
protected abstract boolean | doUpdate() This method is reserved for IBM internal use only. |
protected abstract void | extendCommand() Extend the command here. |
protected java.util.Hashtable | getAttributeNVP(java.lang.Integer index) Get attribute NVPs. |
protected java.lang.Long | getCatEntryId(java.lang.Integer index) Get the catEntry id value for the appropriate index. |
protected java.math.BigDecimal | getCreditAdjustment(java.lang.Integer index) Get the appropriate credit adjustment for the index. |
protected abstract int | getMe() This method is reserved for IBM internal use only. |
protected java.lang.Double | getNormalizedQuantity(java.lang.Integer index, java.lang.Long aCatEntryId) Get the normalized quantity. |
protected OrderItemAccessBean | getOrderItemAB(java.lang.Long anOrderItemId) Get an orderItem access bean based on the orderItem Id. |
protected java.lang.Long | getOrderItemId(java.lang.Integer index) Get the appropriate order item identifier for the index. |
protected java.util.List | getOrderList() Get the list of order access beans associated with the returns order items. |
protected java.lang.Double | getQuantity(java.lang.Integer index) Get the quantity value for the appropriate index. |
protected java.lang.String | getReason(java.lang.Integer index) Get the reason code value for the appropriate index. |
protected java.lang.Integer | getReasonId(java.lang.Integer index) Get the reason id value for the appropriate index. |
protected java.lang.String | getReceive(java.lang.Integer index) Get the receive value for the specified index. |
protected RMAAccessBean | getRMA() Get the RMA access bean. |
protected java.lang.Long | getRMAItemId(java.lang.Integer index) Get the RMA item id value for the appropriate index. |
protected java.lang.String | getUOM(java.lang.Integer index) Get the unit of measure (UOM) value for the appropriate index. |
protected RMAAccessBean | getUpdateRMA() Get the RMA for Update. |
protected boolean | isAdminCommand() Is this command being called by a CSR (using forUser/forUserId)? |
protected boolean | isCatEntryWithoutOrderItemReturnAllowedForShopper() This method decides whether a shopper can return a catEntry without an orderItem. |
protected boolean | isNewRMA() Are we creating a new RMA? |
void | performExecute() Execute the command. |
void | reset() Reset the command. |
void | setRequestProperties(TypedProperty aRequestProperties) Sets the request properties. |
void | validateParameters() Check mandatory parameters. |
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, getResources, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
protected java.util.Hashtable ihshCatentry_id
protected java.util.Hashtable ihshAttr_name
protected java.util.Hashtable ihshAttr_value
protected java.util.Hashtable ihshReceive
protected java.util.Hashtable ihshCreditAdjustment
protected java.util.Hashtable ihshKey
protected java.util.Hashtable ihshQuantity
protected java.util.Hashtable ihshUom
protected java.util.Hashtable ihshComment
protected java.util.Hashtable ihshReason
protected java.util.Hashtable ihshReasonId
protected java.util.Hashtable ihshOrderitem_id
protected java.util.Hashtable ihshRMAItem_id
protected static final java.lang.String STR_CATENTRY_ID
protected static final java.lang.String STR_ATTR_NAME
protected static final java.lang.String STR_ATTR_VALUE
Constructor Detail |
protected ReturnItemBaseCmdImpl()
Method Detail |
protected abstract boolean doAdd()
protected abstract boolean doUpdate()
protected abstract void extendCommand() throws ECException
protected java.util.Hashtable getAttributeNVP(java.lang.Integer index) throws InvalidParameterValueException
protected java.lang.Long getCatEntryId(java.lang.Integer index) throws InvalidParameterValueException
protected java.math.BigDecimal getCreditAdjustment(java.lang.Integer index) throws InvalidParameterValueException
protected abstract int getMe()
protected java.lang.Double getNormalizedQuantity(java.lang.Integer index, java.lang.Long aCatEntryId) throws ECException
protected OrderItemAccessBean getOrderItemAB(java.lang.Long anOrderItemId) throws ECException
protected java.lang.Long getOrderItemId(java.lang.Integer index) throws InvalidParameterValueException
protected java.util.List getOrderList() throws ECException
protected java.lang.Double getQuantity(java.lang.Integer index) throws InvalidParameterValueException
protected java.lang.String getReason(java.lang.Integer index)
protected java.lang.Integer getReasonId(java.lang.Integer index)
protected java.lang.String getReceive(java.lang.Integer index)
protected RMAAccessBean getRMA() throws ECException
protected java.lang.Long getRMAItemId(java.lang.Integer index) throws ECApplicationException
protected java.lang.String getUOM(java.lang.Integer index)
protected RMAAccessBean getUpdateRMA() throws ECException
protected boolean isAdminCommand()
protected boolean isCatEntryWithoutOrderItemReturnAllowedForShopper()
protected boolean isNewRMA()
public void performExecute() throws ECException
public void reset()
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void validateParameters() throws ECException
Parameters
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.