Interface User

All Superinterfaces:
Mappable, Model
All Known Implementing Classes:
Coordinator, Student, Supervisor

public interface User extends Model
A class that represents a user
  • Method Details

    • getID

      String getID()
      Gets the user ID of the user.
      Specified by:
      getID in interface Model
      Returns:
      the ID of the user.
    • getUserName

      String getUserName()
      Gets the username of the user
      Returns:
      the name of the user
    • getHashedPassword

      String getHashedPassword()
      Gets the hashed password of the user
      Returns:
      the hashed password of the user
    • setHashedPassword

      void setHashedPassword(String hashedPassword)
      Sets the hashed password of the user
      Parameters:
      hashedPassword - the hashed password of the user
    • getEmail

      String getEmail()
      Gets the email of the user
      Returns:
      the email of the user
    • checkUsername

      default boolean checkUsername(String username)
      The function to check if username is equal to the user's username regardless of case
      Parameters:
      username - the username to be checked
      Returns:
      true if the username is equal to the user's username regardless of case