Class RolesServiceImpl

    • 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 interface RolesService
      • 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 ... ---- The order of the returned list of roles isn't guaranteed.
        Specified by:
        list in interface RolesService
      • 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 interface RolesService
      • 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 interface RolesService