public class RebaseChangeEdit extends java.lang.Object implements ChildCollection<ChangeResource,ChangeEditResource>, AcceptsPost<ChangeResource>
Modifier and Type | Class and Description |
---|---|
static class |
RebaseChangeEdit.Rebase |
Modifier and Type | Method and Description |
---|---|
RestView<ChangeResource> |
list()
Create a view to list the contents of the collection.
|
ChangeEditResource |
parse(ChangeResource parent,
IdString id)
Parse a path component into a resource handle.
|
RebaseChangeEdit.Rebase |
post(ChangeResource parent)
Handle creation of a child resource by POST on the collection.
|
DynamicMap<RestView<ChangeEditResource>> |
views()
Get the views that support this collection.
|
public DynamicMap<RestView<ChangeEditResource>> views()
RestCollection
Within a resource the views are accessed as RESOURCE/plugin~view
.
views
in interface RestCollection<ChangeResource,ChangeEditResource>
public RestView<ChangeResource> list()
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<ChangeResource,ChangeEditResource>
public ChangeEditResource parse(ChangeResource parent, IdString id)
RestCollection
parse
in interface RestCollection<ChangeResource,ChangeEditResource>
parent
- the handle to the collection.id
- string identifier supplied by the client. In a URL such as /changes/1234/abandon
this string is "1234"
.public RebaseChangeEdit.Rebase post(ChangeResource parent) throws RestApiException
AcceptsPost
post
in interface AcceptsPost<ChangeResource>
parent
- parent collection handle.RestApiException
- the view cannot be constructed.