Class ParallelEventActionServiceImpl
java.lang.Object
ch.tocco.nice2.optional.event.impl.actions.parallelevent.ParallelEventActionServiceImpl
- All Implemented Interfaces:
ParallelEventActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.event.impl.actions.parallelevent.ParallelEventActionService
ParallelEventActionService.ParallelEventBean
-
Constructor Summary
ConstructorDescriptionParallelEventActionServiceImpl
(RebindService rebindService, EntityExplorerActionSelectionService selectionService, EntityDefaultValueService defaultValueService, CommandExecutor executor, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
createParallelEvent
(EntityExplorerActionSelection selection, RebindValue[] rebindValues, ParallelEventActionService.ParallelEventBean copyData) creates a new event from rebindValues and relates the selection to it via relParallel_event the parent events of the selection are related via relParallel_parentloadParallelEvents
(EntityExplorerActionSelection selection) void
relateParallelEvent
(EntityExplorerActionSelection selection, String parallelEventKey, ParallelEventActionService.ParallelEventBean copyData) relates the selection to a selected event via relParallel_event the parent events of the selection are related via relParallel_parentvoid
removeParallelEvent
(EntityExplorerActionSelection selection, List<String> parallelEventsToRemove)
-
Constructor Details
-
ParallelEventActionServiceImpl
public ParallelEventActionServiceImpl(RebindService rebindService, EntityExplorerActionSelectionService selectionService, EntityDefaultValueService defaultValueService, CommandExecutor executor, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
createParallelEvent
public void createParallelEvent(EntityExplorerActionSelection selection, RebindValue[] rebindValues, ParallelEventActionService.ParallelEventBean copyData) Description copied from interface:ParallelEventActionService
creates a new event from rebindValues and relates the selection to it via relParallel_event the parent events of the selection are related via relParallel_parentif user has specified so, registrations and / or lecturer bookings with status booked or registered will be copied to the new event with a new status registrations and lecturers are only copied of none with the same user already exists
- Specified by:
createParallelEvent
in interfaceParallelEventActionService
- Parameters:
selection
- the selected eventsrebindValues
- the data for the new eventcopyData
- bean that contains whether to copy registrations or lecturer bookings and their status
-
relateParallelEvent
public void relateParallelEvent(EntityExplorerActionSelection selection, String parallelEventKey, ParallelEventActionService.ParallelEventBean copyData) Description copied from interface:ParallelEventActionService
relates the selection to a selected event via relParallel_event the parent events of the selection are related via relParallel_parentif user has specified so, registrations and / or lecturer bookings with status booked or registered will be copied to the selected event with a new status registrations and lecturers are only copied of none with the same user already exists
- Specified by:
relateParallelEvent
in interfaceParallelEventActionService
- Parameters:
selection
- the selected eventsparallelEventKey
- the key of the selected event as a stringcopyData
- bean that contains whether to copy registrations or lecturer bookings and their status
-
loadParallelEvents
- Specified by:
loadParallelEvents
in interfaceParallelEventActionService
-
removeParallelEvent
public void removeParallelEvent(EntityExplorerActionSelection selection, List<String> parallelEventsToRemove) - Specified by:
removeParallelEvent
in interfaceParallelEventActionService
-