xunliu commented on code in PR #3912:
URL: https://github.com/apache/gravitino/pull/3912#discussion_r1665541031
##########
integration-test/src/test/java/com/datastrato/gravitino/integration/test/authorization/ranger/RangerRef.java:
##########
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2023 Datastrato Pvt Ltd.
+ * This software is licensed under the Apache License version 2.
+ */
+package com.datastrato.gravitino.integration.test.authorization.ranger;
+
+import org.apache.ranger.plugin.util.SearchFilter;
+
+public class RangerRef {
+ // In the Ranger 2.4.0
+ //
security-admin/src/main/java/org/apache/ranger/service/RangerServiceDefService.java:L43
+ public static final String IMPLICIT_CONDITION_EXPRESSION_NAME =
"_expression";
+
+ // In the Ranger 2.4.0
+ //
security-admin/src/main/java/org/apache/ranger/common/RangerSearchUtil.java:L159
+ public static final String SEARCH_FILTER_SERVICE_NAME =
SearchFilter.SERVICE_NAME;
+ public static final String RESOURCE_DATABASE = "database"; // Hive resource
database name
+ public static final String RESOURCE_TABLE = "table"; // Hive resource table
name
+ public static final String RESOURCE_COLUMN = "column"; // Hive resource
column name
+ public static final String RESOURCE_PATH = "path"; // HDFS resource path name
+ public static final String SEARCH_FILTER_DATABASE =
+ SearchFilter.RESOURCE_PREFIX + RESOURCE_DATABASE;
+ public static final String SEARCH_FILTER_TABLE =
SearchFilter.RESOURCE_PREFIX + RESOURCE_TABLE;
+ public static final String SEARCH_FILTER_COLUMN =
SearchFilter.RESOURCE_PREFIX + RESOURCE_COLUMN;
+ public static final String SEARCH_FILTER_PATH = SearchFilter.RESOURCE_PREFIX
+ RESOURCE_PATH;
+ public static final String SERVICE_TYPE_HFDS = "hdfs"; // HDFS service type
Review Comment:
DONE.
--
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]