Interface TermsValidationService

All Known Implementing Classes:
TermsValidationServiceImpl

public interface TermsValidationService
  • Method Details

    • validateTermsConfirmation

      TermsValidationService.TermsValidation validateTermsConfirmation(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Stream<Entity> entities)
      helper method meant to be used with rebinding, with searches through the rebound entities to find Terms_condition_confirmation useful with EntityBeanRebinder.RebindCollector.getEntities() for instance if you already know the terms a user accepted, use validateTermsConfirmation(Entity, Entity, Collection)
      Parameters:
      sourceEntity - source entity to load terms from
      widgetConfig - widget config to load terms from
      entities - a stream of entities to be searched for Terms_condition_confirmation
      Returns:
      a record containing all missing or unnecessary terms
    • validateTermsConfirmation

      TermsValidationService.TermsValidation validateTermsConfirmation(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Collection<String> confirmations)
      Parameters:
      sourceEntity - source entity to load terms from
      widgetConfig - widget config to load terms from
      confirmations - keys of accepted terms
      Returns:
      a record containing all missing or unnecessary terms
    • validateTermsConfirmationOrThrow

      void validateTermsConfirmationOrThrow(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Stream<Entity> entities)
      helper method for validating terms and conditions. Runs privileged.
      Parameters:
      sourceEntity - source entity to load terms from
      widgetConfig - widget confit to load terms from
      entities - a stream of entities to be searched for terms_condition_confirmation