Class CopyDataTask
java.lang.Object
ch.tocco.nice2.optional.event.impl.tasks.parallelevent.CopyDataTask
- All Implemented Interfaces:
OptionalTask<Entity,
,Entity> PersistTask<Entity,
Entity>
- Direct Known Subclasses:
CopyDataTask.CopyLecturerBookingsTask
,CopyDataTask.CopyRegistrationsTask
abstract class that copies registrations or lecturer bookings to a event
registrations and lecturer bookings are taken from the events parallel events
entities are only copied if no entity with the same user already exists on the event
and their status is either booked or registered
contains the implementations for registrations and lecuturer bookings as static inner classes
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Entity parallelEvent, CommandContext commandContext) protected abstract String
protected abstract String
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
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
Entity> - Throws:
Exception
-
getSourceEntityName
-
getStatusEntityName
-