add condition case to generated Markdown headline
This commit is contained in:
parent
b9706ee4c3
commit
a840f910bb
@ -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