use of io.gravitee.am.model.permissions.SystemRole in project gravitee-access-management by gravitee-io.
the class RoleServiceImpl method buildSystemRole.
private static Role buildSystemRole(String name, ReferenceType assignableType, Map<Permission, Set<Acl>> permissions) {
Role systemRole = buildRole(name, assignableType, ReferenceType.PLATFORM, Platform.DEFAULT, permissions);
systemRole.setSystem(true);
return systemRole;
}
Aggregations