com.ibm.commerce.inventory.commands

Class ReturnReasonCodeCreateCmdImpl

    • Constructor Detail

      • ReturnReasonCodeCreateCmdImpl

        public ReturnReasonCodeCreateCmdImpl()
    • Method Detail

      • setReturnReasonCode

        public void setReturnReasonCode(java.lang.String newReturnReasonCode)
        Set the return reason code.
        Specified by:
        setReturnReasonCode in interface ReturnReasonCodeCreateCmd
        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 ReturnReasonCodeCreateCmd
        Parameters:
        newReturnReasonDescription - java.lang.String
      • setReturnReasonType

        public void setReturnReasonType(java.lang.String newReturnReasonType)
        Set the type of return reason code.
        Specified by:
        setReturnReasonType in interface ReturnReasonCodeCreateCmd
        Parameters:
        newReturnReasonType - java.lang.String
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method gets the information of the new return reason to be created and sets the information into the command local variable. It also sets the success redirect URL.
        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

      • ECSystemException when receive CreateException
      • ECSystemException when receive FinderException
      • ECSystemException when receive RemoteException
      • ECSystemException when receive NamingException
      • ECException when receive any other type of exception
      • Throws:
        ECException
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the execution of creating a new return reason.

        This method uses the following AccessBean:

        • ReturnReasonAccessBean to add the return reason to the database
        Exception
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException