resolveRole
public static Map<String,Role> resolveRole(String roleName,
String environmentContext,
Map<String,Role> roles)
throws GeneratorException
Resolve role inheritance.
As a result one or multiple roles are returned that reflect the inheritanceship.
File that are generated by both the sub and the super role are eliminated in the super role.
- Parameters:
roleName
- Role name - role may contain inheritance relations
environmentContext
- Context information.
roles
- All roles for the system
- Returns:
- Resolved role(s) without pending inheritance relations.
- Throws:
GeneratorException
- when role or any of it's inheritance relations is not found