roryqi commented on code in PR #12096:
URL: https://github.com/apache/gravitino/pull/12096#discussion_r3626893815
##########
core/src/main/java/org/apache/gravitino/UserPrincipal.java:
##########
@@ -113,6 +124,27 @@ public List<UserGroup> getGroups() {
return groups;
}
+ /**
+ * Returns the roles the caller declared active for this request (role
assumption); {@link
+ * ActiveRoles#all()} when none was declared.
+ *
+ * @return the active-role declaration
+ */
+ public ActiveRoles getActiveRoles() {
Review Comment:
Do we need to override the hashCode and equals?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]