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