Class CreateResult

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class CreateResult extends AbstractConsentIndexedStorageAction
Consent action to create a consent result representing the result of a consent flow. The result is added to the profile interceptor context for eventual storage by a storage service. The result of the consent flow is created from the current consents of the consent context.
Event:
EventIds.PROCEED_EVENT_ID
Precondition:
The current consents in the consent context must not be empty.
Postcondition:
A ConsentResult will be created representing the current consents and will be added to the ProfileInterceptorContext.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
  • Constructor Details

    • CreateResult

      public CreateResult()
  • Method Details

    • 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 AbstractConsentIndexedStorageAction
      Parameters:
      profileRequestContext - the current profile request context
      interceptorContext - the current profile interceptor context
      Returns:
      true iff execution should continue
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull ProfileInterceptorContext interceptorContext)
      Performs this profile interceptor action. Default implementation does nothing.
      Overrides:
      doExecute in class AbstractProfileInterceptorAction
      Parameters:
      profileRequestContext - the current profile request context
      interceptorContext - the current profile interceptor context