xunliu commented on code in PR #3946:
URL: https://github.com/apache/gravitino/pull/3946#discussion_r1665737550


##########
api/src/main/java/com/datastrato/gravitino/authorization/SecurableObjects.java:
##########
@@ -18,6 +20,19 @@ public class SecurableObjects {
 
   private static final Splitter DOT_SPLITTER = Splitter.on('.');
 
+  /**
+   * Create the securable object {@link SecurableObject} with the given object 
namespace.
+   *
+   * @param type The type of the object
+   * @param namespace The object
+   * @param privileges The privileges of the securable object
+   * @return The created securable object {@link SecurableObject}
+   */
+  public static SecurableObject ofNamespace(

Review Comment:
   Removed this function. currently, I don't use it.



##########
api/src/main/java/com/datastrato/gravitino/exceptions/NoSuchAuthorizationException.java:
##########
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2024 Datastrato Pvt Ltd.
+ * This software is licensed under the Apache License version 2.
+ */
+package com.datastrato.gravitino.exceptions;
+
+import com.google.errorprone.annotations.FormatMethod;
+import com.google.errorprone.annotations.FormatString;
+
+/** An exception thrown when an authorization is not found. */
+public class NoSuchAuthorizationException extends NotFoundException {

Review Comment:
   Removed.



-- 
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]

Reply via email to