Class DefaultConnectLogic
java.lang.Object
ch.tocco.nice2.optional.educationschedule.api.DefaultConnectLogic
- All Implemented Interfaces:
EducationalObjectiveConnectionLogic
@Component
public class DefaultConnectLogic
extends Object
implements EducationalObjectiveConnectionLogic
default logic used when connecting Educational_objectives and Reservations to each other
the following methods are defined as protected as to allow overwriting when wanting to adjust the logic in another module:
orderEducationalObjectives(EntityList)
orderReservations(EntityList)
connect(EntityList, EntityList)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
connect
(EntityList objectives, EntityList reservations) protected EntityList
orderEducationalObjectives
(EntityList objectives) protected EntityList
orderReservations
(EntityList reservations) void
run
(EntityList educationalObjectives, EntityList reservations) connect Educational_objectives and Reservation to each other
-
Constructor Details
-
DefaultConnectLogic
public DefaultConnectLogic()
-
-
Method Details
-
run
public void run(EntityList educationalObjectives, EntityList reservations) throws InterruptedException Description copied from interface:EducationalObjectiveConnectionLogic
connect Educational_objectives and Reservation to each other- Specified by:
run
in interfaceEducationalObjectiveConnectionLogic
- Parameters:
educationalObjectives
- a list of Educational_objectivesreservations
- a list of Reservations- Throws:
InterruptedException
-
orderEducationalObjectives
-
orderReservations
-
connect
- Throws:
InterruptedException
-