public class Votes extends Object implements ChildCollection<ReviewerResource,VoteResource>
| Modifier and Type | Class and Description |
|---|---|
static class |
Votes.List |
| Modifier and Type | Method and Description |
|---|---|
RestView<ReviewerResource> |
list()
Create a view to list the contents of the collection.
|
VoteResource |
parse(ReviewerResource reviewer,
IdString id)
Parse a path component into a resource handle.
|
DynamicMap<RestView<VoteResource>> |
views()
Get the views that support this collection.
|
public DynamicMap<RestView<VoteResource>> views()
RestCollectionWithin a resource the views are accessed as RESOURCE/plugin~view.
views in interface RestCollection<ReviewerResource,VoteResource>public RestView<ReviewerResource> list() throws AuthException
RestCollectionThe returned view should accept the parent type to scope the search, and may want to take a "q" parameter option to narrow the results.
list in interface RestCollection<ReviewerResource,VoteResource>AuthException - if the collection requires authentication.public VoteResource parse(ReviewerResource reviewer, IdString id) throws ResourceNotFoundException, AuthException, MethodNotAllowedException
RestCollectionparse in interface RestCollection<ReviewerResource,VoteResource>reviewer - the handle to the collection.id - string identifier supplied by the client. In a URL such as /changes/1234/abandon this string is "1234".ResourceNotFoundException - the object does not exist, or the caller is not permitted to
know if the resource exists.AuthExceptionMethodNotAllowedException