Class AddMembers.CreateMember
- java.lang.Object
-
- com.google.gerrit.server.restapi.group.AddMembers.CreateMember
-
- All Implemented Interfaces:
RestCollectionCreateView<GroupResource,MemberResource,AddMembers.Input>,RestCollectionView<GroupResource,MemberResource,AddMembers.Input>,RestView<MemberResource>
- Enclosing class:
- AddMembers
public static class AddMembers.CreateMember extends Object implements RestCollectionCreateView<GroupResource,MemberResource,AddMembers.Input>
-
-
Constructor Summary
Constructors Constructor Description CreateMember(AddMembers put)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountInfoapply(GroupResource resource, IdString id, AddMembers.Input input)Process the view operation by creating the resource.
-
-
-
Constructor Detail
-
CreateMember
@Inject public CreateMember(AddMembers put)
-
-
Method Detail
-
apply
public AccountInfo apply(GroupResource resource, IdString id, AddMembers.Input input) throws AuthException, MethodNotAllowedException, ResourceNotFoundException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestCollectionCreateViewProcess the view operation by creating the resource.- Specified by:
applyin interfaceRestCollectionCreateView<GroupResource,MemberResource,AddMembers.Input>- Parameters:
resource- parent resource of the resource that should be createdinput- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
AuthExceptionMethodNotAllowedExceptionResourceNotFoundExceptionIOExceptionorg.eclipse.jgit.errors.ConfigInvalidExceptionPermissionBackendException
-
-