Package com.google.gerrit.server.project
Class ProjectControl.ForProjectImpl
- java.lang.Object
-
- com.google.gerrit.server.permissions.PermissionBackend.AcceptsReviewDb<PermissionBackend.ForProject>
-
- com.google.gerrit.server.permissions.PermissionBackend.ForProject
-
- com.google.gerrit.server.project.ProjectControl.ForProjectImpl
-
- Enclosing class:
- ProjectControl
public class ProjectControl.ForProjectImpl extends PermissionBackend.ForProject
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.permissions.PermissionBackend.AcceptsReviewDb
db
-
-
Constructor Summary
Constructors Constructor Description ForProjectImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionBackend.ForChange
change(ChangeNotes notes)
PermissionBackend.ForChange
change(ChangeData cd)
void
check(ProjectPermission perm)
Verify scoped user canperm
, throwing if denied.PermissionBackend.ForRef
ref(String ref)
Set<ProjectPermission>
test(Collection<ProjectPermission> permSet)
FilterpermSet
to permissions scoped user might be able to perform.PermissionBackend.ForProject
user(CurrentUser user)
-
Methods inherited from class com.google.gerrit.server.permissions.PermissionBackend.ForProject
indexedChange, test, testCond, testOrFalse
-
Methods inherited from class com.google.gerrit.server.permissions.PermissionBackend.AcceptsReviewDb
database, database
-
-
-
-
Method Detail
-
user
public PermissionBackend.ForProject user(CurrentUser user)
- Specified by:
user
in classPermissionBackend.ForProject
- Returns:
- new instance rescoped to same project, but different
user
.
-
ref
public PermissionBackend.ForRef ref(String ref)
- Specified by:
ref
in classPermissionBackend.ForProject
- Returns:
- instance scoped for
ref
in this project.
-
change
public PermissionBackend.ForChange change(ChangeData cd)
- Overrides:
change
in classPermissionBackend.ForProject
- Returns:
- instance scoped for the change, and its destination ref and project.
-
change
public PermissionBackend.ForChange change(ChangeNotes notes)
- Overrides:
change
in classPermissionBackend.ForProject
- Returns:
- instance scoped for the change, and its destination ref and project.
-
check
public void check(ProjectPermission perm) throws AuthException, PermissionBackendException
Description copied from class:PermissionBackend.ForProject
Verify scoped user canperm
, throwing if denied.- Specified by:
check
in classPermissionBackend.ForProject
- Throws:
AuthException
PermissionBackendException
-
test
public Set<ProjectPermission> test(Collection<ProjectPermission> permSet) throws PermissionBackendException
Description copied from class:PermissionBackend.ForProject
FilterpermSet
to permissions scoped user might be able to perform.- Specified by:
test
in classPermissionBackend.ForProject
- Throws:
PermissionBackendException
-
-