Class MailChimpServiceImpl

    • Constructor Detail

      • MailChimpServiceImpl

        public MailChimpServiceImpl()
    • Method Detail

      • addToMCList

        public MailChimpResult addToMCList​(Profile profile,
                                           Action action)
        Description copied from interface: MailChimpService
        This function will add the current visitor to a MailChimp list.
        Specified by:
        addToMCList in interface MailChimpService
        Parameters:
        profile - the Unomi profile to add to the list @see org.apache.unomi.api.Profile
        action - the action used to call this method, to retrieve parameters @see org.apache.unomi.api.actions.Action
        Returns:
        true if the visitor is successfully added to a MailChimp list.
      • removeFromMCList

        public MailChimpResult removeFromMCList​(Profile profile,
                                                Action action)
        Description copied from interface: MailChimpService
        This function will remove the current visitor from a MailChimp list.
        Specified by:
        removeFromMCList in interface MailChimpService
        Parameters:
        profile - the Unomi profile to remove from the list @see org.apache.unomi.api.Profile
        action - the action used to call this method, to retrieve parameters @see org.apache.unomi.api.actions.Action
        Returns:
        true if the visitor is successfully removed to a MailChimp list.
      • unsubscribeFromMCList

        public MailChimpResult unsubscribeFromMCList​(Profile profile,
                                                     Action action)
        Description copied from interface: MailChimpService
        This function will unsbscribe the current visitor to a MailChimp list.
        Specified by:
        unsubscribeFromMCList in interface MailChimpService
        Parameters:
        profile - the Unomi profile to unsubscribe from the list @see org.apache.unomi.api.Profile
        action - the action used to call this method, to retrieve parameters @see org.apache.unomi.api.actions.Action
        Returns:
        true if the visitor is successfully unsbscribed to a MailChimp list.
      • updateMCProfileProperties

        public MailChimpResult updateMCProfileProperties​(Profile profile,
                                                         Action action)
        Description copied from interface: MailChimpService
        This function will update merge properties of MailChimp list.
        Specified by:
        updateMCProfileProperties in interface MailChimpService
        Parameters:
        profile - the Unomi profile to unsubscribe from the list @see org.apache.unomi.api.Profile
        action - the action used to call this method, to retrieve parameters @see org.apache.unomi.api.actions.Action
        Returns:
        true if the visitor is successfully unsbscribed to a MailChimp list.
      • setApiKey

        public void setApiKey​(String apiKey)
      • setUrlSubDomain

        public void setUrlSubDomain​(String urlSubDomain)
      • setListMergeFieldMapping

        public void setListMergeFieldMapping​(String listMergeFields)
      • setIsMergeFieldsActivate

        public void setIsMergeFieldsActivate​(Boolean isMergeFieldsActivate)