Module fr.univtours.examplanner
Class ManagerController
java.lang.Object
fr.univtours.examplanner.controllers.ManagerController
- All Implemented Interfaces:
BaseController<fr.univtours.examplanner.entities.dtos.ManagerDTO>
public class ManagerController
extends Object
implements BaseController<fr.univtours.examplanner.entities.dtos.ManagerDTO>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull fr.univtours.examplanner.entities.dtos.ManagerDTOCrée un surveillantvoiddelete(@NotNull fr.univtours.examplanner.entities.dtos.ManagerDTO entity) Supprime un surveillant@NotNull List<fr.univtours.examplanner.entities.dtos.ManagerDTO>getAll()Liste les surveillantsvoidsave(@NotNull fr.univtours.examplanner.entities.dtos.ManagerDTO entity) Modifie un surveillant
-
Constructor Details
-
ManagerController
public ManagerController()
-
-
Method Details
-
getAll
Liste les surveillants- Specified by:
getAllin interfaceBaseController<fr.univtours.examplanner.entities.dtos.ManagerDTO>- Returns:
- la liste des surveillants
-
create
@NotNull public @NotNull fr.univtours.examplanner.entities.dtos.ManagerDTO create(@NotNull @NotNull Civility civility, @NotNull @NotNull String lastName, @NotNull @NotNull String firstName) Crée un surveillant- Parameters:
civility- la civilité d'une personnelastName- le nom de famille du surveillantfirstName- le prénom du surveillant- Returns:
- le surveillant créé
-
save
public void save(@NotNull @NotNull fr.univtours.examplanner.entities.dtos.ManagerDTO entity) throws ControllerException Modifie un surveillant- Specified by:
savein interfaceBaseController<fr.univtours.examplanner.entities.dtos.ManagerDTO>- Parameters:
entity- le surveillant à modifier- Throws:
ControllerException
-
delete
public void delete(@NotNull @NotNull fr.univtours.examplanner.entities.dtos.ManagerDTO entity) throws ControllerException Supprime un surveillant- Specified by:
deletein interfaceBaseController<fr.univtours.examplanner.entities.dtos.ManagerDTO>- Parameters:
entity- le surveillant à supprimer- Throws:
ControllerException
-