public abstract static class PermissionBackend.ForRef extends PermissionBackend.AcceptsReviewDb<PermissionBackend.ForRef>
db
Constructor and Description |
---|
ForRef() |
Modifier and Type | Method and Description |
---|---|
abstract PermissionBackend.ForChange |
change(ChangeData cd) |
abstract PermissionBackend.ForChange |
change(ChangeNotes notes) |
abstract void |
check(RefPermission perm)
Verify scoped user can
perm , throwing if denied. |
abstract PermissionBackend.ForChange |
indexedChange(ChangeData cd,
ChangeNotes notes) |
abstract Set<RefPermission> |
test(Collection<RefPermission> permSet)
Filter
permSet to permissions scoped user might be able to perform. |
boolean |
test(RefPermission perm) |
BooleanCondition |
testCond(RefPermission perm) |
boolean |
testOrFalse(RefPermission perm)
Test if user may be able to perform the permission.
|
abstract PermissionBackend.ForRef |
user(CurrentUser user) |
database, database
public abstract PermissionBackend.ForRef user(CurrentUser user)
user
.public abstract PermissionBackend.ForChange change(ChangeData cd)
public abstract PermissionBackend.ForChange change(ChangeNotes notes)
public abstract PermissionBackend.ForChange indexedChange(ChangeData cd, ChangeNotes notes)
public abstract void check(RefPermission perm) throws AuthException, PermissionBackendException
perm
, throwing if denied.public abstract Set<RefPermission> test(Collection<RefPermission> permSet) throws PermissionBackendException
permSet
to permissions scoped user might be able to perform.PermissionBackendException
public boolean test(RefPermission perm) throws PermissionBackendException
PermissionBackendException
public boolean testOrFalse(RefPermission perm)
Similar to test(RefPermission)
except this method returns false
instead
of throwing an exception.
perm
- the permission to test.public BooleanCondition testCond(RefPermission perm)