com.ibm.commerce.tools.campaigns

Class CampaignInitiativeUpdateCmdImpl

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


    public class CampaignInitiativeUpdateCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CampaignInitiativeUpdateCmd
    This class implements the CampaignInitiativeUpdateCmd interface to provide the task command that updates a campaign initiative. 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 setInitiativeCampaignId(java.lang.Integer campaignId)
      Sets the campaign ID of the initiative.
      void setInitiativeDescription(java.lang.String description)
      Sets the description of the campaign initiative.
      void setInitiativeField1(java.lang.String field1)
      Sets the custom field of the campaign initiative.
      void setInitiativeId(java.lang.Integer id)
      Sets the ID of the campaign initiative.
      void setInitiativeName(java.lang.String name)
      Sets the name of the campaign initiative.
      void setInitiativeResultType(java.lang.String resultType)
      Sets the result type of the campaign initiative.
      void setInitiativeRule(java.lang.String rule)
      Sets the rule of the campaign initiative.
      void setInitiativeSegments(java.util.Vector segments)
      Sets the segments of the campaign initiative.
      void setInitiativeSellType(java.lang.Integer sellType)
      Sets the sell type of the campaign initiative.
      void setInitiativeStatus(java.lang.String status)
      Sets the status of the campaign initiative.
      void setInitiativeType(java.lang.Integer type)
      Sets the type of the campaign initiative.
      • 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

      • CampaignInitiativeUpdateCmdImpl

        public CampaignInitiativeUpdateCmdImpl()
    • Method Detail

      • isReadyToCallExecute

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

        public void setInitiativeCampaignId(java.lang.Integer campaignId)
        Sets the campaign ID of the initiative.
        Specified by:
        setInitiativeCampaignId in interface CampaignInitiativeUpdateCmd
        Parameters:
        campaignId - The campaign ID of the initiative.
      • setInitiativeDescription

        public void setInitiativeDescription(java.lang.String description)
        Sets the description of the campaign initiative.
        Specified by:
        setInitiativeDescription in interface CampaignInitiativeUpdateCmd
        Parameters:
        description - The description of the campaign initiative.
      • setInitiativeField1

        public void setInitiativeField1(java.lang.String field1)
        Sets the custom field of the campaign initiative.
        Specified by:
        setInitiativeField1 in interface CampaignInitiativeUpdateCmd
        Parameters:
        field1 - The custom field of the campaign initiative.
      • setInitiativeId

        public void setInitiativeId(java.lang.Integer id)
        Sets the ID of the campaign initiative.
        Specified by:
        setInitiativeId in interface CampaignInitiativeUpdateCmd
        Parameters:
        id - The ID of the campaign initiative.
      • setInitiativeName

        public void setInitiativeName(java.lang.String name)
        Sets the name of the campaign initiative.
        Specified by:
        setInitiativeName in interface CampaignInitiativeUpdateCmd
        Parameters:
        name - The name of the campaign initiative.
      • setInitiativeResultType

        public void setInitiativeResultType(java.lang.String resultType)
        Sets the result type of the campaign initiative.
        Specified by:
        setInitiativeResultType in interface CampaignInitiativeUpdateCmd
        Parameters:
        resultType - The result type of the campaign initiative.
      • setInitiativeRule

        public void setInitiativeRule(java.lang.String rule)
        Sets the rule of the campaign initiative.
        Specified by:
        setInitiativeRule in interface CampaignInitiativeUpdateCmd
        Parameters:
        rule - The rule of the campaign initiative.
      • setInitiativeSegments

        public void setInitiativeSegments(java.util.Vector segments)
        Sets the segments of the campaign initiative.
        Specified by:
        setInitiativeSegments in interface CampaignInitiativeUpdateCmd
        Parameters:
        segments - The segments of the campaign initiative.
      • setInitiativeSellType

        public void setInitiativeSellType(java.lang.Integer sellType)
        Sets the sell type of the campaign initiative.
        Specified by:
        setInitiativeSellType in interface CampaignInitiativeUpdateCmd
        Parameters:
        sellType - The sell type of the campaign initiative.
      • setInitiativeStatus

        public void setInitiativeStatus(java.lang.String status)
        Sets the status of the campaign initiative.
        Specified by:
        setInitiativeStatus in interface CampaignInitiativeUpdateCmd
        Parameters:
        status - The status of the campaign initiative.
      • setInitiativeType

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