public interface ReturnEditBeginCmd extends ControllerCommand
ReturnEditBeginCmd
controller command interface locked the
RMA and brings it into editing mode(EDT).
This ReturnEditBeginCmd
implementation class and
ReturnEditEndCmd
command stages a RMA for editing. Between the
execution of the ReturnEditBeginCmd
and
ReturnEditEndCmd
commands, ReturnItem Update can occur.
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
Copyright statement.
|
static java.lang.String |
defaultCommandClassName
This method is the default implementation class.
|
static java.lang.String |
EC_RMA_ID
URL parameter constant.
|
static java.lang.String |
NAME
The full class name for this interface file.
|
Modifier and Type | Method and Description |
---|---|
void |
setRMA(RMAAccessBean aAbRMA)
This method sets a RMA AccessBean for edit.
|
void |
setRMAId(java.lang.String strRMAId)
This method sets an RMA ID, a required field, for edit.
|
void |
setTakeOverLock(java.lang.String takeOverLock)
This method sets if take over lock from others
|
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, getResources, getStoreId, getUser, getUserId, performExecute, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
static final java.lang.String COPYRIGHT
static final java.lang.String EC_RMA_ID
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
void setRMAId(java.lang.String strRMAId)
strRMAId
- A String of a valid RMAIdvoid setRMA(RMAAccessBean aAbRMA)
aAbRMA
- An AccessBean of a valid RMAvoid setTakeOverLock(java.lang.String takeOverLock)
takeOverLock
- If take over locks from others