public class DataCenterPermissions extends CollectionDecorator<Permission,Permissions,DataCenterPermission>
DataCenterPermissions providing relation and functional services
to Permissions.
| Constructor and Description |
|---|
DataCenterPermissions(HttpProxyBroker proxy,
DataCenter parent) |
| Modifier and Type | Method and Description |
|---|---|
DataCenterPermission |
add(Permission permission)
Adds Permission object.
|
DataCenterPermission |
add(Permission permission,
String expect)
Adds Permission object.
|
DataCenterPermission |
add(Permission permission,
String expect,
String correlationId)
Adds Permission object.
|
DataCenterPermission |
get(UUID id)
Fetches DataCenterPermission object by id.
|
DataCenterPermission |
getById(String id)
Fetches DataCenterPermission object by id.
|
List<DataCenterPermission> |
list()
Lists DataCenterPermission objects.
|
getpublic DataCenterPermissions(HttpProxyBroker proxy, DataCenter parent)
proxy - HttpProxyBrokerparent - DataCenterpublic List<DataCenterPermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Permission,Permissions,DataCenterPermission>DataCenterPermissionorg.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 DataCenterPermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Permission,Permissions,DataCenterPermission>id - entity idDataCenterPermissionorg.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 DataCenterPermission getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Permission,Permissions,DataCenterPermission>id - entity idDataCenterPermissionorg.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 DataCenterPermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new user level
permission on the data center
permission.user.id
permission.role.id
Overload 2:
add a new role permission on
the data center
permission.role.id
permission.group.id
DataCenterPermissionorg.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 DataCenterPermission 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 data center
permission.user.id
permission.role.id
Overload 2:
add a new role permission on
the data center
permission.role.id
permission.group.id
expect -
[201-created]
DataCenterPermissionorg.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 DataCenterPermission 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 data center
permission.user.id
permission.role.id
Overload 2:
add a new role permission on
the data center
permission.role.id
permission.group.id
expect -
[201-created]
correlationId -
[any string]
DataCenterPermissionorg.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