Interface CustomerProvider<F extends FilteredAccounts>
- 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 TypeMethodDescriptionreadAccountsBySegments(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 candidateCustomerSegments whose matching accounts should be includedexcludeSegmentIds- The ids of candidateCustomerSegments whose matching accounts should be excluded from the include resultsaccountIds- The ids of candidateAccountscontext- Context information surrounding sandboxing and multitenant state- Returns:
- A map of segment ids to the accounts that match those segments
-