Package com.google.gerrit.server.project
Class SetAccess
- java.lang.Object
-
- com.google.gerrit.server.project.SetAccess
-
- All Implemented Interfaces:
RestModifyView<ProjectResource,ProjectAccessInput>,RestView<ProjectResource>
public class SetAccess extends Object implements RestModifyView<ProjectResource,ProjectAccessInput>
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupBackendgroupBackend
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectAccessInfoapply(ProjectResource rsrc, ProjectAccessInput input)Process the view operation by altering the resource.
-
-
-
Field Detail
-
groupBackend
protected final GroupBackend groupBackend
-
-
Method Detail
-
apply
public ProjectAccessInfo apply(ProjectResource rsrc, ProjectAccessInput input) throws ResourceNotFoundException, ResourceConflictException, IOException, AuthException, BadRequestException, UnprocessableEntityException, com.google.gwtorm.server.OrmException, PermissionBackendException
Description copied from interface:RestModifyViewProcess the view operation by altering the resource.- Specified by:
applyin interfaceRestModifyView<ProjectResource,ProjectAccessInput>- Parameters:
rsrc- resource to modify.input- input after parsing from request.- Returns:
- result to return to the client. Use
BinaryResultto avoid automatic conversion to JSON. - Throws:
ResourceConflictException- the resource state does not permit this view to make the changes at this time.AuthException- the client is not permitted to access this view.BadRequestException- the request was incorrectly specified and cannot be handled by this view.ResourceNotFoundExceptionIOExceptionUnprocessableEntityExceptioncom.google.gwtorm.server.OrmExceptionPermissionBackendException
-
-