Class EventRegistrationTask
java.lang.Object
ch.tocco.nice2.optional.event.api.tasks.eventregistration.EventRegistrationTask
- All Implemented Interfaces:
OptionalTask<Entity,
,Entity> PersistTask<Entity,
Entity>
gets the created Registration from the User, or creates one if none exists
sets relEvent, relUser, relRegistration_source and relRegistration_status on the registration
source is set to 'event_registration'
status is set to 'waiting_list' if too many Registrations exist and the Event is configured as such, 'registered' otherwise
-
Constructor Summary
ConstructorDescriptionEventRegistrationTask
(Entity event, Entity businessUnit, Map<String, String> params, EntityDefaultValueService entityDefaultValueService) -
Method Summary
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.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
EventRegistrationTask
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
Entity> - Throws:
Exception
-
setSource
-
setValuesOnRegistration
-