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.AcceptsReviewDbdb
 
- 
 - 
Constructor SummaryConstructors Constructor Description ForProjectImpl()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionBackend.ForChangechange(ChangeNotes notes)PermissionBackend.ForChangechange(ChangeData cd)voidcheck(ProjectPermission perm)Verify scoped user canperm, throwing if denied.PermissionBackend.ForRefref(String ref)Set<ProjectPermission>test(Collection<ProjectPermission> permSet)FilterpermSetto permissions scoped user might be able to perform.PermissionBackend.ForProjectuser(CurrentUser user)- 
Methods inherited from class com.google.gerrit.server.permissions.PermissionBackend.ForProjectindexedChange, test, testCond, testOrFalse
 - 
Methods inherited from class com.google.gerrit.server.permissions.PermissionBackend.AcceptsReviewDbdatabase, database
 
- 
 
- 
- 
- 
Method Detail- 
userpublic PermissionBackend.ForProject user(CurrentUser user) - Specified by:
- userin class- PermissionBackend.ForProject
- Returns:
- new instance rescoped to same project, but different user.
 
 - 
refpublic PermissionBackend.ForRef ref(String ref) - Specified by:
- refin class- PermissionBackend.ForProject
- Returns:
- instance scoped for refin this project.
 
 - 
changepublic PermissionBackend.ForChange change(ChangeData cd) - Overrides:
- changein class- PermissionBackend.ForProject
- Returns:
- instance scoped for the change, and its destination ref and project.
 
 - 
changepublic PermissionBackend.ForChange change(ChangeNotes notes) - Overrides:
- changein class- PermissionBackend.ForProject
- Returns:
- instance scoped for the change, and its destination ref and project.
 
 - 
checkpublic void check(ProjectPermission perm) throws AuthException, PermissionBackendException Description copied from class:PermissionBackend.ForProjectVerify scoped user canperm, throwing if denied.- Specified by:
- checkin class- PermissionBackend.ForProject
- Throws:
- AuthException
- PermissionBackendException
 
 - 
testpublic Set<ProjectPermission> test(Collection<ProjectPermission> permSet) throws PermissionBackendException Description copied from class:PermissionBackend.ForProjectFilterpermSetto permissions scoped user might be able to perform.- Specified by:
- testin class- PermissionBackend.ForProject
- Throws:
- PermissionBackendException
 
 
- 
 
-