Interface TermsValidationService
- All Known Implementing Classes:
TermsValidationServiceImpl
public interface TermsValidationService
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvalidateTermsConfirmation(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Collection<String> confirmations) 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 withEntityBeanRebinder.RebindCollector.getEntities()for instance if you already know the terms a user accepted, usevalidateTermsConfirmation(Entity, Entity, Collection)voidvalidateTermsConfirmationOrThrow(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Stream<Entity> entities) helper method for validating terms and conditions.
-
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 withEntityBeanRebinder.RebindCollector.getEntities()for instance if you already know the terms a user accepted, usevalidateTermsConfirmation(Entity, Entity, Collection)- Parameters:
sourceEntity- source entity to load terms fromwidgetConfig- widget config to load terms fromentities- 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 fromwidgetConfig- widget config to load terms fromconfirmations- 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 fromwidgetConfig- widget confit to load terms fromentities- a stream of entities to be searched for terms_condition_confirmation
-