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 SummaryNested Classes Modifier and Type Class Description static interfaceCreateProject.Factory
 - 
Method SummaryAll 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.ProjectStatecreateProject(CreateProjectArgs args)
 
- 
- 
- 
Method Detail- 
applypublic Response<ProjectInfo> apply(TopLevelResource resource, ProjectInput input) throws BadRequestException, UnprocessableEntityException, ResourceConflictException, ResourceNotFoundException, IOException, org.eclipse.jgit.errors.ConfigInvalidException, PermissionBackendException Description copied from interface:RestModifyViewProcess the view operation by altering the resource.- Specified by:
- applyin interface- RestModifyView<TopLevelResource,ProjectInput>
- Parameters:
- resource- resource to modify.
- input- input after parsing from request.
- Returns:
- result to return to the client. Use BinaryResultto 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
 
 - 
createProjectpublic ProjectState createProject(CreateProjectArgs args) throws BadRequestException, ResourceConflictException, IOException, org.eclipse.jgit.errors.ConfigInvalidException - Throws:
- BadRequestException
- ResourceConflictException
- IOException
- org.eclipse.jgit.errors.ConfigInvalidException
 
 
- 
 
-