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 SummaryModifier 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.voidChanges the email of the user or worker.voidsetHashPassword(String hashPassword) Changes the hash password of the user or worker.voidsetRefreshToken(String refreshToken) Changes the refresh token of the user or worker.
- 
Method Details- 
getEmailString getEmail()Returns the email of the user or worker.- Returns:
- the email of the user or worker.
 
- 
setEmailChanges the email of the user or worker.- Parameters:
- email- new email
 
- 
getHashPasswordString getHashPassword()Returns the hash password of the user or worker.- Returns:
- the hash password of the user or worker.
 
- 
setHashPasswordChanges the hash password of the user or worker.- Parameters:
- hashPassword- new hash password
 
- 
getRefreshTokenString getRefreshToken()Returns the refresh token of the user or worker.- Returns:
- the refresh token of the user or worker.
 
- 
setRefreshTokenChanges the refresh token of the user or worker.- Parameters:
- refreshToken- new refresh token
 
 
-