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