Interface AnonymousConsentFacade
- All Known Implementing Classes:
DefaultAnonymousConsentFacade
public interface AnonymousConsentFacade
Facade interface providing an API for performing operations on consents of anonymous users.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsetPopulatingConsentsEnabled(boolean populatingConsentsEnabled) Enables populating consents flag in commerceservicesvoidsynchronizeAnonymousConsents(Supplier<List<AnonymousConsentData>> anonymousConsentReader, Consumer<List<AnonymousConsentData>> anonymousConsentWriter) Synchronizes the supplied list of anonymous consents with its current state and forwards the resulted list.
-
Method Details
-
synchronizeAnonymousConsents
void synchronizeAnonymousConsents(Supplier<List<AnonymousConsentData>> anonymousConsentReader, Consumer<List<AnonymousConsentData>> anonymousConsentWriter) Synchronizes the supplied list of anonymous consents with its current state and forwards the resulted list.- Parameters:
anonymousConsentReader- anonymous consent reader to supply the list of anonymous consents to synchronizeanonymousConsentWriter- anonymous consent writer to consume the result of synchronization
-
setPopulatingConsentsEnabled
default void setPopulatingConsentsEnabled(boolean populatingConsentsEnabled) Enables populating consents flag in commerceservices- Parameters:
populatingConsentsEnabled-
-