Class TermsValidationServiceImpl
java.lang.Object
ch.tocco.nice2.widget.impl.terms.TermsValidationServiceImpl
- All Implemented Interfaces:
TermsValidationService
-
Nested Class Summary
Nested classes/interfaces inherited from interface TermsValidationService
TermsValidationService.TermsValidation -
Constructor Summary
Constructors -
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, useTermsValidationService.validateTermsConfirmation(Entity, Entity, Collection)
-
Constructor Details
-
TermsValidationServiceImpl
-
-
Method Details
-
validateTermsConfirmation
public TermsValidationService.TermsValidation validateTermsConfirmation(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Stream<Entity> entities) Description copied from interface:TermsValidationServicehelper 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, useTermsValidationService.validateTermsConfirmation(Entity, Entity, Collection)- Specified by:
validateTermsConfirmationin interfaceTermsValidationService- 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
public TermsValidationService.TermsValidation validateTermsConfirmation(@Nullable Entity sourceEntity, @Nullable Entity widgetConfig, Collection<String> confirmations) - Specified by:
validateTermsConfirmationin interfaceTermsValidationService- 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
-