use of io.gravitee.am.model.permissions.DefaultRole in project gravitee-access-management by gravitee-io.
the class RoleServiceImpl method buildDefaultRole.
private static Role buildDefaultRole(String name, ReferenceType assignableType, String organizationId, Map<Permission, Set<Acl>> permissions) {
Role defaultRole = buildRole(name, assignableType, ReferenceType.ORGANIZATION, organizationId, permissions);
defaultRole.setDefaultRole(true);
return defaultRole;
}
Aggregations