jeaf.SecurityRolesReport.xpt Maven / Gradle / Ivy
«IMPORT uml»
«IMPORT JMM»
«EXTENSION org::openarchitectureware::util::stdlib::io»
«EXTENSION java::GeneratorCommons»
«EXTENSION java::Naming»
«EXTENSION functions::SecurityRole»
«EXTENSION functions::RESTOperation»
«EXTENSION functions::NamedElement»
«EXTENSION functions::SystemProperties»
«DEFINE SecurityRolesReport FOR Model»
«FILE getSecurityRolesReportFileName() res_gen-»
# «getSecurityRolesReportName()»
«FOREACH this.getAllSecurityRoles().select(e|e.excludeFromDocumentation == false).sortBy(e|e.name) AS securityRole-»
## Role `«securityRole.name»`
«FOREACH securityRole.getAuthorizedServices().sortBy(e|e.name) AS service-»
### Service `«service.name»`
| Operation | REST Resource Path |
|------------------|--------------------|
«FOREACH securityRole.getAuthorizedOperations(service) AS operation -»
| `«operation.name»(«FOREACH operation.ownedParameter.select(e|e.isInputParameter()) AS param SEPARATOR ", "»«param.type.name»«ENDFOREACH»)` | «IF operation.isRESTOperation()»`«operation.asRESTOperation().getFullPath()»`«ENDIF» |
«ENDFOREACH»
«ENDFOREACH-»
«ENDFOREACH-»
«IF listUnsecuredRESTEndpoints() -»
## Unsecured REST Operations
| Service | Operation | REST Resource Path |
|------------------|---------------|--------------------|
«FOREACH this.getRESTOperationsWithoutSecurityRole() AS operation -»
| `«operation.owner.asNamedElement().name»` | `«operation.name»(«FOREACH operation.ownedParameter.select(e|e.isInputParameter()) AS param SEPARATOR ", "»«param.type.name»«ENDFOREACH»)` | `«operation.asRESTOperation().getFullPath()»` |
«ENDFOREACH-»
«ENDIF-»
«ENDFILE-»
«ENDDEFINE»