com.ibm.commerce.tools.campaigns

Class CampaignInitiativeListDataBean

  • All Implemented Interfaces:
    com.ibm.commerce.beans.DataBean, com.ibm.commerce.beans.InputDataBean, com.ibm.commerce.beans.SmartDataBean, com.ibm.commerce.security.Delegator, com.ibm.commerce.security.Protectable, CampaignConstants, java.io.Serializable


    public class CampaignInitiativeListDataBean
    extends CampaignInitiativeListDataBeanBase
    implements CampaignConstants
    This class extends the SmartDataBeanImpl class to create the campaign initiative list data bean.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

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

      • CampaignInitiativeListDataBean

        public CampaignInitiativeListDataBean()
    • Method Detail

      • getInitiativeList

        public CampaignInitiativeDataBean[] getInitiativeList()
        Gets an array of CampaignInitiativeDataBean objects.
        Returns:
        An array of CampaignInitiativeDataBean objects.
      • getInitiativeListSize

        public int getInitiativeListSize()
        Gets the number of campaign initiatives in the list.
        Returns:
        The number of campaign initiatives in the list.
      • getLocalSearch

        public boolean getLocalSearch()
        Gets the value of the local search flag.
        Returns:
        True if search on current store only; false otherwise.
      • populate

        public void populate()
                      throws java.lang.Exception
        Populates the data bean that includes all the campaign initiatives found.
        Specified by:
        populate in interface com.ibm.commerce.beans.SmartDataBean
        Overrides:
        populate in class com.ibm.commerce.beans.SmartDataBeanImpl
        Throws:
        java.lang.Exception - Thrown whenever an exception is encountered.
      • setLocalSearch

        public void setLocalSearch(boolean newLocalSearch)
        Sets the local search flag, a true value will instruct the data bean to search for initiatives in the current store only; a false value will instruct the data bean to go up the store path and find all initiatives own by stores on the store path.
        Parameters:
        newLocalSearch - True if search on current store only; false otherwise.