Class EntityValidationServiceImpl
java.lang.Object
ch.tocco.nice2.persist.core.impl.validation.EntityValidationServiceImpl
- All Implemented Interfaces:
EntityValidationService
@Component
public class EntityValidationServiceImpl
extends Object
implements EntityValidationService
-
Constructor Summary
ConstructorDescriptionEntityValidationServiceImpl
(CommandExecutor executor, FieldValidationService fieldValidationService) -
Method Summary
Modifier and TypeMethodDescriptionReturns a object that applies all configured asynchronous validators to a given entity.Returns a object that applies all configured validators to a given entity.void
setTaskModeContributions
(List<ValidationTaskModeContribution> taskModeContributions) void
setValidators
(List<EntitiesValidatorContribution> contributions)
-
Constructor Details
-
EntityValidationServiceImpl
public EntityValidationServiceImpl(CommandExecutor executor, FieldValidationService fieldValidationService)
-
-
Method Details
-
getValidation
Description copied from interface:EntityValidationService
Returns a object that applies all configured validators to a given entity. The validators are looked up using the `EntityModel` of the entity.- Specified by:
getValidation
in interfaceEntityValidationService
-
getAsyncValidation
Description copied from interface:EntityValidationService
Returns a object that applies all configured asynchronous validators to a given entity. The validators are looked up using the `EntityModel` of the entity.- Specified by:
getAsyncValidation
in interfaceEntityValidationService
-
setValidators
-
setTaskModeContributions
@Autowired public void setTaskModeContributions(List<ValidationTaskModeContribution> taskModeContributions)
-