|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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)
The WebController calls this method before invoking the execute method in this command to set the request properties for this command. |
void |
validateParameters()
Check mandatory parameters. |
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, getResources, 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, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
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 final java.lang.String STR_ATTR_NAME
protected static final java.lang.String STR_ATTR_VALUE
protected static final java.lang.String STR_CATENTRY_ID
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
index
- The index for the appropriate grouping.protected java.lang.Long getCatEntryId(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.protected java.math.BigDecimal getCreditAdjustment(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.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.protected OrderItemAccessBean getOrderItemAB(java.lang.Long anOrderItemId) throws ECException
anOrderItemId
- The order item Id.protected java.lang.Long getOrderItemId(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.protected java.util.List getOrderList() throws ECException
protected java.lang.Double getQuantity(java.lang.Integer index) throws InvalidParameterValueException
index
- The index for the appropriate grouping.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
protected java.lang.Long getRMAItemId(java.lang.Integer index) throws ECApplicationException
index
- The index for the appropriate grouping.protected java.lang.String getUOM(java.lang.Integer index)
index
- The index for the appropriate grouping.protected RMAAccessBean getUpdateRMA() throws ECException
protected boolean isAdminCommand()
protected boolean isCatEntryWithoutOrderItemReturnAllowedForShopper()
protected boolean isNewRMA()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void reset()
reset
in class AbstractECTargetableCommand
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
ControllerCommand
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
com.ibm.commerce.command.ControllerCommand
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
- public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |