public class Fixes extends Object implements ChildCollection<RevisionResource,FixResource>
| Modifier and Type | Method and Description |
|---|---|
RestView<RevisionResource> |
list()
Create a view to list the contents of the collection.
|
FixResource |
parse(RevisionResource revisionResource,
IdString id)
Parse a path component into a resource handle.
|
DynamicMap<RestView<FixResource>> |
views()
Get the views that support this collection.
|
public RestView<RevisionResource> list() throws ResourceNotFoundException
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<RevisionResource,FixResource>ResourceNotFoundException - if the collection doesn't support listing.public FixResource parse(RevisionResource revisionResource, IdString id) throws ResourceNotFoundException
RestCollectionparse in interface RestCollection<RevisionResource,FixResource>revisionResource - 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.public DynamicMap<RestView<FixResource>> views()
RestCollectionWithin a resource the views are accessed as RESOURCE/plugin~view.
views in interface RestCollection<RevisionResource,FixResource>