Class RolesServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.RolesServiceImpl
-
- All Implemented Interfaces:
Service
,RolesService
public class RolesServiceImpl extends ServiceImpl implements RolesService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.RolesService
RolesService.AddRequest, RolesService.AddResponse, RolesService.ListRequest, RolesService.ListResponse
-
-
Constructor Summary
Constructors Constructor Description RolesServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RolesService.AddRequest
add()
Create a new role.RolesService.ListRequest
list()
List roles.RoleService
roleService(String id)
Sub-resource locator method, returns individual role resource on which the remainder of the URI is dispatched.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
RolesServiceImpl
public RolesServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
add
public RolesService.AddRequest add()
Description copied from interface:RolesService
Create a new role. The role can be administrative or non-administrative and can have different permits. For example, to add the `MyRole` non-administrative role with permits to login and create virtual machines send a request like this (note that you have to pass permit id): [source] ---- POST /ovirt-engine/api/roles ---- With a request body like this: [source,xml] ----MyRole My custom role to create virtual machines false - Specified by:
add
in interfaceRolesService
-
list
public RolesService.ListRequest list()
Description copied from interface:RolesService
List roles. [source] ---- GET /ovirt-engine/api/roles ---- You will receive response in XML like this one: [source,xml] ----SuperUser Roles management administrator true false - Specified by:
list
in interfaceRolesService
-
roleService
public RoleService roleService(String id)
Description copied from interface:RolesService
Sub-resource locator method, returns individual role resource on which the remainder of the URI is dispatched.- Specified by:
roleService
in interfaceRolesService
-
service
public Service service(String path)
Description copied from interface:RolesService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceRolesService
-
-