Class PopulateInlineEnrolmentContext

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

public class PopulateInlineEnrolmentContext extends AbstractProfileAction
Populate the InlineEnrolmentContext from the HTTP referer header in the HTTP request iff the registration query parameter contains 'inline'.
  • Field Details

  • Constructor Details

    • PopulateInlineEnrolmentContext

      public PopulateInlineEnrolmentContext()
      Constructor.
  • Method Details

    • setEnabled

      public void setEnabled(@Nonnull Predicate<ProfileRequestContext> predicate)
      Set if inline enrolment should be enabled.
      Parameters:
      predicate - the predicate to check if inline enrolment is enabled.
    • setEnabled

      public void setEnabled(boolean flag)
      Set if inline enrolment should be enabled.
      Parameters:
      flag - is inline enrolment enabled.
    • setInlineEnrolementContextCreationStrategy

      public void setInlineEnrolementContextCreationStrategy(@Nonnull Function<ProfileRequestContext,InlineEnrolmentContext> strategy)
      Set the strategy used to locate or create the InlineEnrolmentContext.
      Parameters:
      strategy - The strategy to set.
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
      Overrides:
      doExecute in class AbstractProfileAction