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