Class AddSubgroups.CreateSubgroup
- java.lang.Object
-
- com.google.gerrit.server.restapi.group.AddSubgroups.CreateSubgroup
-
- All Implemented Interfaces:
RestCollectionCreateView<GroupResource,SubgroupResource,AddSubgroups.Input>
,RestCollectionView<GroupResource,SubgroupResource,AddSubgroups.Input>
,RestView<SubgroupResource>
- Enclosing class:
- AddSubgroups
public static class AddSubgroups.CreateSubgroup extends Object implements RestCollectionCreateView<GroupResource,SubgroupResource,AddSubgroups.Input>
-
-
Constructor Summary
Constructors Constructor Description CreateSubgroup(AddSubgroups addSubgroups)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupInfo
apply(GroupResource resource, IdString id, AddSubgroups.Input input)
Process the view operation by creating the resource.
-
-
-
Constructor Detail
-
CreateSubgroup
@Inject public CreateSubgroup(AddSubgroups addSubgroups)
-
-
Method Detail
-
apply
public GroupInfo apply(GroupResource resource, IdString id, AddSubgroups.Input input) throws AuthException, MethodNotAllowedException, ResourceNotFoundException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestCollectionCreateView
Process the view operation by creating the resource.- Specified by:
apply
in interfaceRestCollectionCreateView<GroupResource,SubgroupResource,AddSubgroups.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
BinaryResult
to avoid automatic conversion to JSON. - Throws:
AuthException
MethodNotAllowedException
ResourceNotFoundException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
-