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,
String correlationId)
Adds Permit object.
|
UserRolePermit |
get(UUID id)
Fetches UserRolePermit object by id.
|
List<UserRolePermit> |
list()
Lists UserRolePermit objects.
|
List<UserRolePermit> |
list(Integer max)
Lists UserRolePermit objects.
|
get
public 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>
UserRolePermit
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 UserRolePermit get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Permit,Permits,UserRolePermit>
id
- entity idUserRolePermit
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<UserRolePermit> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
UserRolePermit
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 UserRolePermit add(Permit permit) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
permit
- Permit
permit.id|name
UserRolePermit
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 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]
UserRolePermit
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