com.ibm.commerce.ordermanagement.commands

Class ReturnEditBeginCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ReturnEditBeginCmd, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class ReturnEditBeginCmdImpl
    extends ReturnEditBaseCmdImpl
    implements ReturnEditBeginCmd
    This class is the default implementation of the ReturnEditBeginCmd controller controller command interface.

    Input parameters:

    Name Description
    iTakeOverLock Takes over the lock or not. It should be "Y" or "N", default is "N".

    Behaviour:

    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.

    See Also:
    Serialized Form