RBAC generator with conditional grants used for REPRESENTATIVE-Relation #33
@ -165,7 +165,7 @@ public class RbacViewMermaidFlowchartGenerator {
|
||||
Files.writeString(
|
||||
path,
|
||||
"""
|
||||
### rbac %{entityAlias}
|
||||
### rbac %{entityAlias} %{case}
|
||||
|
||||
This code generated was by RbacViewMermaidFlowchartGenerator, do not amend manually.
|
||||
|
||||
@ -174,7 +174,8 @@ public class RbacViewMermaidFlowchartGenerator {
|
||||
```
|
||||
"""
|
||||
.replace("%{entityAlias}", rbacDef.getRootEntityAlias().aliasName())
|
||||
.replace("%{flowchart}", flowchart.toString()),
|
||||
.replace("%{flowchart}", flowchart.toString())
|
||||
.replace("%{case}", forCase == null ? "" : (forCase.toString()) ),
|
||||
StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);
|
||||
System.out.println("Markdown-File: " + path.toAbsolutePath());
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
### rbac relation
|
||||
### rbac relation inCaseOf:REPRESENTATIVE
|
||||
|
||||
This code generated was by RbacViewMermaidFlowchartGenerator, do not amend manually.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
### rbac relation
|
||||
### rbac relation inOtherCases
|
||||
|
||||
This code generated was by RbacViewMermaidFlowchartGenerator, do not amend manually.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user