public class GroupRoles extends CollectionDecorator<Role,Roles,GroupRole>
GroupRoles providing relation and functional services
to Roles.
| Constructor and Description |
|---|
GroupRoles(HttpProxyBroker proxy,
Group parent) |
| Modifier and Type | Method and Description |
|---|---|
GroupRole |
add(Role role)
Adds Role object.
|
GroupRole |
add(Role role,
String expect)
Adds Role object.
|
GroupRole |
add(Role role,
String expect,
String correlationId)
Adds Role object.
|
GroupRole |
get(UUID id)
Fetches GroupRole object by id.
|
GroupRole |
getById(String id)
Fetches GroupRole object by id.
|
List<GroupRole> |
list()
Lists GroupRole objects.
|
List<GroupRole> |
list(Integer max)
Lists GroupRole objects.
|
getpublic GroupRoles(HttpProxyBroker proxy, Group parent)
proxy - HttpProxyBrokerparent - Grouppublic List<GroupRole> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Role,Roles,GroupRole>GroupRoleorg.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 GroupRole get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get in class CollectionDecorator<Role,Roles,GroupRole>id - entity idGroupRoleorg.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 GroupRole getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Role,Roles,GroupRole>id - entity idGroupRoleorg.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<GroupRole> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max -
[max results]
GroupRoleorg.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 GroupRole add(Role role) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permit - Permit
permit.id|name
GroupRoleorg.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 GroupRole add(Role role, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permit - Permit
permit.id|name
expect -
[201-created]
GroupRoleorg.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 GroupRole add(Role role, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permit - Permit
permit.id|name
expect -
[201-created]
correlationId -
[any string]
GroupRoleorg.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