Class AbstractConsentAction

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action
Direct Known Subclasses:
AbstractAttributeReleaseAction, AbstractConsentStorageAction, ExtractConsent, PopulateConsentContext

public abstract class AbstractConsentAction
extends AbstractProfileInterceptorAction
Base class for consent actions. Ensures that :
Event:
EventIds.INVALID_PROFILE_CTX
  • Field Details

  • Constructor Details

    • AbstractConsentAction

      public AbstractConsentAction()
      Constructor.
  • Method Details

    • getConsentContext

      @Nullable public ConsentContext getConsentContext()
      Get the consent context.
      Returns:
      the consent context
    • getConsentFlowDescriptor

      @Nullable public ConsentFlowDescriptor getConsentFlowDescriptor()
      Get the consent flow descriptor.
      Returns:
      the consent flow descriptor
    • setConsentContextLookupStrategy

      public void setConsentContextLookupStrategy​(@Nonnull Function<ProfileRequestContext,​ConsentContext> strategy)
      Set the consent context lookup strategy.
      Parameters:
      strategy - the consent context lookup strategy
    • doPreExecute

      protected boolean doPreExecute​(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull ProfileInterceptorContext interceptorContext)
      Performs this profile interceptor action's pre-execute step. Default implementation returns true.
      Overrides:
      doPreExecute in class AbstractProfileInterceptorAction
      Parameters:
      profileRequestContext - the current profile request context
      interceptorContext - the current profile interceptor context
      Returns:
      true iff execution should continue