Package org.cswteams.ms3.control.shift
Interface IShiftController
- All Known Implementing Classes:
ShiftController
public interface IShiftController
This interface is responsible for managing at business level the shift definitions created by a configurator
-
Method Summary
Modifier and TypeMethodDescriptioncreateShift(ShiftDTOIn shift) Creates a new shiftRetrieves all the shiftsgetShiftsOfService(ShiftServiceNameDTOIn serviceName) Retrieves all the shifts relative to the service label
-
Method Details
-
getAllShifts
List<ShiftDTOOut> getAllShifts()Retrieves all the shifts- Returns:
- A list of DTOs representing the shifts
-
getShiftsOfService
Retrieves all the shifts relative to the service label- Returns:
- A list of DTOs representing the shifts searched
-
createShift
Creates a new shift- Parameters:
shift- A DTO with all the necessary information for creating the shift- Returns:
- A DTO representing the shift
-