Class CreateGroup
- java.lang.Object
-
- com.google.gerrit.server.restapi.group.CreateGroup
-
- All Implemented Interfaces:
RestCollectionCreateView<TopLevelResource,GroupResource,GroupInput>,RestCollectionView<TopLevelResource,GroupResource,GroupInput>,RestView<GroupResource>
public class CreateGroup extends Object implements RestCollectionCreateView<TopLevelResource,GroupResource,GroupInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateGroupaddOption(ListGroupsOption o)CreateGroupaddOptions(Collection<ListGroupsOption> o)GroupInfoapply(TopLevelResource resource, IdString id, GroupInput input)Process the view operation by creating the resource.
-
-
-
Method Detail
-
addOption
public CreateGroup addOption(ListGroupsOption o)
-
addOptions
public CreateGroup addOptions(Collection<ListGroupsOption> o)
-
apply
public GroupInfo apply(TopLevelResource resource, IdString id, GroupInput input) throws AuthException, BadRequestException, UnprocessableEntityException, ResourceConflictException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, ResourceNotFoundException, PermissionBackendException
Description copied from interface:RestCollectionCreateViewProcess the view operation by creating the resource.- Specified by:
applyin interfaceRestCollectionCreateView<TopLevelResource,GroupResource,GroupInput>- 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:
AuthExceptionBadRequestExceptionUnprocessableEntityExceptionResourceConflictExceptionIOExceptionorg.eclipse.jgit.errors.ConfigInvalidExceptionResourceNotFoundExceptionPermissionBackendException
-
-