Class CreateProject
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.CreateProject
-
- All Implemented Interfaces:
RestCollectionCreateView<TopLevelResource,ProjectResource,ProjectInput>
,RestCollectionView<TopLevelResource,ProjectResource,ProjectInput>
,RestView<ProjectResource>
public class CreateProject extends Object implements RestCollectionCreateView<TopLevelResource,ProjectResource,ProjectInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<ProjectInfo>
apply(TopLevelResource resource, IdString id, ProjectInput input)
Process the view operation by creating the resource.
-
-
-
Method Detail
-
apply
public Response<ProjectInfo> apply(TopLevelResource resource, IdString id, ProjectInput input) throws RestApiException, 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<TopLevelResource,ProjectResource,ProjectInput>
- 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:
RestApiException
- if the resource creation is rejectedIOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
-