- All Known Implementing Classes:
AttendanceManager
public interface AttendanceManagement
Defines the interface for managing attendance records.
Available methods:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttendanceRecord
(AttendanceRecord newRecord) Adds a new attendance record.Retrieves all attendance records.getAttendanceRecord
(String attendanceID) Retrieves an attendance record by its ID.getAttendanceRecord_List
(int employeeID) Retrieves all attendance records for a specific employee.getAttendanceRecord_List
(int employeeID, LocalDate periodStart, LocalDate periodEnd) Retrieves attendance records for a specific employee within a specified period.void
logTimeIn
(int employeeID, EmployeeRecord personalRecord) Logs the time in for an employee.void
logTimeOut
(String attendanceID) Logs the time out for an attendance record.void
updateAttendanceRecord
(AttendanceRecord updatedRecord) Updates an existing attendance record.
-
Method Details
-
logTimeIn
Logs the time in for an employee.- Parameters:
employeeID
- the ID of the employeepersonalRecord
- the personal record of the employee- Throws:
AttendanceException
- if an error occurs during logging time in
-
logTimeOut
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
Adds a new attendance record.- Parameters:
newRecord
- the new attendance record to add
-
updateAttendanceRecord
Updates an existing attendance record.- Parameters:
updatedRecord
- the updated attendance record
-
getAttendanceRecord
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
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 employeeperiodStart
- the start date of the periodperiodEnd
- the end date of the period- Returns:
- a list of attendance records for the employee within the specified period
-