Class CreatePromotionCodeImportCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand,, CreatePromotionCodeImportCmd, Protectable,,,,,,

    public class CreatePromotionCodeImportCmdImpl
    implements CreatePromotionCodeImportCmd

    This class will upload a promotion code CSV file and then store it in the database table UPLOADFILE as a BLOBs. The class is used by CMC promotion code import tool.

    This class returns the uploaded file identifier (UPLOADFILE_ID).

    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        Copyright statement.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CreatePromotionCodeImportCmdImpl

        public CreatePromotionCodeImportCmdImpl()
    • Method Detail

      • setRequestProperties

        public void setRequestProperties(TypedProperty reqParms)
                                  throws ECException
        This method sets the request properties. It calls the setRequestProperties(TypedProperty) method from the superclass. The method sets promotion code import specific properties for the UPLOADFILE table.
        Specified by:
        setRequestProperties in interface ControllerCommand
        setRequestProperties in class
        reqParms - This is a TypedProperty object that represents the request properties.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the business logic for this command.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface
        performExecute in class
        ECException - An exception is thrown if there are errors when storing the uploaded file to database.