Skip to content

Commit

Permalink
add topicOperation helper
Browse files Browse the repository at this point in the history
  • Loading branch information
KannarFr committed Apr 2, 2024
1 parent 494fb97 commit 7d4ede9
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ public static String namespaceFact(String tenant, String namespace) {
return namespaceFact(NamespaceName.get(tenant, namespace));
}

public static String topicOperation(TopicName topic, TopicOperation operation) {
return topicFact(topic) + "," + topicOperationFact(operation);
}

public static String topicOperationCheck(TopicName topic, TopicOperation operation) {
return "check if " + topicFact(topic) + "," + topicOperationFact(operation);
return "check if " + topicOperation(topic, operation);
}

public static String adminFact = "right(\"admin\")";
Expand Down

0 comments on commit 7d4ede9

Please sign in to comment.