Package idatt2106.group3.backend.Model
Class User
- java.lang.Object
-
- idatt2106.group3.backend.Model.User
-
@Entity public class User extends java.lang.Object
Entity class for storing information about a user with userId as primary key
-
-
Constructor Summary
Constructors Constructor Description User()
User(java.lang.String forename, java.lang.String surname, java.lang.String email, java.time.LocalDate dateOfBirth, Difficulty trainingLevel, java.lang.String hash, java.lang.String salt, int rating, java.lang.String role, int absence, byte[] profilePicture)
User(java.lang.String forename, java.lang.String surname, java.lang.String email, java.time.LocalDate dateOfBirth, Difficulty trainingLevel, java.lang.String hash, java.lang.String salt, int rating, java.lang.String role, int absence, java.util.Set<Activity> activities, java.util.Set<Activity> organizedActivities, java.util.Set<Report> reportsSent, java.util.Set<Report> reportsReceived, java.util.Set<Message> messages, byte[] profilePicture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAbsence()
java.util.Set<Activity>
getActivities()
java.time.LocalDate
getDateOfBirth()
java.lang.String
getEmail()
java.lang.String
getForename()
java.lang.String
getHash()
java.util.Set<Message>
getMessages()
java.util.Set<Activity>
getOrganizedActivities()
byte[]
getProfilePicture()
int
getRating()
java.util.Set<Report>
getReportsReceived()
java.util.Set<Report>
getReportsSent()
java.lang.String
getRole()
java.lang.String
getSalt()
java.lang.String
getSurname()
Difficulty
getTrainingLevel()
long
getUserId()
void
setAbsence(int absence)
void
setActivities(java.util.Set<Activity> activities)
void
setDateOfBirth(java.time.LocalDate dateOfBirth)
void
setEmail(java.lang.String email)
void
setForename(java.lang.String forename)
void
setHash(java.lang.String hash)
void
setMessages(java.util.Set<Message> messages)
void
setOrganizedActivities(java.util.Set<Activity> organizedActivities)
void
setProfilePicture(byte[] profilePicture)
void
setRating(int rating)
void
setReportsReceived(java.util.Set<Report> reportsReceived)
void
setReportsSent(java.util.Set<Report> reportsSent)
void
setRole(java.lang.String role)
void
setSalt(java.lang.String salt)
void
setSurname(java.lang.String surname)
void
setTrainingLevel(Difficulty trainingLevel)
void
setUserId(long userId)
java.lang.String
toString()
-
-
-
Constructor Detail
-
User
public User(java.lang.String forename, java.lang.String surname, java.lang.String email, java.time.LocalDate dateOfBirth, Difficulty trainingLevel, java.lang.String hash, java.lang.String salt, int rating, java.lang.String role, int absence, java.util.Set<Activity> activities, java.util.Set<Activity> organizedActivities, java.util.Set<Report> reportsSent, java.util.Set<Report> reportsReceived, java.util.Set<Message> messages, byte[] profilePicture)
-
User
public User(java.lang.String forename, java.lang.String surname, java.lang.String email, java.time.LocalDate dateOfBirth, Difficulty trainingLevel, java.lang.String hash, java.lang.String salt, int rating, java.lang.String role, int absence, byte[] profilePicture)
-
User
public User()
-
-
Method Detail
-
getReportsSent
public java.util.Set<Report> getReportsSent()
-
setReportsSent
public void setReportsSent(java.util.Set<Report> reportsSent)
-
getReportsReceived
public java.util.Set<Report> getReportsReceived()
-
setReportsReceived
public void setReportsReceived(java.util.Set<Report> reportsReceived)
-
getMessages
public java.util.Set<Message> getMessages()
-
setMessages
public void setMessages(java.util.Set<Message> messages)
-
getActivities
public java.util.Set<Activity> getActivities()
-
setActivities
public void setActivities(java.util.Set<Activity> activities)
-
getOrganizedActivities
public java.util.Set<Activity> getOrganizedActivities()
-
setOrganizedActivities
public void setOrganizedActivities(java.util.Set<Activity> organizedActivities)
-
getUserId
public long getUserId()
-
setUserId
public void setUserId(long userId)
-
getForename
public java.lang.String getForename()
-
setForename
public void setForename(java.lang.String forename)
-
getSurname
public java.lang.String getSurname()
-
setSurname
public void setSurname(java.lang.String surname)
-
getEmail
public java.lang.String getEmail()
-
setEmail
public void setEmail(java.lang.String email)
-
getDateOfBirth
public java.time.LocalDate getDateOfBirth()
-
setDateOfBirth
public void setDateOfBirth(java.time.LocalDate dateOfBirth)
-
getHash
public java.lang.String getHash()
-
setHash
public void setHash(java.lang.String hash)
-
getSalt
public java.lang.String getSalt()
-
setSalt
public void setSalt(java.lang.String salt)
-
getRating
public int getRating()
-
setRating
public void setRating(int rating)
-
getRole
public java.lang.String getRole()
-
setRole
public void setRole(java.lang.String role)
-
getAbsence
public int getAbsence()
-
setAbsence
public void setAbsence(int absence)
-
getTrainingLevel
public Difficulty getTrainingLevel()
-
setTrainingLevel
public void setTrainingLevel(Difficulty trainingLevel)
-
getProfilePicture
public byte[] getProfilePicture()
-
setProfilePicture
public void setProfilePicture(byte[] profilePicture)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-