Class ConcreteShiftController
java.lang.Object
org.cswteams.ms3.control.concreteShift.ConcreteShiftController
- All Implemented Interfaces:
IConcreteShiftController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConcreteShiftById(long idAssegnazione) getSingleDoctorConcreteShifts(Long idPersona) substituteAssignedDoctor(ConcreteShift concreteShift, Doctor requestingDoctor, Doctor substituteDoctor) Substitute a doctor assigned to a concrete shift (i.e. is either on duty or on call for it) with a doctor that is on call for it.
-
Constructor Details
-
ConcreteShiftController
public ConcreteShiftController()
-
-
Method Details
-
getAllConcreteShifts
- Specified by:
getAllConcreteShiftsin interfaceIConcreteShiftController
-
createNewConcreteShift
public ConcreteShift createNewConcreteShift(RegisterConcreteShiftDTO dto) throws ConcreteShiftException - Specified by:
createNewConcreteShiftin interfaceIConcreteShiftController- Throws:
ConcreteShiftException
-
getSingleDoctorConcreteShifts
- Specified by:
getSingleDoctorConcreteShiftsin interfaceIConcreteShiftController
-
getConcreteShiftById
- Specified by:
getConcreteShiftByIdin interfaceIConcreteShiftController
-
substituteAssignedDoctor
public ConcreteShift substituteAssignedDoctor(ConcreteShift concreteShift, Doctor requestingDoctor, Doctor substituteDoctor) throws ConcreteShiftException Description copied from interface:IConcreteShiftControllerSubstitute a doctor assigned to a concrete shift (i.e. is either on duty or on call for it) with a doctor that is on call for it.- Specified by:
substituteAssignedDoctorin interfaceIConcreteShiftController- Parameters:
concreteShift- the concrete shift the substitution is referring torequestingDoctor- doctor requesting the substitutionsubstituteDoctor- on-call-doctor that will substituterequestingDoctor- Returns:
- object related to the concrete shift
- Throws:
ConcreteShiftException- if the requesting doctor is neither on duty nor on call, or if the substitute doctor is not on call for the concrete shift.
-