Class User
java.lang.Object
domain.user.User
Class that defines what a User is.
Contains get and set methods for each parameter, and validating methods.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
User
Creates a new User with the given parameters. Validates all input before assigning.- Parameters:
userName- the username; must not be null or blankphoneNumber- the phone number; must be exactly 8 digitspassword- the hashed passwordeMail- the email address; must be a valid email format
-
-
Method Details
-
getUsername
-
getPhoneNumber
-
getEmail
-
getPassword
-
getID
public long getID()Returns the ID of this user.- Returns:
- the user ID
-
setId
-