public class StarredChanges extends java.lang.Object implements ChildCollection<AccountResource,AccountResource.StarredChange>
Modifier and Type | Class and Description |
---|---|
static class |
StarredChanges.Create |
static class |
StarredChanges.Delete |
static class |
StarredChanges.EmptyInput |
static class |
StarredChanges.Put |
Modifier and Type | Method and Description |
---|---|
RestView<AccountResource> |
list()
Create a view to list the contents of the collection.
|
AccountResource.StarredChange |
parse(AccountResource parent,
IdString id)
Parse a path component into a resource handle.
|
DynamicMap<RestView<AccountResource.StarredChange>> |
views()
Get the views that support this collection.
|
public AccountResource.StarredChange parse(AccountResource parent, IdString id) throws RestApiException, PermissionBackendException, java.io.IOException
RestCollection
parse
in interface RestCollection<AccountResource,AccountResource.StarredChange>
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"
.ResourceNotFoundException
- the object does not exist, or the caller is not permitted to
know if the resource exists.RestApiException
PermissionBackendException
java.io.IOException
public DynamicMap<RestView<AccountResource.StarredChange>> views()
RestCollection
Within a resource the views are accessed as RESOURCE/plugin~view
.
views
in interface RestCollection<AccountResource,AccountResource.StarredChange>
public RestView<AccountResource> list() throws ResourceNotFoundException
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<AccountResource,AccountResource.StarredChange>
ResourceNotFoundException
- if the collection doesn't support listing.