Class ApproveReturnItemCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, ApproveReturnItemCmd,,,,,,

    public class ApproveReturnItemCmdImpl
    extends TaskCommandImpl
    implements ApproveReturnItemCmd
    Default implementation of the controller command AdminReturnItem interface.

    Change the status of a return merchandise authorization (RMA) item based on the approval type.


    • All existing deny reasons for the RMA item are removed from table RMAIDNYRSN.
    • If the approval type is cManualApproval, the status of the RMA item is changed to 'MAN'.
    • If the approval type is cPendingApproval, the status of the RMA item is changed to 'PND'. And the new vector of deny reasons is recorded in RMAIDNYRSN.
    • Otherwise the status of the RMA item is set to 'APP'

    Utilizes these access beans

    See Also:
    Serialized Form
    • Constructor Detail

      • ApproveReturnItemCmdImpl

        public ApproveReturnItemCmdImpl()
        ApproveReturnItemCmdImpl constructor.
    • Method Detail

      • reset

        public void reset()
        Reset the command.
        Specified by:
        reset in interface
        reset in class AbstractECTargetableCommand
      • setApprovalType

        public void setApprovalType(java.lang.Character newApprovalType)
        Set the approval type.
        Specified by:
        setApprovalType in interface ApproveReturnItemCmd
        newApprovalType - The approval type.
      • setDenyReasons

        public void setDenyReasons(java.util.Vector RMAItemDenyReasons)
        Set the existing vector of return RMA item deny reasons.
        Specified by:
        setDenyReasons in interface ApproveReturnItemCmd
        RMAItemDenyReasons - The vector of return deny reason identifiers.
      • setRMAItemAB

        public void setRMAItemAB(RMAItemAccessBean newRMAItemAB)
        Set the RMA Item access bean which will be approved.
        Specified by:
        setRMAItemAB in interface ApproveReturnItemCmd
        newRMAItemAB - The RMA item access bean to be approved.
      • validateParameters

        public void validateParameters()
                                throws ECException
        Check mandatory parameters.

        • RMAitemAB
          • The RMA item access bean to be approved
        • approvalType
        • RMAItemDenyReasons
          • The vector of return deny reason identifiers.
        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand
        ECApplicationException - If the RMAitem is null or if the approval type is pending and there are no deny reasons specified, throws with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER