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