java.lang.Object
fr.univtours.examplanner.controllers.SlotController
- All Implemented Interfaces:
BaseController<fr.univtours.examplanner.entities.dtos.SlotDTO>
public class SlotController
extends Object
implements BaseController<fr.univtours.examplanner.entities.dtos.SlotDTO>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.univtours.examplanner.entities.dtos.SlotDTOcreate(@NotNull LocalDateTime day, @NotNull LocalDateTime hour, @NotNull Float durationFloat) Crée un horairevoiddelete(@NotNull fr.univtours.examplanner.entities.dtos.SlotDTO entity) Supprime un horaire@NotNull List<fr.univtours.examplanner.entities.dtos.SlotDTO>getAll()Liste les horairesvoidsave(@NotNull fr.univtours.examplanner.entities.dtos.SlotDTO entity) Modifie l'horaire
-
Constructor Details
-
SlotController
public SlotController()
-
-
Method Details
-
getAll
Liste les horaires- Specified by:
getAllin interfaceBaseController<fr.univtours.examplanner.entities.dtos.SlotDTO>- Returns:
- la liste des horaires
-
create
public fr.univtours.examplanner.entities.dtos.SlotDTO create(@NotNull @NotNull LocalDateTime day, @NotNull @NotNull LocalDateTime hour, @NotNull @NotNull Float durationFloat) Crée un horaire- Parameters:
day- le jour du créneauhour- l'heure du créneaudurationFloat- la durée du créneau- Returns:
- l'horaire créé
-
save
public void save(@NotNull @NotNull fr.univtours.examplanner.entities.dtos.SlotDTO entity) throws ControllerException Modifie l'horaire- Specified by:
savein interfaceBaseController<fr.univtours.examplanner.entities.dtos.SlotDTO>- Parameters:
entity- l'horaire à modifier- Throws:
ControllerException
-
delete
public void delete(@NotNull @NotNull fr.univtours.examplanner.entities.dtos.SlotDTO entity) throws ControllerException Supprime un horaire- Specified by:
deletein interfaceBaseController<fr.univtours.examplanner.entities.dtos.SlotDTO>- Parameters:
entity- l'horaire à modifier- Throws:
ControllerException
-