Package user.manager

Interface UserManagement

All Known Implementing Classes:
UserManager

public interface UserManagement
  • Method Details

    • createUser

      void createUser(UserCredentials userCredentials)
      Creates a new user record on the database.
      Parameters:
      userCredentials - the user credentials to be created
    • updateCredentials

      void updateCredentials(UserCredentials userCredential) throws UserRecordsException
      Updates an existing user record on the database.
      Parameters:
      userCredential - the user credentials to be updated
      Throws:
      UserRecordsException - if the user record does not exist
    • deleteUser

      void deleteUser(int employeeID) throws UserRecordsException
      Deletes a user record from the database.
      Parameters:
      employeeID - the ID of the user to be deleted
      Throws:
      UserRecordsException - if the user record does not exist
    • getAllUserRecords

      List<UserCredentials> getAllUserRecords()
      Retrieves all user records from the database.
      Returns:
      a list of all user records
    • getUserRecord

      UserCredentials getUserRecord(int employeeID)
      Retrieves a user record from the database.
      Parameters:
      employeeID - the ID of the user
      Returns:
      the user record