Package app.YUP.model

Class User

java.lang.Object
app.YUP.model.User
Direct Known Subclasses:
ExternalUser, InternalUser

@Entity public class User extends Object
This class represents a user in the application. It is annotated with JPA annotations to map it to a database table. It also implements the UserDetails interface from Spring Security to provide user authentication and authorization.
  • Constructor Details

    • User

      public User()
  • Method Details

    • getAuthorities

      public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      Returns a collection of granted authorities based on the user's role. This method is required by the UserDetails interface.
      Returns:
      a collection of granted authorities