com.ibm.commerce.marketing.commands.elements

Class BirthdayTriggerTaskCmdImpl

    • Field Detail

      • COPYRIGHT

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

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BirthdayTriggerTaskCmdImpl

        public BirthdayTriggerTaskCmdImpl()
    • Method Detail

      • validateParameters

        public java.util.List validateParameters(java.util.Map elementParameters)
        This method validates that all the required name value pairs have been set for the campaign element. It checks if the numberOfDays parameter is set.
        Specified by:
        validateParameters in interface MarketingCampaignElementTaskCmd
        Overrides:
        validateParameters in class MarketingCampaignElementTaskCmdImpl
        Parameters:
        elementParameters - The name value pairs for this element.
        Returns:
        This method returns a list of ApplicationError exceptions that contains any validation errors. The list may be empty or be null.
      • processBirthdayTrigger

        public void processBirthdayTrigger(java.lang.Integer storeId,
                                           java.lang.Integer elementId,
                                           java.lang.Integer activityId,
                                           java.lang.String targetMM,
                                           java.lang.String targetDD)
        This method finds all the users whose birthday is at the specific MMDD.
        Parameters:
        storeId - The identifier of the store in which to find the users in the segment.
        elementId - The identifier of the trigger element.
        activityId - The identifier of the marketing activity.
        targetMM - The identifier of the month of the birthday.
        targetDD - The identifier of the day of the birthday.
      • getUsersByBirthday

        public java.util.List getUsersByBirthday(java.lang.Integer storeId,
                                                 java.lang.String targetMM,
                                                 java.lang.String targetDD)
        This method gets the member IDs and personalization IDs for customers whose birthday is at the month specified in the targetMM parameter, and the day specified in the targetDD parameter.
        Parameters:
        storeId - The unique ID of the store.
        targetMM - The string for the specific month in MM format.
        targetDD - The string for the specific day in DD format.
        Returns:
        This method returns the list with the customer information. Every element in the list is a child-list; in the child-list, the 1st element is the customer's member ID, and the 2nd element is the customer's personalization ID.