Class DefaultEventReservationPropagationService
java.lang.Object
ch.tocco.nice2.optional.reservation.api.propagation.DefaultEventReservationPropagationService
- All Implemented Interfaces:
EventReservationPropagationService
@Component
public class DefaultEventReservationPropagationService
extends Object
implements EventReservationPropagationService
-
Constructor Summary
ConstructorDescriptionDefaultEventReservationPropagationService
(SecurityManager securityManager, Context context, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService defaultValueService) -
Method Summary
Modifier and TypeMethodDescriptioncreateReservationLecturerBookings
(List<Entity> reservations, Entity lecturerBooking) Makes sure that there exists a `Reservation_lecturer_booking` entity for each given `Reservation` entity and the given `Lecturer_booking` entity.createReservationRegistrations
(List<Entity> reservations, Entity registration) Makes sure that there exists a `Reservation_registration` entity for each given `Reservation` entity and the given `Registration` entity.void
setLecturerBookingStatus
(List<String> lecturerBookingStatus) void
setRegistrationCreateType
(Set<String> registrationCreateType) void
setRegistrationRemoveType
(Set<String> registrationRemoveType)
-
Constructor Details
-
DefaultEventReservationPropagationService
public DefaultEventReservationPropagationService(SecurityManager securityManager, Context context, QueryBuilderFactory queryBuilderFactory, EntityDefaultValueService defaultValueService)
-
-
Method Details
-
getRegistrationCreateStatus
- Specified by:
getRegistrationCreateStatus
in interfaceEventReservationPropagationService
-
getRegistrationRemoveStatus
- Specified by:
getRegistrationRemoveStatus
in interfaceEventReservationPropagationService
-
getRegistrationCreateType
- Specified by:
getRegistrationCreateType
in interfaceEventReservationPropagationService
- Returns:
- The Registration_types (unique_id) required to create a Reservation_registration. If null or empty then no specific Registration_type is required.
-
getRegistrationRemoveType
- Specified by:
getRegistrationRemoveType
in interfaceEventReservationPropagationService
- Returns:
- The Registration_types (unique_id) that remove the Reservation_registrations if set. If null or empty then no Registration_type deleted Reservation_registrations.
-
getLecturerBookingCreateStatus
- Specified by:
getLecturerBookingCreateStatus
in interfaceEventReservationPropagationService
-
createReservationRegistrations
Description copied from interface:EventReservationPropagationService
Makes sure that there exists a `Reservation_registration` entity for each given `Reservation` entity and the given `Registration` entity.- Specified by:
createReservationRegistrations
in interfaceEventReservationPropagationService
- Parameters:
reservations
- All the `Reservation` entities that should have a `Reservation_registration` entityregistration
- The `Registration` entity the `Reservation_registration` should be linked to- Returns:
- the created `Reservation_registration` entities.
-
createReservationLecturerBookings
public List<Entity> createReservationLecturerBookings(List<Entity> reservations, Entity lecturerBooking) Description copied from interface:EventReservationPropagationService
Makes sure that there exists a `Reservation_lecturer_booking` entity for each given `Reservation` entity and the given `Lecturer_booking` entity.- Specified by:
createReservationLecturerBookings
in interfaceEventReservationPropagationService
- Parameters:
reservations
- All the `Reservation` entities that should have a `Reservation_lecturer_booking` entitylecturerBooking
- The `Lecturer_booking` entity the `Reservation_lecturer_booking` should be linked to- Returns:
- the created `Reservation_lecturer_booking` entities.
-
setLecturerBookingStatus
-
setRegistrationCreateType
-
setRegistrationRemoveType
-