Class User

java.lang.Object
web.sportflow.user.User
All Implemented Interfaces:
Serializable, org.springframework.security.core.userdetails.UserDetails

@Entity public class User extends Object implements org.springframework.security.core.userdetails.UserDetails
See Also:
  • Constructor Details

  • Method Details

    • getId

      public Long getId()
    • getFirstname

      public String getFirstname()
    • getLastname

      public String getLastname()
    • getEmail

      public String getEmail()
    • getPassword

      public String getPassword()
      Specified by:
      getPassword in interface org.springframework.security.core.userdetails.UserDetails
    • getWeight

      public Double getWeight()
    • getHeight

      public Double getHeight()
    • getSex

      public Sex getSex()
    • getBirthDate

      public LocalDate getBirthDate()
    • getLevel

      public PracticeLevel getLevel()
    • getSports

      public List<Sport> getSports()
    • getWorkouts

      public List<Workout> getWorkouts()
    • getGoals

      public List<Goal> getGoals()
    • getBadges

      public List<Badge> getBadges()
    • getRole

      public Role getRole()
    • getProfileImagePath

      public String getProfileImagePath()
    • setId

      public void setId(Long id)
    • setFirstname

      public void setFirstname(String firstname)
    • setLastname

      public void setLastname(String lastname)
    • setEmail

      public void setEmail(String email)
    • setPassword

      public void setPassword(String password)
    • setWeight

      public void setWeight(Double weight)
    • setHeight

      public void setHeight(Double height)
    • setSex

      public void setSex(Sex sex)
    • setBirthDate

      public void setBirthDate(LocalDate birthDate)
    • setLevel

      public void setLevel(PracticeLevel level)
    • setSports

      public void setSports(List<Sport> sports)
    • setRole

      public void setRole(Role role)
    • setProfileImagePath

      public void setProfileImagePath(String profileImagePath)
    • addSport

      public void addSport(Sport sport)
    • removeSport

      public void removeSport(Sport sport)
    • getUsername

      public String getUsername()
      Specified by:
      getUsername in interface org.springframework.security.core.userdetails.UserDetails
    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Specified by:
      getAuthorities in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonExpired

      public boolean isAccountNonExpired()
      Specified by:
      isAccountNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isAccountNonLocked

      public boolean isAccountNonLocked()
      Specified by:
      isAccountNonLocked in interface org.springframework.security.core.userdetails.UserDetails
    • isCredentialsNonExpired

      public boolean isCredentialsNonExpired()
      Specified by:
      isCredentialsNonExpired in interface org.springframework.security.core.userdetails.UserDetails
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.security.core.userdetails.UserDetails
    • toString

      public String toString()
      Overrides:
      toString in class Object