- All Known Implementing Classes:
EmployeeManager
public interface EmployeeManagement
Defines the interface for managing employee records.
Available methods:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEmployee
(EmployeeRecord newRecord) Adds a new employee record.void
addEmployee_CSV
(String employeeCSVPath) Adds employees from a CSV file.Retrieves a list of active employee records.int
getAddedEmployeeNumber
(String filePath) Retrieves the number of added employees from a CSV file.Retrieves a list of employee IDs.Retrieves a list of all employee records.getEmployeeRecord
(int employeeID) Retrieves an employee record by its ID.void
terminateEmployee
(EmployeeRecord selectedEmployee) Terminates an employee.void
updateEmployee
(EmployeeRecord updatedRecord) Updates an existing employee record.
-
Method Details
-
addEmployee
Adds a new employee record.- Parameters:
newRecord
- the new employee record to add- Throws:
EmployeeRecordsException
- if an error occurs while adding the employee record
-
updateEmployee
Updates an existing employee record.- Parameters:
updatedRecord
- the updated employee record- Throws:
EmployeeRecordsException
- if an error occurs while updating the employee record
-
terminateEmployee
Terminates an employee.- Parameters:
selectedEmployee
- the employee record to terminate- Throws:
EmployeeRecordsException
- if an error occurs while terminating the employee
-
getEmployeeRecord
Retrieves an employee record by its ID.- Parameters:
employeeID
- the ID of the employee- Returns:
- the employee record
-
getEmployeeList
List<EmployeeRecord> getEmployeeList()Retrieves a list of all employee records.- Returns:
- a list of employee records
-
getEmployeeIDList
Retrieves a list of employee IDs.- Returns:
- a list of employee IDs
-
getActiveEmployeeList
List<EmployeeRecord> getActiveEmployeeList()Retrieves a list of active employee records.- Returns:
- a list of active employee records
-
getAddedEmployeeNumber
Retrieves the number of added employees from a CSV file.- Parameters:
filePath
- the path to the CSV file- Returns:
- the number of added employees
-
addEmployee_CSV
Adds employees from a CSV file.- Parameters:
employeeCSVPath
- the path to the CSV file containing employee data
-