com.ibm.commerce.returns.commands
Class ReturnItemAddCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.returns.commands.ReturnItemBaseCmdImpl
              |
              +--com.ibm.commerce.returns.commands.ReturnItemAddCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, ReturnItemAddCmd, ReturnItemUpdateCmd

public class ReturnItemAddCmdImpl
extends ReturnItemBaseCmdImpl
implements ReturnItemAddCmd

Add a item to an return mechandise authorization (RMA).


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
 
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
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.returns.commands.ReturnItemUpdateCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
ReturnItemAddCmdImpl()
          ReturnItemAddCmdImpl constructor.
 
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
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

ReturnItemAddCmdImpl

public ReturnItemAddCmdImpl()
ReturnItemAddCmdImpl constructor.
Method Detail

doAdd

protected boolean doAdd()
This method is reserved for IBM internal use only.
Overrides:
doAdd in class ReturnItemBaseCmdImpl
Returns:
true.

doUpdate

protected boolean doUpdate()
This method is reserved for IBM internal use only.
Overrides:
doUpdate in class ReturnItemBaseCmdImpl
Returns:
false.

extendCommand

protected void extendCommand()
                      throws ECException
Extend the command here. This implementation calls the task command ExtendReturnItemAddCmd.
Overrides:
extendCommand in class ReturnItemBaseCmdImpl

getMe

protected int getMe()
This method is reserved for IBM internal use only.
Overrides:
getMe in class ReturnItemBaseCmdImpl
Returns:
The internal identifier.

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 - If a new RMA is being created then return the store access bean; otherwise return the RMA access bean. Also return all order access beans that are used.