Package org.cswteams.ms3.control.shift
Class ShiftController
java.lang.Object
org.cswteams.ms3.control.shift.ShiftController
- All Implemented Interfaces:
IShiftController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateShift(@Valid ShiftDTOIn shift) Creates a new shiftRetrieves all the shiftsgetShiftsOfService(@Valid ShiftServiceNameDTOIn serviceName) Retrieves all the shifts relative to the service label
-
Constructor Details
-
ShiftController
public ShiftController()
-
-
Method Details
-
getAllShifts
Description copied from interface:IShiftControllerRetrieves all the shifts- Specified by:
getAllShiftsin interfaceIShiftController- Returns:
- A list of DTOs representing the shifts
-
getShiftsOfService
Description copied from interface:IShiftControllerRetrieves all the shifts relative to the service label- Specified by:
getShiftsOfServicein interfaceIShiftController- Returns:
- A list of DTOs representing the shifts searched
-
createShift
Description copied from interface:IShiftControllerCreates a new shift- Specified by:
createShiftin interfaceIShiftController- Parameters:
shift- A DTO with all the necessary information for creating the shift- Returns:
- A DTO representing the shift
-