Class TestSubmitRule
- java.lang.Object
-
- com.google.gerrit.server.restapi.change.TestSubmitRule
-
- All Implemented Interfaces:
RestModifyView<RevisionResource,TestSubmitRuleInput>
,RestView<RevisionResource>
public class TestSubmitRule extends Object implements RestModifyView<RevisionResource,TestSubmitRuleInput>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TestSubmitRuleInfo>
apply(RevisionResource rsrc, TestSubmitRuleInput input)
Process the view operation by altering the resource.
-
-
-
Method Detail
-
apply
public List<TestSubmitRuleInfo> apply(RevisionResource rsrc, TestSubmitRuleInput input) throws AuthException, PermissionBackendException, BadRequestException
Description copied from interface:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<RevisionResource,TestSubmitRuleInput>
- Parameters:
rsrc
- 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:
AuthException
- the client is not permitted to access this view.BadRequestException
- the request was incorrectly specified and cannot be handled by this view.PermissionBackendException
-
-