This is an automated email from the ASF dual-hosted git repository.

ramackri pushed a commit to branch ranger-kafka-dynamic-partition-plan
in repository https://gitbox.apache.org/repos/asf/ranger.git

commit 00376e34e92980bf3f9b462483aad2bd0925a9a4
Author: ramk <[email protected]>
AuthorDate: Mon Jun 22 13:24:28 2026 +0530

    Extract PrimaryCatalogRule from AuthToLocalRuleCatalog inner class.
    
    Move the auth_to_local catalog rule holder to a top-level package-private 
class without changing catalog composition behavior.
    
    Co-authored-by: Cursor <[email protected]>
---
 .../kafka/partition/AuthToLocalRuleCatalog.java    | 10 -------
 .../kafka/partition/PrimaryCatalogRule.java        | 31 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 10 deletions(-)

diff --git 
a/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/AuthToLocalRuleCatalog.java
 
b/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/AuthToLocalRuleCatalog.java
index afcba251e..9d1daa021 100644
--- 
a/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/AuthToLocalRuleCatalog.java
+++ 
b/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/AuthToLocalRuleCatalog.java
@@ -143,14 +143,4 @@ private static String buildGeneratedShortNameRule(String 
shortName) {
     private static String joinRuleLines(List<String> ruleLines) {
         return String.join("\n", ruleLines);
     }
-
-    static final class PrimaryCatalogRule {
-        private final String ruleLine;
-        private final String mappedShortName;
-
-        PrimaryCatalogRule(String ruleLine, String mappedShortName) {
-            this.ruleLine        = ruleLine;
-            this.mappedShortName = mappedShortName;
-        }
-    }
 }
diff --git 
a/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/PrimaryCatalogRule.java
 
b/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/PrimaryCatalogRule.java
new file mode 100644
index 000000000..43e6b32ef
--- /dev/null
+++ 
b/audit-server/audit-ingestor/src/main/java/org/apache/ranger/audit/producer/kafka/partition/PrimaryCatalogRule.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ranger.audit.producer.kafka.partition;
+
+/** One primary {@code auth_to_local} catalog rule and its mapped Kerberos 
short name. */
+public class PrimaryCatalogRule {
+    final String ruleLine;
+    final String mappedShortName;
+
+    PrimaryCatalogRule(String ruleLine, String mappedShortName) {
+        this.ruleLine        = ruleLine;
+        this.mappedShortName = mappedShortName;
+    }
+}

Reply via email to