Interface AttendanceManagement

All Known Implementing Classes:
AttendanceManager

public interface AttendanceManagement
  • Method Details

    • logTimeIn

      void logTimeIn(int employeeID, EmployeeRecord personalRecord) throws AttendanceException
      Logs the time in for an employee.
      Parameters:
      employeeID - the ID of the employee
      personalRecord - the personal record of the employee
      Throws:
      AttendanceException - if an error occurs during logging time in
    • logTimeOut

      void logTimeOut(String attendanceID) throws AttendanceException
      Logs the time out for an attendance record.
      Parameters:
      attendanceID - the ID of the attendance record
      Throws:
      AttendanceException - if an error occurs during logging time out
    • addAttendanceRecord

      void addAttendanceRecord(AttendanceRecord newRecord)
      Adds a new attendance record.
      Parameters:
      newRecord - the new attendance record to add
    • updateAttendanceRecord

      void updateAttendanceRecord(AttendanceRecord updatedRecord)
      Updates an existing attendance record.
      Parameters:
      updatedRecord - the updated attendance record
    • getAttendanceRecord

      AttendanceRecord getAttendanceRecord(String attendanceID) throws AttendanceException
      Retrieves an attendance record by its ID.
      Parameters:
      attendanceID - the ID of the attendance record to retrieve
      Returns:
      the attendance record
      Throws:
      AttendanceException - if the attendance record is not found
    • getAttendanceRecord_List

      List<AttendanceRecord> getAttendanceRecord_List(int employeeID)
      Retrieves all attendance records for a specific employee.
      Parameters:
      employeeID - the ID of the employee
      Returns:
      a list of attendance records for the employee
    • getAllAttendanceRecords

      List<AttendanceRecord> getAllAttendanceRecords()
      Retrieves all attendance records.
      Returns:
      a list of all attendance records
    • getAttendanceRecord_List

      List<AttendanceRecord> getAttendanceRecord_List(int employeeID, LocalDate periodStart, LocalDate periodEnd)
      Retrieves attendance records for a specific employee within a specified period.
      Parameters:
      employeeID - the ID of the employee
      periodStart - the start date of the period
      periodEnd - the end date of the period
      Returns:
      a list of attendance records for the employee within the specified period