Class RoleServiceImpl
- java.lang.Object
-
- org.ovirt.engine.sdk4.internal.services.ServiceImpl
-
- org.ovirt.engine.sdk4.internal.services.RoleServiceImpl
-
- All Implemented Interfaces:
Service
,RoleService
public class RoleServiceImpl extends ServiceImpl implements RoleService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ovirt.engine.sdk4.services.RoleService
RoleService.GetRequest, RoleService.GetResponse, RoleService.RemoveRequest, RoleService.RemoveResponse, RoleService.UpdateRequest, RoleService.UpdateResponse
-
-
Constructor Summary
Constructors Constructor Description RoleServiceImpl(HttpConnection connection, String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoleService.GetRequest
get()
Get the role.PermitsService
permitsService()
Sub-resource locator method, returns permits service.RoleService.RemoveRequest
remove()
Removes the role.Service
service(String path)
Service locator method, returns individual service on which the URI is dispatched.String
toString()
RoleService.UpdateRequest
update()
Updates a role.-
Methods inherited from class org.ovirt.engine.sdk4.internal.services.ServiceImpl
checkAction, checkFault, getConnection, getPath, throwError
-
-
-
-
Constructor Detail
-
RoleServiceImpl
public RoleServiceImpl(HttpConnection connection, String path)
-
-
Method Detail
-
get
public RoleService.GetRequest get()
Description copied from interface:RoleService
Get the role. [source] ---- GET /ovirt-engine/api/roles/123 ---- You will receive XML response like this one: [source,xml] ----MyRole MyRole description true false - Specified by:
get
in interfaceRoleService
-
remove
public RoleService.RemoveRequest remove()
Description copied from interface:RoleService
Removes the role. To remove the role you need to know its id, then send request like this: [source] ---- DELETE /ovirt-engine/api/roles/{role_id} ----- Specified by:
remove
in interfaceRoleService
-
update
public RoleService.UpdateRequest update()
Description copied from interface:RoleService
Updates a role. You are allowed to update `name`, `description` and `administrative` attributes after role is created. Within this endpoint you can't add or remove roles permits you need to use <> that manages permits of role. For example to update role's `name`, `description` and `administrative` attributes send a request like this: [source] ---- PUT /ovirt-engine/api/roles/123 ---- With a request body like this: [source,xml] ---- MyNewRoleName My new description of the role true ----- Specified by:
update
in interfaceRoleService
-
permitsService
public PermitsService permitsService()
Description copied from interface:RoleService
Sub-resource locator method, returns permits service.- Specified by:
permitsService
in interfaceRoleService
-
service
public Service service(String path)
Description copied from interface:RoleService
Service locator method, returns individual service on which the URI is dispatched.- Specified by:
service
in interfaceRoleService
-
-