Package app.YUP.model
Class User
java.lang.Object
app.YUP.model.User
- Direct Known Subclasses:
ExternalUser,InternalUser
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority> Returns a collection of granted authorities based on the user's role.
-
Constructor Details
-
User
public User()
-
-
Method Details
-
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
-