Search in sources :

Example 1 with DefaultRole

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;
}
Also used : SystemRole(io.gravitee.am.model.permissions.SystemRole) Role(io.gravitee.am.model.Role) NewRole(io.gravitee.am.service.model.NewRole) DefaultRole(io.gravitee.am.model.permissions.DefaultRole) UpdateRole(io.gravitee.am.service.model.UpdateRole)

Aggregations

Role (io.gravitee.am.model.Role)1 DefaultRole (io.gravitee.am.model.permissions.DefaultRole)1 SystemRole (io.gravitee.am.model.permissions.SystemRole)1 NewRole (io.gravitee.am.service.model.NewRole)1 UpdateRole (io.gravitee.am.service.model.UpdateRole)1