public class DataCenterNetworkPermissions extends CollectionDecorator<Permission,Permissions,DataCenterNetworkPermission>
DataCenterNetworkPermissions providing relation and functional services
to Permissions
.
Constructor and Description |
---|
DataCenterNetworkPermissions(HttpProxyBroker proxy,
DataCenterNetwork parent) |
Modifier and Type | Method and Description |
---|---|
DataCenterNetworkPermission |
add(Permission permission)
Adds Permission object.
|
DataCenterNetworkPermission |
get(UUID id)
Fetches DataCenterNetworkPermission object by id.
|
DataCenterNetworkPermission |
getById(String id)
Fetches DataCenterNetworkPermission object by id.
|
List<DataCenterNetworkPermission> |
list()
Lists DataCenterNetworkPermission objects.
|
List<DataCenterNetworkPermission> |
list(Integer max)
Lists DataCenterNetworkPermission objects.
|
get
public DataCenterNetworkPermissions(HttpProxyBroker proxy, DataCenterNetwork parent)
proxy
- HttpProxyBrokerparent
- DataCenterNetworkpublic List<DataCenterNetworkPermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Permission,Permissions,DataCenterNetworkPermission>
DataCenterNetworkPermission
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 DataCenterNetworkPermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Permission,Permissions,DataCenterNetworkPermission>
id
- entity idDataCenterNetworkPermission
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 DataCenterNetworkPermission getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Permission,Permissions,DataCenterNetworkPermission>
id
- entity idDataCenterNetworkPermission
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 DataCenterNetworkPermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission
- Permission
DataCenterNetworkPermission
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<DataCenterNetworkPermission> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
DataCenterNetworkPermission
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