Class SeminarStartValidator
java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntityValidator
ch.tocco.nice2.optional.seminar.impl.validator.SeminarStartValidator
- All Implemented Interfaces:
EntitiesValidator, EntityValidator
the action Begin/lift can only be used if there's no Seminar with the same unique_id and
with a valid_from date which is after the Seminar you want to start
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSeminarStartValidator(QueryBuilderFactory queryBuilderFactory, Context ctx, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(Entity sourceSeminar, EntityValidationResult validationResult) Validate the entity at hand.Methods inherited from class AbstractEntityValidator
addMyself, getNameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EntityValidator
validate
-
Field Details
-
SEMINAR
- See Also:
-
UNIQUE_ID_FIELD
- See Also:
-
VALID_FROM_FIELD
- See Also:
-
REL_SEMINAR_BASED_ON
- See Also:
-
REL_SEMINAR_IS_TEMPLATE
- See Also:
-
TEMPLATE_SEMINAR_STATUS
- See Also:
-
-
Constructor Details
-
SeminarStartValidator
public SeminarStartValidator(QueryBuilderFactory queryBuilderFactory, Context ctx, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
validate
public void validate(Entity sourceSeminar, EntityValidationResult validationResult) throws PersistException Description copied from interface:EntityValidatorValidate the entity at hand.- Parameters:
sourceSeminar- the entity to be validatedvalidationResult- the EntityValidationResult to write the result of the validation to.EntityValidationResultfor more details on how to construct the EntityValidationResult.- Throws:
PersistException
-