All Known Implementing Classes:
ExternalCustomerProvider

public interface CustomerProvider<F extends FilteredAccounts>
Provider interfacing with a service or datastore providing customer entity details for the Subscription.
  • Method Summary

    Modifier and Type
    Method
    Description
    readAccountsBySegments(Set<String> includeSegmentIds, Set<String> excludeSegmentIds, Set<String> accountIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    Group the requested account ids by the requested segments that match those accounts.
  • Method Details

    • readAccountsBySegments

      F readAccountsBySegments(Set<String> includeSegmentIds, @Nullable Set<String> excludeSegmentIds, Set<String> accountIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      Group the requested account ids by the requested segments that match those accounts.
      Parameters:
      includeSegmentIds - The ids of candidate CustomerSegments whose matching accounts should be included
      excludeSegmentIds - The ids of candidate CustomerSegments whose matching accounts should be excluded from the include results
      accountIds - The ids of candidate Accounts
      context - Context information surrounding sandboxing and multitenant state
      Returns:
      A map of segment ids to the accounts that match those segments