Class ChangeEdits.Create
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.ChangeEdits.Create
-
- All Implemented Interfaces:
RestCollectionCreateView<ChangeResource,ChangeEditResource,ChangeEdits.Put.Input>
,RestCollectionView<ChangeResource,ChangeEditResource,ChangeEdits.Put.Input>
,RestView<ChangeEditResource>
- Enclosing class:
- ChangeEdits
public static class ChangeEdits.Create extends Object implements RestCollectionCreateView<ChangeResource,ChangeEditResource,ChangeEdits.Put.Input>
Create handler that is activated when collection element is accessed but doesn't exist, e. g. PUT request with a path was called but change edit wasn't created yet. Change edit is created and PUT handler is called.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response<?>
apply(ChangeResource resource, IdString id, ChangeEdits.Put.Input input)
Process the view operation by creating the resource.
-
-
-
Method Detail
-
apply
public Response<?> apply(ChangeResource resource, IdString id, ChangeEdits.Put.Input input) throws AuthException, ResourceConflictException, IOException, com.google.gwtorm.server.OrmException, PermissionBackendException, BadRequestException
Description copied from interface:RestCollectionCreateView
Process the view operation by creating the resource.- Specified by:
apply
in interfaceRestCollectionCreateView<ChangeResource,ChangeEditResource,ChangeEdits.Put.Input>
- 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:
AuthException
ResourceConflictException
IOException
com.google.gwtorm.server.OrmException
PermissionBackendException
BadRequestException
-
-