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