Interface EmployeeManagement

All Known Implementing Classes:
EmployeeManager

public interface EmployeeManagement
  • Method Details

    • addEmployee

      void addEmployee(EmployeeRecord newRecord) throws EmployeeRecordsException
      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

      void updateEmployee(EmployeeRecord updatedRecord) throws EmployeeRecordsException
      Updates an existing employee record.
      Parameters:
      updatedRecord - the updated employee record
      Throws:
      EmployeeRecordsException - if an error occurs while updating the employee record
    • terminateEmployee

      void terminateEmployee(EmployeeRecord selectedEmployee) throws EmployeeRecordsException
      Terminates an employee.
      Parameters:
      selectedEmployee - the employee record to terminate
      Throws:
      EmployeeRecordsException - if an error occurs while terminating the employee
    • getEmployeeRecord

      EmployeeRecord getEmployeeRecord(int employeeID)
      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

      List<Integer> 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

      int getAddedEmployeeNumber(String filePath)
      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

      void addEmployee_CSV(String employeeCSVPath)
      Adds employees from a CSV file.
      Parameters:
      employeeCSVPath - the path to the CSV file containing employee data