Class GradeScaleValidator
java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
ch.tocco.nice2.optional.qualification.impl.validator.GradeScaleValidator
- All Implemented Interfaces:
EntitiesValidator
ensures the grade scale is set correctly on evaluation nodes
-
Constructor Summary
ConstructorDescriptionGradeScaleValidator
(GradeComparisonHelper gradeComparisonHelper, QualificationService qualificationService) -
Method Summary
Methods inherited from class ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
addMyself, getName
-
Constructor Details
-
GradeScaleValidator
public GradeScaleValidator(GradeComparisonHelper gradeComparisonHelper, QualificationService qualificationService)
-
-
Method Details
-
validate
Description copied from interface:EntitiesValidator
Validate all entities (of one entity model) that where changed in a transaction- Parameters:
entities
- the entities to be validatedvalidationResults
- a map of EntityValidationResults, contains anEntityValidationResult
for each entity. SeeEntityValidationResult
for more details on how to use the EntityValidationResult
-