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