Package com.espacogeek.geek.models
Class UserModel
java.lang.Object
com.espacogeek.geek.models.UserModel
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UserModel
public UserModel()
-
-
Method Details
-
getRoles
Returns the user's roles as a normalized list for the GraphQL API. Parses the comma-separateduserRolestring, normalizing each entry to ensure it is prefixed withROLE_. The internalID_claim used in JWT tokens is not exposed here.- Returns:
- list of role strings (e.g.
["ROLE_user", "ROLE_admin"])
-