com.ibm.commerce.tools.campaigns

Class CampaignCollateralUpdateCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.tools.campaigns.CampaignCollateralUpdateCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, CampaignCollateralUpdateCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class CampaignCollateralUpdateCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CampaignCollateralUpdateCmd
    This class implements the CampaignCollateralUpdateCmd interface to provide the task command that updates an ad copy. Different implementations of this interface can be provided for different stores.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Integer getCollateralId()
      Gets unique ID of Collateral object.
      boolean isReadyToCallExecute()
      Checks to see if the command is ready to call.
      void performExecute()
      Performs the execution of the command.
      void setCollateralDescriptionField1(java.lang.String field1)
      Sets the collateral description field 1.
      void setCollateralDescriptionField2(java.lang.String field2)
      Sets the collateral description field 2.
      void setCollateralField1(java.lang.String field1)
      Sets the collateral custom field 1.
      void setCollateralField2(java.lang.String field2)
      Sets the collateral custom field 2.
      void setCollateralId(java.lang.Integer id)
      Sets the collateral ID.
      void setCollateralLocation(java.lang.String location)
      Sets the collateral image file location.
      void setCollateralMarketingText(java.lang.String text)
      Sets the collateral marketing text.
      void setCollateralName(java.lang.String name)
      Sets the collateral name.
      void setCollateralType(java.lang.Integer type)
      Sets the collateral image type.
      void setCollateralUrl(java.lang.String url)
      Sets the collateral URL.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • CampaignCollateralUpdateCmdImpl

        public CampaignCollateralUpdateCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to call. This method will return false if the collateral ID is null.
        Overrides:
        isReadyToCallExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Returns:
        true if the command is ready to go.
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Performs the execution of the command.
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        ECCommand#performExecute()
      • setCollateralDescriptionField1

        public void setCollateralDescriptionField1(java.lang.String field1)
        Sets the collateral description field 1.
        Specified by:
        setCollateralDescriptionField1 in interface CampaignCollateralUpdateCmd
        Parameters:
        field1 - The description field 1 of the collateral.
      • setCollateralDescriptionField2

        public void setCollateralDescriptionField2(java.lang.String field2)
        Sets the collateral description field 2.
        Specified by:
        setCollateralDescriptionField2 in interface CampaignCollateralUpdateCmd
        Parameters:
        field2 - The description field 2 of the collateral.
      • setCollateralField1

        public void setCollateralField1(java.lang.String field1)
        Sets the collateral custom field 1.
        Specified by:
        setCollateralField1 in interface CampaignCollateralUpdateCmd
        Parameters:
        field1 - The custom field 1 of the collateral.
      • setCollateralField2

        public void setCollateralField2(java.lang.String field2)
        Sets the collateral custom field 2.
        Specified by:
        setCollateralField2 in interface CampaignCollateralUpdateCmd
        Parameters:
        field2 - The custom field 2 of the collateral.
      • setCollateralId

        public void setCollateralId(java.lang.Integer id)
        Sets the collateral ID.
        Specified by:
        setCollateralId in interface CampaignCollateralUpdateCmd
        Parameters:
        id - The ID of the collateral.
      • setCollateralLocation

        public void setCollateralLocation(java.lang.String location)
        Sets the collateral image file location.
        Specified by:
        setCollateralLocation in interface CampaignCollateralUpdateCmd
        Parameters:
        location - The image file location of the collateral.
      • setCollateralMarketingText

        public void setCollateralMarketingText(java.lang.String text)
        Sets the collateral marketing text.
        Specified by:
        setCollateralMarketingText in interface CampaignCollateralUpdateCmd
        Parameters:
        text - The marketing text of the collateral.
      • setCollateralName

        public void setCollateralName(java.lang.String name)
        Sets the collateral name.
        Specified by:
        setCollateralName in interface CampaignCollateralUpdateCmd
        Parameters:
        name - The name of the collateral.
      • setCollateralType

        public void setCollateralType(java.lang.Integer type)
        Sets the collateral image type.
        Specified by:
        setCollateralType in interface CampaignCollateralUpdateCmd
        Parameters:
        type - The image type of the collateral.
      • setCollateralUrl

        public void setCollateralUrl(java.lang.String url)
        Sets the collateral URL.
        Specified by:
        setCollateralUrl in interface CampaignCollateralUpdateCmd
        Parameters:
        url - The URL of the collateral.