com.ibm.commerce.promotion.commands

Class CreatePromotionCodeImportCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, com.ibm.commerce.content.commands.FileUploadCmd, CreatePromotionCodeImportCmd, 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 CreatePromotionCodeImportCmdImpl
    extends com.ibm.commerce.content.commands.FileUploadCmdImpl
    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

      • COPYRIGHT

        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
        Overrides:
        setRequestProperties in class com.ibm.commerce.content.commands.FileUploadCmdImpl
        Parameters:
        reqParms - This is a TypedProperty object that represents the request properties.
        Throws:
        ECException
      • 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 com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class com.ibm.commerce.content.commands.FileUploadCmdImpl
        Throws:
        ECException - An exception is thrown if there are errors when storing the uploaded file to database.