Class AbsencesCommandsHandler
java.lang.Object
cz.zcu.fav.kiv.mjakubas.saf.command.handler.AbsencesCommandsHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
DeletesAbsence
entity by its id.void
handleGetAll
(@NotNull FileType fileType, @NotNull String filePath) Gets allAbsence
entities.void
handleGetByID
(Integer id, @NotNull FileType fileType, @NotNull String filePath) GetsAbsence
entity by id.void
handleGetByScheduleActionDateEntityID
(Integer id, @NotNull FileType fileType, @NotNull String filePath) GetsAbsence
entities byScheduleActionDate
entity id.void
handleGetByStudentEntityFirstAndLastName
(@NotNull String firstName, @NotNull String lastName, @NotNull FileType fileType, @NotNull String filePath) void
handleGetByStudentEntityID
(Integer id, @NotNull FileType fileType, @NotNull String filePath) void
handlePost
(@NotNull FileType fileType, @NotNull String filePath) void
handlePutByID
(Integer id, @NotNull FileType fileType, @NotNull String filePath) Puts modifiedAbsence
entity by its id.
-
Constructor Details
-
AbsencesCommandsHandler
-
-
Method Details
-
handleGetAll
public void handleGetAll(@NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException Gets allAbsence
entities.- Parameters:
fileType
- outputFileType
file typefilePath
- output file path- Throws:
CommandException
- if any exception occurs
-
handleGetByID
public void handleGetByID(Integer id, @NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException GetsAbsence
entity by id.- Parameters:
id
- entity idfileType
- outputFileType
file typefilePath
- output file path- Throws:
CommandException
- if any exception occurs
-
handleGetByStudentEntityID
public void handleGetByStudentEntityID(Integer id, @NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException - Parameters:
id
-Student
entity idfileType
- outputFileType
file typefilePath
- output file path- Throws:
CommandException
- if any exception occurs
-
handleGetByStudentEntityFirstAndLastName
public void handleGetByStudentEntityFirstAndLastName(@NotNull @NotNull String firstName, @NotNull @NotNull String lastName, @NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException - Parameters:
firstName
-Student
first namelastName
-Student
last namefileType
- outputFileType
file typefilePath
- output file path- Throws:
CommandException
- if any exception occurs
-
handleGetByScheduleActionDateEntityID
public void handleGetByScheduleActionDateEntityID(Integer id, @NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException GetsAbsence
entities byScheduleActionDate
entity id.- Parameters:
id
-ScheduleActionDate
entity idfileType
- outputFileType
file typefilePath
- output file path- Throws:
CommandException
- if any exception occurs
-
handlePost
public void handlePost(@NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException - Parameters:
fileType
-filePath
-- Throws:
CommandException
-
handlePutByID
public void handlePutByID(Integer id, @NotNull @NotNull FileType fileType, @NotNull @NotNull String filePath) throws CommandException Puts modifiedAbsence
entity by its id.- Parameters:
id
-Absence
entity idfileType
- outputFileType
file typefilePath
- output file path- Throws:
CommandException
- if any exception occurs
-
handleDeleteByID
DeletesAbsence
entity by its id.- Parameters:
id
-Absence
entity id- Throws:
CommandException
- if any exception occurs
-