Class EventDismissValidator

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntityValidator
ch.tocco.nice2.optional.event.impl.validator.EventDismissValidator
All Implemented Interfaces:
EntitiesValidator, EntityValidator

@ConditionalOnProperty(value="ch.tocco.nice2.optional.event.disableEventDismissValidator", havingValue="false", matchIfMissing=true) public class EventDismissValidator extends AbstractEntityValidator
The Event can only be set to the status "cancelled", if there aren't any lecturerbooking with status "booked" and registrations with other statuses listed in the Set statusNames.