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:RestCollectionCreateViewProcess the view operation by creating the resource.- Specified by:
applyin 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
BinaryResultto avoid automatic conversion to JSON. - Throws:
RestApiException- if the resource creation is rejectedIOExceptionorg.eclipse.jgit.errors.ConfigInvalidExceptionPermissionBackendException
-
-