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.
|
Group |
getById(String id)
Fetches Group object by id.
|
List<Group> |
list()
Lists Group objects.
|
List<Group> |
list(String query,
Boolean caseSensitive,
Integer max)
Lists Group objects.
|
getpublic Groups(HttpProxyBroker proxy)
proxy - HttpProxyBrokerpublic List<Group> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list in class CollectionDecorator<Group,Groups,Group>Grouporg.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 idGrouporg.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 getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById in class CollectionDecorator<Group,Groups,Group>id - entity idGrouporg.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]
Grouporg.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
Grouporg.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]
Grouporg.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