Class DefaultAnonymousConsentFacade

    • Constructor Detail

      • DefaultAnonymousConsentFacade

        public DefaultAnonymousConsentFacade()
    • Method Detail

      • synchronizeAnonymousConsents

        public void synchronizeAnonymousConsents​(java.util.function.Supplier<java.util.List<AnonymousConsentData>> anonymousConsentReader,
                                                 java.util.function.Consumer<java.util.List<AnonymousConsentData>> anonymousConsentWriter)
        Description copied from interface: AnonymousConsentFacade
        Synchronizes the supplied list of anonymous consents with its current state and forwards the resulted list.
        Specified by:
        synchronizeAnonymousConsents in interface AnonymousConsentFacade
        Parameters:
        anonymousConsentReader - anonymous consent reader to supply the list of anonymous consents to synchronize
        anonymousConsentWriter - anonymous consent writer to consume the result of synchronization
      • checkLanguageChange

        protected void checkLanguageChange()
        Erase CONSENT_TEMPLATES from session on language change
      • updateAnonymousConsentsInSession

        protected void updateAnonymousConsentsInSession​(java.util.List<AnonymousConsentData> anonymousConsents)
      • publishConsentEvent

        protected void publishConsentEvent​(java.lang.String template,
                                           java.lang.String previousValue,
                                           java.lang.String currentValue,
                                           java.util.Map<java.lang.String,​java.lang.String> currentConsentMap)
      • populateAnonymousConsentsIntoSession

        protected java.util.Map<java.lang.String,​java.lang.String> populateAnonymousConsentsIntoSession​(java.util.List<AnonymousConsentData> anonymousConsents)
      • setConsentFacade

        public void setConsentFacade​(ConsentFacade consentFacade)
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • setStoreSessionFacade

        public void setStoreSessionFacade​(StoreSessionFacade storeSessionFacade)
      • getUserFacade

        protected UserFacade getUserFacade()
      • setUserFacade

        public void setUserFacade​(UserFacade userFacade)
      • getEventService

        protected EventService getEventService()
      • setEventService

        public void setEventService​(EventService eventService)