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