public abstract static class PermissionBackend.ForProject extends PermissionBackend.AcceptsReviewDb<PermissionBackend.ForProject>
db
Constructor and Description |
---|
ForProject() |
Modifier and Type | Method and Description |
---|---|
PermissionBackend.ForChange |
change(ChangeData cd) |
PermissionBackend.ForChange |
change(ChangeNotes notes) |
abstract void |
check(ProjectPermission perm)
Verify scoped user can
perm , throwing if denied. |
PermissionBackend.ForChange |
indexedChange(ChangeData cd,
ChangeNotes notes) |
abstract PermissionBackend.ForRef |
ref(String ref) |
abstract Set<ProjectPermission> |
test(Collection<ProjectPermission> permSet)
Filter
permSet to permissions scoped user might be able to perform. |
boolean |
test(ProjectPermission perm) |
BooleanCondition |
testCond(ProjectPermission perm) |
boolean |
testOrFalse(ProjectPermission perm) |
abstract PermissionBackend.ForProject |
user(CurrentUser user) |
database, database
public abstract PermissionBackend.ForProject user(CurrentUser user)
user
.public abstract PermissionBackend.ForRef ref(String ref)
ref
in this project.public PermissionBackend.ForChange change(ChangeData cd)
public PermissionBackend.ForChange change(ChangeNotes notes)
public PermissionBackend.ForChange indexedChange(ChangeData cd, ChangeNotes notes)
public abstract void check(ProjectPermission perm) throws AuthException, PermissionBackendException
perm
, throwing if denied.public abstract Set<ProjectPermission> test(Collection<ProjectPermission> permSet) throws PermissionBackendException
permSet
to permissions scoped user might be able to perform.PermissionBackendException
public boolean test(ProjectPermission perm) throws PermissionBackendException
PermissionBackendException
public boolean testOrFalse(ProjectPermission perm)
public BooleanCondition testCond(ProjectPermission perm)