public class MembersCollection extends java.lang.Object implements ChildCollection<GroupResource,MemberResource>, AcceptsCreate<GroupResource>
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.server.group.AddMembers.PutMember |
create(GroupResource group,
IdString id)
Handle creation of a child resource.
|
RestView<GroupResource> |
list()
Create a view to list the contents of the collection.
|
MemberResource |
parse(GroupResource parent,
IdString id)
Parse a path component into a resource handle.
|
DynamicMap<RestView<MemberResource>> |
views()
Get the views that support this collection.
|
public RestView<GroupResource> list() throws ResourceNotFoundException, 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<GroupResource,MemberResource>
ResourceNotFoundException
- if the collection cannot be listed.AuthException
- if the collection requires authentication.public MemberResource parse(GroupResource parent, IdString id) throws MethodNotAllowedException, AuthException, ResourceNotFoundException, com.google.gwtorm.server.OrmException, java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
RestCollection
parse
in interface RestCollection<GroupResource,MemberResource>
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.MethodNotAllowedException
AuthException
com.google.gwtorm.server.OrmException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException
public com.google.gerrit.server.group.AddMembers.PutMember create(GroupResource group, IdString id)
AcceptsCreate
create
in interface AcceptsCreate<GroupResource>
group
- parent collection handle.id
- id of the resource being created.public DynamicMap<RestView<MemberResource>> views()
RestCollection
Within a resource the views are accessed as RESOURCE/plugin~view
.
views
in interface RestCollection<GroupResource,MemberResource>