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