Class PutProject
- java.lang.Object
-
- com.google.gerrit.server.restapi.project.PutProject
-
- All Implemented Interfaces:
RestModifyView<ProjectResource,ProjectInput>
,RestView<ProjectResource>
public class PutProject extends Object implements RestModifyView<ProjectResource,ProjectInput>
-
-
Constructor Summary
Constructors Constructor Description PutProject()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<?>
apply(ProjectResource resource, ProjectInput input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public Response<?> apply(ProjectResource resource, ProjectInput input) throws ResourceConflictException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ProjectResource,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:
ResourceConflictException
- the resource state does not permit this view to make the changes at this time.
-
-