public class ReturnPrepareCmdImpl extends ReturnBaseCmdImpl implements ReturnPrepareCmd
Adds terms and conditions to a return merchandise authorization (RMA) prior to agreement. Terms include taxes, warehouse to which customer must return required merchandise, and payment vehicle to be used for any agreed upon credit.
Parameters
RMAId (mandatory)Behaviour
RMAGOODFOR time
frame has expired for each RMA item. The credit calculation and automatic approval
are called again for those items that have exceeded the 'good for' time.
Utilizes these access beans
defaultCommandClassName, NAME| Constructor and Description |
|---|
ReturnPrepareCmdImpl()
ReturnPrepareCmdImpl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AccessVector |
getResources()
Gets the vector of resources accessed by this command.
|
MonetaryAmount |
getRMATotalCredit()
getRMATotalCredit
|
void |
performExecute()
Execute the command.
|
void |
reset()
Reset the command.
|
void |
validateParameters()
Check mandatory parameters.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic ReturnPrepareCmdImpl()
public AccessVector getResources() throws ECException
getResources in interface ECCommandgetResources in class AbstractECTargetableCommandECExceptionpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void validateParameters()
throws ECException
Parameters
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - If the RMA.status is not in the right state,
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage.ECMessage._ERR_RMA_IN_INVALID_STATE_FOR_COMMAND
ECApplicationException - If there is no TradingId or if the comment is greater than 254 characters
or if no URL has been specified,
throws com.ibm.commerce.exception.ECApplicationException
with ECMessage._ERR_BAD_MISSING_CMD_PARAMETERECExceptionpublic MonetaryAmount getRMATotalCredit()
getRMATotalCredit in interface ReturnPrepareCmd