public class GroupTags extends CollectionDecorator<Tag,Tags,GroupTag>
GroupTags providing relation and functional services
to Tags
.
Constructor and Description |
---|
GroupTags(HttpProxyBroker proxy,
Group parent) |
Modifier and Type | Method and Description |
---|---|
GroupTag |
add(Tag tag)
Adds Tag object.
|
GroupTag |
add(Tag tag,
String expect)
Adds Tag object.
|
GroupTag |
add(Tag tag,
String expect,
String correlationId)
Adds Tag object.
|
GroupTag |
get(UUID id)
Fetches GroupTag object by id.
|
GroupTag |
getById(String id)
Fetches GroupTag object by id.
|
List<GroupTag> |
list()
Lists GroupTag objects.
|
List<GroupTag> |
list(Integer max)
Lists GroupTag objects.
|
get
public GroupTags(HttpProxyBroker proxy, Group parent)
proxy
- HttpProxyBrokerparent
- Grouppublic List<GroupTag> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<Tag,Tags,GroupTag>
GroupTag
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 GroupTag get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<Tag,Tags,GroupTag>
id
- entity idGroupTag
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 GroupTag getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<Tag,Tags,GroupTag>
id
- entity idGroupTag
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 GroupTag add(Tag tag) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
tag
- Tag
tag.id|name
GroupTag
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 GroupTag add(Tag tag, String expect) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
tag
- Tag
tag.id|name
expect
- [201-created]
GroupTag
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 GroupTag add(Tag tag, String expect, String correlationId) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
tag
- Tag
tag.id|name
expect
- [201-created]
correlationId
- [any string]
GroupTag
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<GroupTag> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
GroupTag
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