Package it.univr.passportease.helper
Interface UserType
public interface UserType
Interface that represents a user or a worker. Used to generalize the methods that can be used on both.
-
Method Summary
Modifier and TypeMethodDescriptiongetEmail()
Returns the email of the user or worker.Returns the hash password of the user or worker.Returns the refresh token of the user or worker.void
Changes the email of the user or worker.void
setHashPassword
(String hashPassword) Changes the hash password of the user or worker.void
setRefreshToken
(String refreshToken) Changes the refresh token of the user or worker.
-
Method Details
-
getEmail
String getEmail()Returns the email of the user or worker.- Returns:
- the email of the user or worker.
-
setEmail
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
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
Changes the refresh token of the user or worker.- Parameters:
refreshToken
- new refresh token
-