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