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
-
Constructor Summary
ConstructorDescriptionSeminarStartValidator
(QueryBuilderFactory queryBuilderFactory, Context ctx, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(Entity sourceSeminar, EntityValidationResult validationResult) Validate the entity at hand.Methods inherited from class ch.tocco.nice2.persist.core.api.validation.AbstractEntityValidator
addMyself, getName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.validation.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:EntityValidator
Validate the entity at hand.- Parameters:
sourceSeminar
- the entity to be validatedvalidationResult
- the EntityValidationResult to write the result of the validation to.EntityValidationResult
for more details on how to construct the EntityValidationResult.- Throws:
PersistException
-