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, 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, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public ReturnPrepareCmdImpl()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
Parameters
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- 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_PARAMETERECException
public MonetaryAmount getRMATotalCredit()
getRMATotalCredit
in interface ReturnPrepareCmd