public class ReturnItemAddCmdImpl extends ReturnItemBaseCmdImpl implements ReturnItemAddCmd
ReturnItemAddCmd
interface. 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. |
creditAdjustment_i |
The amount by which to adjust the product credit amount. |
orderItemId_i |
The OrderItem ID, if available. |
catEntryId_i |
The catalog entry being returned. |
attrName_i |
Any distinct attribute defined for the product. |
attrValue_i |
The value of the product attribute. |
RMAId |
The identifier of an existing RMA that the return items are to be added to. |
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 |
The URL to be called when the command completes successfully. |
CheckReturnItemInCorrectStateCmd
task command to verify
that the order item is in a returnable state.
ResolveSkuCmd
to resolve
the catalog entry ID and item spec ID.
CalculateReturnItemCreditForCatEntryCmd
, otherwise call task command
CalculateReturnItemCreditCmd
.
catEntry
is to be added to RMA, then
CalculateReturnItemCreditForCatEntryCmd
to
calculate the credit amounts.
AutoApproveReturnItemCmd
to see if item is
automatically approved. Mark rmaItem
as either "system-approved"
or "approval pending" depending on result from task command.
ReturnItemBaseCmdImpl
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this class.
|
defaultCommandClassName, NAME
defaultCommandClassName, NAME
Constructor and Description |
---|
ReturnItemAddCmdImpl()
This is the ReturnItemAddCmdImpl 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 ReturnItemAddCmdImpl()
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 adding the return item might cause the size of the RMA, as
well as the requested quantity, to exceed the defined business threshold.
If the check fails, it throws an ECApplicationException
.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.