- All Known Implementing Classes:
FileDataService
public interface LeaveDataService
Represents a service for handling leave data.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLeaveRecord
(LeaveRecord leaveRecord) Adds a new leave record.Retrieves all leave records.Retrieves all leave records.getLeaveByLeaveID
(String leaveID) Retrieves a leave record by its leave ID.getLeaveRecords_ByEmployeeID
(int employeeID) Retrieves all leave records for a specific employee.getLeaveRecordsByDate
(LocalDate requestDate) Retrieves all leave records for a specific date.void
updateLeaveRecord
(LeaveRecord leaveRecord) Updates a leave record.
-
Method Details
-
getLeaveByLeaveID
Retrieves a leave record by its leave ID.- Parameters:
leaveID
- The ID of the leave record.- Returns:
- The leave record with the specified ID.
-
getLeaveRecords_ByEmployeeID
Retrieves all leave records for a specific employee.- Parameters:
employeeID
- The ID of the employee.- Returns:
- A list of all leave records for the specified employee.
-
getLeaveRecordsByDate
Retrieves all leave records for a specific date.- Parameters:
requestDate
- The date for which leave records are requested.- Returns:
- A list of all leave records for the specified date.
-
allLeaveRecords
List<LeaveRecord> allLeaveRecords()Retrieves all leave records.- Returns:
- A list of all leave records.
-
addLeaveRecord
Adds a new leave record.- Parameters:
leaveRecord
- The leave record to be added.
-
getAllLeaveRecords
List<LeaveRecord> getAllLeaveRecords()Retrieves all leave records.- Returns:
- A list of all leave records.
-
updateLeaveRecord
Updates a leave record.- Parameters:
leaveRecord
- The leave record to be updated.
-