public class VnicProfilePermissions extends CollectionDecorator<Permission,Permissions,VnicProfilePermission>
VnicProfilePermissions providing relation and functional services
to Permissions
.
Constructor and Description |
---|
VnicProfilePermissions(HttpProxyBroker proxy,
VnicProfile parent) |
Modifier and Type | Method and Description |
---|---|
VnicProfilePermission |
add(Permission permission)
Adds Permission object.
|
VnicProfilePermission |
add(Permission permission,
String expect,
String correlationId)
Adds Permission object.
|
VnicProfilePermission |
get(UUID id)
Fetches VnicProfilePermission object by id.
|
List<VnicProfilePermission> |
list()
Lists VnicProfilePermission objects.
|
List<VnicProfilePermission> |
list(Integer max)
Lists VnicProfilePermission objects.
|
get
public VnicProfilePermissions(HttpProxyBroker proxy, VnicProfile parent)
proxy
- HttpProxyBrokerparent
- VnicProfilepublic List<VnicProfilePermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Permission,Permissions,VnicProfilePermission>
VnicProfilePermission
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 VnicProfilePermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Permission,Permissions,VnicProfilePermission>
id
- entity idVnicProfilePermission
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<VnicProfilePermission> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
VnicProfilePermission
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 VnicProfilePermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
Overload 1: add a new user level permission on the virtual network interface card profile in the system permission.user.id permission.role.id Overload 2: add a new group level permission on the virtual network interface card profile in the system permission.group.id permission.role.id
VnicProfilePermission
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 VnicProfilePermission 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 virtual network interface card profile in the system permission.user.id permission.role.id Overload 2: add a new group level permission on the virtual network interface card profile in the system permission.group.id permission.role.id
expect
- [201-created]
correlationId
- [any string]
VnicProfilePermission
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