com.ibm.commerce.tools.campaigns

Class CampaignInitiativeScheduleAddCmdImpl

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


    public class CampaignInitiativeScheduleAddCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements CampaignInitiativeScheduleAddCmd
    This class implements the CampaignInitiativeScheduleAddCmd interface to provide the task command that schedules an initiative onto an e-Marketing Spot. 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 getInitiativeScheduleId()
      Returns the initiative schedule ID of the newly created initiative schedule.
      boolean isReadyToCallExecute()
      Checks to see if the command is ready to call.
      void performExecute()
      Performs the execution of the command.
      void setCollateralId(java.lang.Integer collateralId)
      Sets the collateral ID of the initiative schedule.
      void setEMarketingSpotId(java.lang.Integer eMarketingSpotId)
      Sets the e-Marketing Spot ID of the initiative schedule.
      void setEndDate(java.sql.Timestamp endDate)
      Sets the end date of the initiative schedule.
      void setInitiativeId(java.lang.Integer initiativeId)
      Sets the initiative ID of the initiative schedule.
      void setPriority(java.lang.Integer priority)
      Sets the priority of the initiative schedule.
      void setStartDate(java.sql.Timestamp startDate)
      Sets the start date of the initiative schedule.
      • 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

      • CampaignInitiativeScheduleAddCmdImpl

        public CampaignInitiativeScheduleAddCmdImpl()
    • Method Detail

      • getInitiativeScheduleId

        public java.lang.Integer getInitiativeScheduleId()
        Returns the initiative schedule ID of the newly created initiative schedule. You must execute this task command before accessing this value.
        Specified by:
        getInitiativeScheduleId in interface CampaignInitiativeScheduleAddCmd
        Returns:
        An integer of the initiative schedule ID.
      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Checks to see if the command is ready to call. This method will return false if the initiative ID, e-Marketing Spot ID, start date or end date are 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()
      • setCollateralId

        public void setCollateralId(java.lang.Integer collateralId)
        Sets the collateral ID of the initiative schedule.
        Specified by:
        setCollateralId in interface CampaignInitiativeScheduleAddCmd
        Parameters:
        collateralId - The collateral ID of the initiative schedule.
      • setEMarketingSpotId

        public void setEMarketingSpotId(java.lang.Integer eMarketingSpotId)
        Sets the e-Marketing Spot ID of the initiative schedule.
        Specified by:
        setEMarketingSpotId in interface CampaignInitiativeScheduleAddCmd
        Parameters:
        eMarketingSpotId - The e-Marketing Spot ID of the initiative schedule.
      • setEndDate

        public void setEndDate(java.sql.Timestamp endDate)
        Sets the end date of the initiative schedule.
        Specified by:
        setEndDate in interface CampaignInitiativeScheduleAddCmd
        Parameters:
        endDate - The end date of the initiative schedule.
      • setInitiativeId

        public void setInitiativeId(java.lang.Integer initiativeId)
        Sets the initiative ID of the initiative schedule.
        Specified by:
        setInitiativeId in interface CampaignInitiativeScheduleAddCmd
        Parameters:
        initiativeId - The initiative ID of the initiative schedule.
      • setPriority

        public void setPriority(java.lang.Integer priority)
        Sets the priority of the initiative schedule.
        Specified by:
        setPriority in interface CampaignInitiativeScheduleAddCmd
        Parameters:
        priority - The priority of the initiative schedule.
      • setStartDate

        public void setStartDate(java.sql.Timestamp startDate)
        Sets the start date of the initiative schedule.
        Specified by:
        setStartDate in interface CampaignInitiativeScheduleAddCmd
        Parameters:
        startDate - The start date of the initiative schedule.