jerryshao commented on code in PR #5023:
URL: https://github.com/apache/gravitino/pull/5023#discussion_r1776498393


##########
clients/client-java/src/main/java/org/apache/gravitino/client/GravitinoClient.java:
##########
@@ -369,6 +369,20 @@ public String[] listRoleNames() throws 
NoSuchMetalakeException {
     return getMetalake().listRoleNames();
   }
 
+  /**
+   * Lists the role names associated with a metadata object.
+   *
+   * @param object The object associated with the role.
+   * @return The role name list.
+   * @throws NoSuchMetalakeException If the Metalake with the given name does 
not exist.
+   * @throws NoSuchMetadataObjectException If the Metadata object with the 
given name does not
+   *     exist.
+   */
+  public String[] listRoleNamesByObject(MetadataObject object)
+      throws NoSuchMetalakeException, NoSuchMetadataObjectException {
+    return getMetalake().listRoleNamesByObject(object);

Review Comment:
   Do you honor authorization here? I don't see you honor the authorization 
here even you put the code here.



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to