com.ibm.commerce.inventory.commands

Class ReturnReasonCodeUpdateCmdImpl

    • Constructor Detail

      • ReturnReasonCodeUpdateCmdImpl

        public ReturnReasonCodeUpdateCmdImpl()
    • Method Detail

      • setReturnReasonCode

        public void setReturnReasonCode(java.lang.String newReturnReasonCode)
        Set the return reason code.
        Specified by:
        setReturnReasonCode in interface ReturnReasonCodeUpdateCmd
        Parameters:
        newReturnReasonCode - java.lang.String
      • setReturnReasonDescription

        public void setReturnReasonDescription(java.lang.String newReturnReasonDescription)
        Set the description of the reason for the return.
        Specified by:
        setReturnReasonDescription in interface ReturnReasonCodeUpdateCmd
        Parameters:
        newReturnReasonDescription - java.lang.String
      • setReturnReasonId

        public void setReturnReasonId(java.lang.String newReturnReasonId)
        Return the return reason code identifier.
        Specified by:
        setReturnReasonId in interface ReturnReasonCodeUpdateCmd
        Parameters:
        newReturnReasonId - java.lang.String
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method gets the information of the return reason to be updated and sets the information into the command local variable. It also sets the success redirect URL.

        Exceptions:

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECApplicationException. - If the XMLObject cannot be parsed as expected, throw ECApplicationException.
        ECException
      • getResources

        public AccessVector getResources()
                                  throws ECException
        Gets the access vector accessed by this command. This method uses the following AccessBean:

        • StoreEntityAccessBean

        Specified by:
        getResources in interface ECCommand
        Overrides:
        getResources in class AbstractECTargetableCommand
        Returns:
        AccessVector - a vector of resource action pairs

        Exceptions:

        Throws:
        com.ibm.commmerce.exception.ECException - which can be thrown for several reasons such as FinderException, CreateException, RemoteException, NamingException
        ECException
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution of updating the return reason. Only the code and description of the return reason can be updated.

        This method uses the following AccessBean:

        • ReturnReasonAccessBean
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - if receive a FinderException