com.ibm.commerce.returns.commands
Class ReturnItemUpdateCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.returns.commands.ReturnItemBaseCmdImpl
|
+--com.ibm.commerce.returns.commands.ReturnItemUpdateCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
ECTargetableCommand,
ReturnItemAddCmd,
ReturnItemUpdateCmd
- public class ReturnItemUpdateCmdImpl
- extends
ReturnItemBaseCmdImpl
- implements
ReturnItemUpdateCmd
Default implementation of the controller command
ReturnItemUpdateCmd
interface. Update the return mechandise
authorization (RMA) item. Update information about a returned item. This
command can be called for multiple RMA items. If the RMA item has been manually
approved, the approval will be removed and auto approval will be re-run on the
item.
Each item will be processed in the following way:
- Check to see if RMA exists. If not, return an error.
- Check that purchaser owns the RMA that the rmaItem belongs to. If not,
return an authorization error.
- Check that RMA item has not been received against nor credited.
- Check that the RMA is in the correct state.
- if (quantity changed) then if (returned item is based on an orderItem) then
Call task command CalculateReturnItemCredit to calculate default credit amount.
Set credit amount on RMA item.
- if the quantity has changed and the returned item is based on catEntry)
Call task command CalculateReturnItemCreditForCatEntry
- Update the RMA item
- Call task command AutoApproveReturnItem to see if item is automatically
approved. Mark rmaItem as either "system-approved" or "approval
pending" depending on result from task commmand.
- See Also:
- Serialized
Form
Fields inherited from class
com.ibm.commerce.returns.commands.
ReturnItemBaseCmdImpl |
ihshAttr_name,
ihshAttr_value,
ihshCatentry_id,
ihshComment,
ihshCreditAdjustment,
ihshKey,
ihshOrderitem_id,
ihshQuantity,
ihshReason,
ihshReasonId,
ihshReceive,
ihshRMAItem_id,
ihshUom,
STR_ATTR_NAME,
STR_ATTR_VALUE,
STR_CATENTRY_ID |
Method Summary |
protected
boolean |
doAdd()
This method is reserved for IBM internal use only. |
protected
boolean |
doUpdate()
This method is reserved for IBM internal use only. |
protected
void |
extendCommand()
Extend the command here. |
protected
int |
getMe()
This method is reserved for IBM internal use only. |
AccessVector |
getResources()
Gets the vector of resources accessed by this
command. |
Methods inherited from class
com.ibm.commerce.returns.commands.
ReturnItemBaseCmdImpl |
getAttributeNVP,
getCatEntryId,
getCreditAdjustment,
getNormalizedQuantity,
getOrderItemAB,
getOrderItemId,
getOrderList,
getQuantity,
getReason,
getReasonId,
getReceive,
getRMA,
getRMAItemId,
getUOM,
getUpdateRMA,
isAdminCommand,
isCatEntryWithoutOrderItemReturnAllowedForShopper,
isNewRMA,
performExecute,
reset,
setRequestProperties,
validateParameters |
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,
setRequestProperties,
setRetriable,
setViewInputProperties |
Methods inherited from interface
com.ibm.commerce.command.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
performExecute,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
ReturnItemUpdateCmdImpl
public ReturnItemUpdateCmdImpl()
- ReturnItemUpdateCmdImpl constructor.
doAdd
protected boolean doAdd()
- This method is reserved for IBM internal use only.
-
- Specified by:
-
doAdd
in class
ReturnItemBaseCmdImpl
doUpdate
protected boolean doUpdate()
- This method is reserved for IBM internal use only.
-
- Specified by:
-
doUpdate
in class
ReturnItemBaseCmdImpl
extendCommand
protected void extendCommand()
throws ECException
- Extend the command here. This implementation calls the task command
ExtendReturnItemUpdateCmd.
-
- Specified by:
-
extendCommand
in class
ReturnItemBaseCmdImpl
-
-
ECException
getMe
protected int getMe()
- This method is reserved for IBM internal use only.
-
- Specified by:
-
getMe
in class
ReturnItemBaseCmdImpl
getResources
public AccessVector getResources()
throws ECException
- Gets the vector of resources accessed by this command.
-
- Specified by:
-
getResources
in interface
ECCommand
- Overrides:
-
getResources
in class
AbstractECTargetableCommand
-
- Returns:
- The vector of resource action pairs - RMA access bean.
-
ECException