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.
|
getpublic 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>UserPermissionorg.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 idUserPermissionorg.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 idUserPermissionorg.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]
UserPermissionorg.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 tole permission for
the user on the data center
permission.role.id
permission.data_center.id
Overload 2:
add a new tole permission for
the user on the cluster
permission.role.id
permission.cluster.id
Overload 3:
add a new tole permission for
the user on the host
permission.role.id
permission.host.id
Overload 4:
add a new tole permission for
the user on the storage domain
permission.role.id
permission.storage_domain.id
Overload 5:
add a new tole permission for
the user on the vm
permission.role.id
permission.vm.id
Overload 6:
add a new tole permission for
the user on the vm pool
permission.role.id
permission.vmpool.id
Overload 7:
add a new tole permission for
the user on the template
permission.role.id
permission.template.id
UserPermissionorg.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 tole permission for
the user on the data center
permission.role.id
permission.data_center.id
Overload 2:
add a new tole permission for
the user on the cluster
permission.role.id
permission.cluster.id
Overload 3:
add a new tole permission for
the user on the host
permission.role.id
permission.host.id
Overload 4:
add a new tole permission for
the user on the storage domain
permission.role.id
permission.storage_domain.id
Overload 5:
add a new tole permission for
the user on the vm
permission.role.id
permission.vm.id
Overload 6:
add a new tole permission for
the user on the vm pool
permission.role.id
permission.vmpool.id
Overload 7:
add a new tole permission for
the user on the template
permission.role.id
permission.template.id
expect -
[201-created]
UserPermissionorg.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 tole permission for
the user on the data center
permission.role.id
permission.data_center.id
Overload 2:
add a new tole permission for
the user on the cluster
permission.role.id
permission.cluster.id
Overload 3:
add a new tole permission for
the user on the host
permission.role.id
permission.host.id
Overload 4:
add a new tole permission for
the user on the storage domain
permission.role.id
permission.storage_domain.id
Overload 5:
add a new tole permission for
the user on the vm
permission.role.id
permission.vm.id
Overload 6:
add a new tole permission for
the user on the vm pool
permission.role.id
permission.vmpool.id
Overload 7:
add a new tole permission for
the user on the template
permission.role.id
permission.template.id
expect -
[201-created]
correlationId -
[any string]
UserPermissionorg.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