Package user.roles

Class ITAdmin


public class ITAdmin extends Employee
Represents an IT Admin in the system, responsible for managing user credentials and employee records.

Available methods:

  • Constructor Details

    • ITAdmin

      public ITAdmin(FileDataService dataService, int employeeID)
      Constructs an ITAdmin object.
      Parameters:
      dataService - The data service used for data manipulation.
      employeeID - The unique identifier of the IT Admin employee.
  • Method Details

    • getEmployeeIDList

      public List<Integer> getEmployeeIDList()
      Retrieves a list of employee IDs.
      Returns:
      A list of employee IDs.
    • getUserCredentials

      public UserCredentials getUserCredentials(int employeeID)
      Retrieves the user credentials for the specified employee.
      Parameters:
      employeeID - The ID of the employee.
      Returns:
      The user credentials for the specified employee.
    • getAllUserRecords

      public List<UserCredentials> getAllUserRecords()
      Retrieves a list of all user records.
      Returns:
      A list of all user records.
    • getEmployeeRecord

      public EmployeeRecord getEmployeeRecord(int employeeID)
      Retrieves the employee record for the specified employee.
      Parameters:
      employeeID - The ID of the employee.
      Returns:
      The employee record for the specified employee.
    • createUser

      public void createUser(UserCredentials userCredentials)
      Creates a new user with the given credentials.
      Parameters:
      userCredentials - The credentials of the new user.
    • updateCredentials

      public void updateCredentials(UserCredentials userCredential) throws UserRecordsException
      Updates the credentials of an existing user.
      Parameters:
      userCredential - The updated credentials.
      Throws:
      UserRecordsException - If an error occurs while updating the user credentials.
    • deleteUser

      public void deleteUser(int employeeID) throws UserRecordsException
      Deletes a user's credentials based on the employee ID.
      Parameters:
      employeeID - The ID of the employee whose credentials are to be deleted.
      Throws:
      UserRecordsException - If an error occurs while deleting the user credentials.