roryqi commented on code in PR #14364:
URL: https://github.com/apache/gravitino/pull/14364#discussion_r4599088127
##########
core/src/main/java/org/apache/gravitino/policy/ObjectPolicyResolver.java:
##########
@@ -50,8 +56,11 @@
*
* <p>The resolver evaluates relation selectors, filters disabled policies,
and deduplicates
* repeated matches by policy entity ID while preserving contributing
metadata-object sources.
+ *
+ * <p>The reader methods expose direct tag assignments and unfiltered policy
bindings for
+ * authorization, which evaluates selectors after checking privileges and
active roles.
*/
-public class ObjectPolicyResolver {
+public class ObjectPolicyResolver implements TagPolicyReader {
Review Comment:
Why do we need to implement the interface `TagPolicyReader`? Why do we need
the interface `TagPolicyReader`. I don't think we would implement many
different tag policy reader. So I don't feel that we need an interface.
--
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]