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 CreateGroup
addOption(ListGroupsOption o)
CreateGroup
addOptions(Collection<ListGroupsOption> o)
GroupInfo
apply(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, com.google.gwtorm.server.OrmException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, ResourceNotFoundException, PermissionBackendException
Description copied from interface:RestCollectionCreateView
Process the view operation by creating the resource.- Specified by:
apply
in 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
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
BadRequestException
UnprocessableEntityException
ResourceConflictException
com.google.gwtorm.server.OrmException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
ResourceNotFoundException
PermissionBackendException
-
-