public class GroupPermissions extends CollectionDecorator<Permission,Permissions,GroupPermission>
GroupPermissions providing relation and functional services
to Permissions.
| Constructor and Description |
|---|
GroupPermissions(HttpProxyBroker proxy,
Group parent) |
| Modifier and Type | Method and Description |
|---|---|
GroupPermission |
add(Permission permission)
Adds Permission object.
|
GroupPermission |
add(Permission permission,
String expect)
Adds Permission object.
|
GroupPermission |
add(Permission permission,
String expect,
String correlationId)
Adds Permission object.
|
GroupPermission |
get(UUID id)
Fetches GroupPermission object by id.
|
GroupPermission |
getById(String id)
Fetches GroupPermission object by id.
|
List<GroupPermission> |
list()
Lists GroupPermission objects.
|
List<GroupPermission> |
list(Integer max)
Lists GroupPermission objects.
|
getpublic GroupPermissions(HttpProxyBroker proxy, Group parent)
proxy - HttpProxyBrokerparent - Grouppublic List<GroupPermission> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Permission,Permissions,GroupPermission>GroupPermissionorg.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 GroupPermission get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Permission,Permissions,GroupPermission>id - entity idGroupPermissionorg.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 GroupPermission getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Permission,Permissions,GroupPermission>id - entity idGroupPermissionorg.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<GroupPermission> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
GroupPermissionorg.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 GroupPermission add(Permission permission) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new permission on the
data center to the group in
the system
permission.role.id
permission.data_center.id
Overload 2:
add a new permission on the
cluster to the group in the
system
permission.role.id
permission.cluster.id
Overload 3:
add a new permission on the
host to the group in the
system
permission.role.id
permission.host.id
Overload 4:
add a new permission on the
storage domain to the group in
the system
permission.role.id
permission.storage_domain.id
Overload 5:
add a new permission on the vm
to the group in the system
permission.role.id
permission.vm.id
Overload 6:
add a new permission on the vm
pool to the group in the
system
permission.role.id
permission.vmpool.id
Overload 7:
add a new permission on the
template to the group in the
system
permission.role.id
permission.template.id
GroupPermissionorg.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 GroupPermission add(Permission permission, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new permission on the
data center to the group in
the system
permission.role.id
permission.data_center.id
Overload 2:
add a new permission on the
cluster to the group in the
system
permission.role.id
permission.cluster.id
Overload 3:
add a new permission on the
host to the group in the
system
permission.role.id
permission.host.id
Overload 4:
add a new permission on the
storage domain to the group in
the system
permission.role.id
permission.storage_domain.id
Overload 5:
add a new permission on the vm
to the group in the system
permission.role.id
permission.vm.id
Overload 6:
add a new permission on the vm
pool to the group in the
system
permission.role.id
permission.vmpool.id
Overload 7:
add a new permission on the
template to the group in the
system
permission.role.id
permission.template.id
expect -
[201-created]
GroupPermissionorg.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 GroupPermission add(Permission permission, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permission - Permission
Overload 1:
add a new permission on the
data center to the group in
the system
permission.role.id
permission.data_center.id
Overload 2:
add a new permission on the
cluster to the group in the
system
permission.role.id
permission.cluster.id
Overload 3:
add a new permission on the
host to the group in the
system
permission.role.id
permission.host.id
Overload 4:
add a new permission on the
storage domain to the group in
the system
permission.role.id
permission.storage_domain.id
Overload 5:
add a new permission on the vm
to the group in the system
permission.role.id
permission.vm.id
Overload 6:
add a new permission on the vm
pool to the group in the
system
permission.role.id
permission.vmpool.id
Overload 7:
add a new permission on the
template to the group in the
system
permission.role.id
permission.template.id
expect -
[201-created]
correlationId -
[any string]
GroupPermissionorg.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