Class UserModel

java.lang.Object
com.espacogeek.geek.models.UserModel
All Implemented Interfaces:
Serializable

@Entity public class UserModel extends Object implements Serializable
See Also:
  • Constructor Details

    • UserModel

      public UserModel()
  • Method Details

    • getRoles

      public List<String> getRoles()
      Returns the user's roles as a normalized list for the GraphQL API. Parses the comma-separated userRole string, normalizing each entry to ensure it is prefixed with ROLE_. The internal ID_ claim used in JWT tokens is not exposed here.
      Returns:
      list of role strings (e.g. ["ROLE_user", "ROLE_admin"])