Search in sources :

Example 1 with SystemRole

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;
}
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