public class UserPermissions extends CollectionDecorator<Permission,Permissions,UserPermission>
UserPermissions providing relation and functional services
to Permissions
.
Constructor and Description |
---|
UserPermissions(HttpProxyBroker proxy,
User parent) |
Modifier and Type | Method and Description |
---|---|
UserPermission |
add(Permission permission)
Adds Permission object.
|
UserPermission |
add(Permission permission,
String expect)
Adds Permission object.
|
UserPermission |
add(Permission permission,
String expect,
String correlationId)
Adds Permission object.
|
UserPermission |
get(UUID id)
Fetches UserPermission object by id.
|
UserPermission |
getById(String id)
Fetches UserPermission object by id.
|
List<UserPermission> |
list()
Lists UserPermission objects.
|
List<UserPermission> |
list(Integer max)
Lists UserPermission objects.
|
get
public UserPermissions(HttpProxyBroker proxy, User parent)
proxy
- HttpProxyBrokerparent
- Userpublic List<UserPermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Permission,Permissions,UserPermission>
UserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public UserPermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Permission,Permissions,UserPermission>
id
- entity idUserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public UserPermission getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Permission,Permissions,UserPermission>
id
- entity idUserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public UserPermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new role permission for the user on the data center permission.role.id|name permission.data_center.id Overload 2: add a new role permission for the user on the cluster permission.role.id|name permission.cluster.id Overload 3: add a new role permission for the user on the host permission.role.id|name permission.host.id Overload 4: add a new role permission for the user on the storage domain permission.role.id|name permission.storage_domain.id Overload 5: add a new role permission for the user on the vm permission.role.id|name permission.vm.id Overload 6: add a new role permission for the user on the vm pool permission.role.id|name permission.vmpool.id Overload 7: add a new role permission for the user on the template permission.role.id|name permission.template.id
UserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public UserPermission add(Permission permission, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new role permission for the user on the data center permission.role.id|name permission.data_center.id Overload 2: add a new role permission for the user on the cluster permission.role.id|name permission.cluster.id Overload 3: add a new role permission for the user on the host permission.role.id|name permission.host.id Overload 4: add a new role permission for the user on the storage domain permission.role.id|name permission.storage_domain.id Overload 5: add a new role permission for the user on the vm permission.role.id|name permission.vm.id Overload 6: add a new role permission for the user on the vm pool permission.role.id|name permission.vmpool.id Overload 7: add a new role permission for the user on the template permission.role.id|name permission.template.id
expect
- [201-created]
UserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public UserPermission add(Permission permission, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new role permission for the user on the data center permission.role.id|name permission.data_center.id Overload 2: add a new role permission for the user on the cluster permission.role.id|name permission.cluster.id Overload 3: add a new role permission for the user on the host permission.role.id|name permission.host.id Overload 4: add a new role permission for the user on the storage domain permission.role.id|name permission.storage_domain.id Overload 5: add a new role permission for the user on the vm permission.role.id|name permission.vm.id Overload 6: add a new role permission for the user on the vm pool permission.role.id|name permission.vmpool.id Overload 7: add a new role permission for the user on the template permission.role.id|name permission.template.id
expect
- [201-created]
correlationId
- [any string]
UserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<UserPermission> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
UserPermission
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0