public class ReturnItemUpdateCmdImpl extends ReturnItemBaseCmdImpl implements ReturnItemUpdateCmd
ReturnItemUpdateCmd
interface. It updates the return merchandise
authorization (RMA) item. It updates information about a returned item. This
command can be called for multiple RMA items. Name | Description |
---|---|
forUser |
The logon ID of the user on whose behalf the command will be run. Only a person with the authority to process orders can specify this parameter. |
forUserId |
The logon ID of the user on whose behalf the command will be run. Only a person with a security role of Customer Service Representative can specify this parameter. |
creditAdjustment_i |
The amount by which to adjust the product credit amount. |
receive_i |
Specifies whether or not the return item components should be received by the store. |
RMAItemId_i |
(Required) The RMAItem identifier. |
quantity_i |
The quantity being returned. |
UOM_i |
The unit of measure for quantity_i . |
comment_i |
A comment about the item being returned. |
reason_i |
The reason for the return, as provided by the purchaser. |
URL |
(Required) The URL to be called when the command completes successfully. |
outRMAName |
The name to use for the name-value pair which will be passed to the redirected URL. |
Each item will be processed in the following way:
rmaItem
belongs
to. If not, return an authorization error.
orderItem
) then Call task command
CalculateReturnItemCreditCmd
to calculate default credit amount. Set
credit amount on RMA item.
catEntry
) Call task command
CalculateReturnItemCreditForCatEntryCmd
AutoApproveReturnItemCmd
to see if item is
automatically approved. Mark rmaItem
as either "system-approved"
or "approval pending" depending on result from task command.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
defaultCommandClassName, NAME
defaultCommandClassName, NAME
Constructor and Description |
---|
ReturnItemUpdateCmdImpl()
ReturnItemUpdateCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
This method gets the vector of resources accessed by this command.
|
void |
validateParameters()
This method first calls
super.validateParameters . |
getActiveOrganizationId, performExecute, reset, setActiveOrganizationId, setRequestProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public ReturnItemUpdateCmdImpl()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException.
ECException
public void validateParameters() throws ECException
super.validateParameters
. Then it
checks whether updating the item causes the requested quantity to exceed
the defined business threshold. If the check fails, it throws an
ECApplicationException. Then it calls
super.validateParameters
to do additional checks.validateParameters
in interface ECCommand
validateParameters
in class ReturnItemBaseCmdImpl
ECException
- If a parameter was invalid, or there was an error
retrieving data to do the validation.