Package data.service

Interface LeaveDataService

All Known Implementing Classes:
FileDataService

public interface LeaveDataService
Represents a service for handling leave data.
  • Method Details

    • getLeaveByLeaveID

      LeaveRecord getLeaveByLeaveID(String leaveID)
      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

      List<LeaveRecord> getLeaveRecords_ByEmployeeID(int employeeID)
      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

      List<LeaveRecord> getLeaveRecordsByDate(LocalDate requestDate)
      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

      void addLeaveRecord(LeaveRecord leaveRecord)
      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

      void updateLeaveRecord(LeaveRecord leaveRecord)
      Updates a leave record.
      Parameters:
      leaveRecord - The leave record to be updated.