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