Package com.cis.gorecipe.model
Class User
java.lang.Object
com.cis.gorecipe.model.User
This class allows GoRecipe to store user information, including login information and personal preferences (such as favorite ingredients, favorite recipes, etc.)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DateThe user's birthdayA list of restrictions on which recipes the user can cookprivate StringAn email address to allow communication with the userprivate Set<Ingredient>A list of ingredients which the user would like to cook withprivate StringThe user's first nameprivate LongThe primary key of the userprivate StringThe user's last nameprivate StringA salted and hashed string for authenticationprivate StringThe URL to the S3 storage for the user's profile pictureA list of recipes which the user would like to revisit in the futureprivate StringA unique string for user login -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
The primary key of the user -
profilePicture
The URL to the S3 storage for the user's profile picture -
username
A unique string for user login -
password
A salted and hashed string for authentication -
email
An email address to allow communication with the user -
firstName
The user's first name -
lastName
The user's last name -
birthDate
The user's birthday -
favoriteIngredients
A list of ingredients which the user would like to cook with -
savedRecipes
A list of recipes which the user would like to revisit in the future -
dietaryRestrictions
A list of restrictions on which recipes the user can cook
-
-
Constructor Details
-
User
public User()
-
-
Method Details