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