public class DraftComments extends java.lang.Object implements ChildCollection<RevisionResource,DraftCommentResource>
Modifier and Type | Method and Description |
---|---|
ListRevisionDrafts |
list()
Create a view to list the contents of the collection.
|
DraftCommentResource |
parse(RevisionResource rev,
IdString id)
Parse a path component into a resource handle.
|
DynamicMap<RestView<DraftCommentResource>> |
views()
Get the views that support this collection.
|
public DynamicMap<RestView<DraftCommentResource>> views()
RestCollection
Within a resource the views are accessed as RESOURCE/plugin~view
.
views
in interface RestCollection<RevisionResource,DraftCommentResource>
public ListRevisionDrafts list() throws AuthException
RestCollection
The 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<RevisionResource,DraftCommentResource>
AuthException
- if the collection requires authentication.public DraftCommentResource parse(RevisionResource rev, IdString id) throws ResourceNotFoundException, AuthException
RestCollection
parse
in interface RestCollection<RevisionResource,DraftCommentResource>
rev
- 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.AuthException