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