Interface UserType

All Known Implementing Classes:
User, Worker

public interface UserType
Interface that represents a user or a worker. Used to generalize the methods that can be used on both.
  • Method Details

    • getEmail

      String getEmail()
      Returns the email of the user or worker.
      Returns:
      the email of the user or worker.
    • setEmail

      void setEmail(String email)
      Changes the email of the user or worker.
      Parameters:
      email - new email
    • getHashPassword

      String getHashPassword()
      Returns the hash password of the user or worker.
      Returns:
      the hash password of the user or worker.
    • setHashPassword

      void setHashPassword(String hashPassword)
      Changes the hash password of the user or worker.
      Parameters:
      hashPassword - new hash password
    • getRefreshToken

      String getRefreshToken()
      Returns the refresh token of the user or worker.
      Returns:
      the refresh token of the user or worker.
    • setRefreshToken

      void setRefreshToken(String refreshToken)
      Changes the refresh token of the user or worker.
      Parameters:
      refreshToken - new refresh token