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 GroupBackend
groupBackend
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjectAccessInfo
apply(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:RestModifyView
Process the view operation by altering the resource.- Specified by:
apply
in interfaceRestModifyView<ProjectResource,ProjectAccessInput>
- 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:
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.ResourceNotFoundException
IOException
UnprocessableEntityException
com.google.gwtorm.server.OrmException
PermissionBackendException
-
-