jerryshao commented on code in PR #5023:
URL: https://github.com/apache/gravitino/pull/5023#discussion_r1776460186
##########
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:
It is better to design the APIs like tags, list roles from different entity
object.
--
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]