java.lang.Object | +--CacheableCommandImpl | +--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 |
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 | |
---|---|
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 |
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
ECException
protected java.util.Hashtable getAttributeNVP(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.
InvalidParameterValueException
protected java.lang.Long getCatEntryId(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.
InvalidParameterValueException
- If catalog entry not valid throws
com.ibm.commerce.exception.InvalidParameterValueExceptionprotected java.math.BigDecimal getCreditAdjustment(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.
InvalidParameterValueException
protected abstract int getMe()
protected java.lang.Double getNormalizedQuantity(java.lang.Integer index, java.lang.Long aCatEntryId) throws ECException
index
- the index for the appropriate grouping.aCatEntryId
- the catalog entry id.ECException
protected OrderItemAccessBean getOrderItemAB(java.lang.Long anOrderItemId) throws ECException
anOrderItemId
- The order item Id.ECException
protected java.lang.Long getOrderItemId(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.
InvalidParameterValueException
- If index is an integer, throws
com.ibm.commerce.exception.InvalidParameterValueExceptionprotected java.util.List getOrderList() throws ECException
ECException
protected java.lang.Double getQuantity(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.
InvalidParameterValueException
protected java.lang.String getReason(java.lang.Integer index)
index
- The index for the appropriate grouping.protected java.lang.Integer getReasonId(java.lang.Integer index)
index
- The index for the appropriate grouping.protected java.lang.String getReceive(java.lang.Integer index)
index
- The index for the appropriate grouping.protected RMAAccessBean getRMA() throws ECException
ECException
protected java.lang.Long getRMAItemId(java.lang.Integer index) throws ECApplicationException
index
- The index for the appropriate grouping.
ECApplicationException
protected java.lang.String getUOM(java.lang.Integer index)
index
- The index for the appropriate grouping.protected RMAAccessBean getUpdateRMA() throws ECException
ECException
protected boolean isAdminCommand()
protected boolean isCatEntryWithoutOrderItemReturnAllowedForShopper()
protected boolean isNewRMA()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
aRequestProperties
- hastable of request properties
ECApplicationException
public void validateParameters() throws ECException
Parameters
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If parameters passed are not valid or there
are updates but no RMAitemid, throws
com.ibm.commerce.exception.ECApplicationException with
ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECException