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