public class VmPoolPermissions extends CollectionDecorator<Permission,Permissions,VmPoolPermission>
VmPoolPermissions providing relation and functional services
to Permissions.
| Constructor and Description |
|---|
VmPoolPermissions(HttpProxyBroker proxy,
VmPool parent) |
| Modifier and Type | Method and Description |
|---|---|
VmPoolPermission |
add(Permission permission)
Adds Permission object.
|
VmPoolPermission |
add(Permission permission,
String expect)
Adds Permission object.
|
VmPoolPermission |
add(Permission permission,
String expect,
String correlationId)
Adds Permission object.
|
VmPoolPermission |
get(UUID id)
Fetches VmPoolPermission object by id.
|
VmPoolPermission |
getById(String id)
Fetches VmPoolPermission object by id.
|
List<VmPoolPermission> |
list()
Lists VmPoolPermission objects.
|
List<VmPoolPermission> |
list(Integer max)
Lists VmPoolPermission objects.
|
getpublic VmPoolPermissions(HttpProxyBroker proxy, VmPool parent)
proxy - HttpProxyBrokerparent - VmPoolpublic List<VmPoolPermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Permission,Permissions,VmPoolPermission>VmPoolPermissionorg.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 VmPoolPermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Permission,Permissions,VmPoolPermission>id - entity idVmPoolPermissionorg.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 VmPoolPermission getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Permission,Permissions,VmPoolPermission>id - entity idVmPoolPermissionorg.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<VmPoolPermission> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
VmPoolPermissionorg.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 VmPoolPermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new user level
permission on the vm pool
permission.user.id
permission.role.id
Overload 2:
add a new group level
permission on the vm pool
permission.role.id
permission.group.id
VmPoolPermissionorg.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 VmPoolPermission add(Permission permission, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new user level
permission on the vm pool
permission.user.id
permission.role.id
Overload 2:
add a new group level
permission on the vm pool
permission.role.id
permission.group.id
expect -
[201-created]
VmPoolPermissionorg.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 VmPoolPermission add(Permission permission, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new user level
permission on the vm pool
permission.user.id
permission.role.id
Overload 2:
add a new group level
permission on the vm pool
permission.role.id
permission.group.id
expect -
[201-created]
correlationId -
[any string]
VmPoolPermissionorg.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