Package com.google.gerrit.server.project
Class CreateProject
- java.lang.Object
-
- com.google.gerrit.server.project.CreateProject
-
- All Implemented Interfaces:
RestModifyView<TopLevelResource,ProjectInput>
,RestView<TopLevelResource>
public class CreateProject extends Object implements RestModifyView<TopLevelResource,ProjectInput>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CreateProject.Factory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<ProjectInfo>
apply(TopLevelResource resource, ProjectInput input)
Process the view operation by altering the resource.ProjectState
createProject(CreateProjectArgs args)
-
-
-
Method Detail
-
apply
public Response<ProjectInfo> apply(TopLevelResource resource, ProjectInput input) throws BadRequestException, UnprocessableEntityException, ResourceConflictException, ResourceNotFoundException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<TopLevelResource,ProjectInput>
- Parameters:
resource
- resource to modify.input
- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResult
to avoid automatic conversion to JSON. - Throws:
BadRequestException
- the request was incorrectly specified and cannot be handled by this view.ResourceConflictException
- the resource state does not permit this view to make the changes at this time.UnprocessableEntityException
ResourceNotFoundException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
PermissionBackendException
-
createProject
public ProjectState createProject(CreateProjectArgs args) throws BadRequestException, ResourceConflictException, IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
BadRequestException
ResourceConflictException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-