public class Groups extends CollectionDecorator<Group,Groups,Group>
Groups providing relation and functional services
to Groups
.
Constructor and Description |
---|
Groups(HttpProxyBroker proxy) |
Modifier and Type | Method and Description |
---|---|
Group |
add(Group group)
Adds Group object.
|
Group |
add(Group group,
String correlationId)
Adds Group object.
|
Group |
get(UUID id)
Fetches Group object by id.
|
List<Group> |
list()
Lists Group objects.
|
List<Group> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists Group objects.
|
get
public Groups(HttpProxyBroker proxy)
proxy
- HttpProxyBrokerpublic List<Group> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Group,Groups,Group>
Group
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 Group get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Group,Groups,Group>
id
- entity idGroup
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<Group> list(String query, Boolean caseSensitive, Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
query
- [search query]
caseSensitive
- [true|false]
max
- [max results]
Group
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 Group add(Group group) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
group
- Group
group.name
Group
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 Group add(Group group, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
group
- Group
group.name
correlationId
- [any string]
Group
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