public class ReturnEditBeginCmdImpl extends ReturnEditBaseCmdImpl implements ReturnEditBeginCmd
ReturnEditBeginCmd
controller controller command interface.
Name | Description |
---|---|
iTakeOverLock |
Takes over the lock or not. It should be "Y" or "N", default is "N". |
To invoke this command, a valid RMA ID has to be passed in from command context. An exception is thrown if an invalid RMA is passed.
If the RMA is not locked by others, lock it. Otherwise, if the iTakeOverLock flag set to "Y", unlock the RMA which is locked by others, and lock it. An ECException will be thrown if it can't be locked by current user.
After the command is invoked, the RMA is in an editable state. RMAs that are in edit(EDT), pending(PND) and approved(APP) state can be edited.
If the command is successful, the status of the RMA will be set to EDT and the RMA "INUSE" flag will be set to "Y". The RMA will not be processed by the system until the RMA gets submitted again.
If unsuccessful, the command throws the ECException.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
defaultCommandClassName, EC_RMA_ID, NAME
Constructor and Description |
---|
ReturnEditBeginCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
This method is the main logic for setting up the RMA for edits.
|
void |
setRequestProperties(TypedProperty reqProperties)
Sets the request properties of this command implementation.
|
void |
setTakeOverLock(java.lang.String takeOverLock)
This method sets if take over lock from others.
|
void |
validateParameters()
Extracts and validates the input parameters of this command implementation
if validated, locks the RMA.
|
getResources, getRMA, getRMAId, isGeneric, isRetriable, reset, setRMA, setRMAId, toString
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, 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, wait, wait, wait
setRMA, setRMAId
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, 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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class ReturnEditBaseCmdImpl
ECException
TargetableCommand.performExecute()
public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ReturnEditBaseCmdImpl
reqProperties
- the request propertiesECException
ControllerCommand.setRequestProperties(com.ibm.commerce.datatype.TypedProperty)
public void setTakeOverLock(java.lang.String takeOverLock)
setTakeOverLock
in interface ReturnEditBeginCmd
takeOverLock
- It should be "Y" or "N".public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class ReturnEditBaseCmdImpl
ECException
ECCommand.validateParameters()