com.ibm.commerce.tools.campaigns

Class CampaignUpdateCmdImpl

  • 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.CampaignUpdateCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, CampaignUpdateCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class CampaignUpdateCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CampaignUpdateCmd
    This class implements the CampaignUpdateCmd interface to provide the task command that updates a campaign. 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
      boolean isReadyToCallExecute()
      Checks to see if the command is ready to call.
      void performExecute()
      Performs the execution of the command.
      void setCampaignDescription(java.lang.String description)
      Sets the description of the campaign.
      void setCampaignField1(java.lang.String field1)
      Sets the custom field of the campaign.
      void setCampaignId(java.lang.Integer id)
      Sets the ID of the campaign.
      void setCampaignName(java.lang.String name)
      Sets the name of the campaign.
      void setCampaignObjective(java.lang.String objective)
      Sets the business objective of the campaign.
      void setCampaignOwner(java.lang.String owner)
      Sets the sponsor of the campaign.
      void setCampaignStatus(java.lang.String status)
      Sets the status of the campaign.
      void setCampaignType(java.lang.Integer type)
      Sets the type of the campaign.
      • 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

      • CampaignUpdateCmdImpl

        public CampaignUpdateCmdImpl()
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to call. This method will return false if the campaign 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()
      • setCampaignDescription

        public void setCampaignDescription(java.lang.String description)
        Sets the description of the campaign.
        Specified by:
        setCampaignDescription in interface CampaignUpdateCmd
        Parameters:
        description - The description of the campaign.
      • setCampaignField1

        public void setCampaignField1(java.lang.String field1)
        Sets the custom field of the campaign.
        Specified by:
        setCampaignField1 in interface CampaignUpdateCmd
        Parameters:
        field1 - The custom field of the campaign.
      • setCampaignId

        public void setCampaignId(java.lang.Integer id)
        Sets the ID of the campaign.
        Specified by:
        setCampaignId in interface CampaignUpdateCmd
        Parameters:
        id - The ID of the campaign.
      • setCampaignName

        public void setCampaignName(java.lang.String name)
        Sets the name of the campaign.
        Specified by:
        setCampaignName in interface CampaignUpdateCmd
        Parameters:
        name - The name of the campaign.
      • setCampaignObjective

        public void setCampaignObjective(java.lang.String objective)
        Sets the business objective of the campaign.
        Specified by:
        setCampaignObjective in interface CampaignUpdateCmd
        Parameters:
        objective - The business objective of the campaign.
      • setCampaignOwner

        public void setCampaignOwner(java.lang.String owner)
        Sets the sponsor of the campaign.
        Specified by:
        setCampaignOwner in interface CampaignUpdateCmd
        Parameters:
        owner - The sponsor of the campaign.
      • setCampaignStatus

        public void setCampaignStatus(java.lang.String status)
        Sets the status of the campaign.
        Specified by:
        setCampaignStatus in interface CampaignUpdateCmd
        Parameters:
        status - The status of the campaign.
      • setCampaignType

        public void setCampaignType(java.lang.Integer type)
        Sets the type of the campaign.
        Specified by:
        setCampaignType in interface CampaignUpdateCmd
        Parameters:
        type - The type of the campaign.