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,
String correlationId)
Adds Permit object.
|
RolePermit |
get(UUID id)
Fetches RolePermit object by id.
|
List<RolePermit> |
list()
Lists RolePermit objects.
|
List<RolePermit> |
list(Integer max)
Lists RolePermit objects.
|
get
public 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>
RolePermit
org.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 idRolePermit
org.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]
RolePermit
org.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
RolePermit
org.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]
RolePermit
org.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