public abstract static class PermissionBackend.ForRef
extends java.lang.Object
Constructor and Description |
---|
ForRef() |
Modifier and Type | Method and Description |
---|---|
abstract PermissionBackend.ForChange |
change(ChangeData cd)
Returns an instance scoped to change.
|
abstract PermissionBackend.ForChange |
change(ChangeNotes notes)
Returns an instance scoped to change.
|
abstract void |
check(RefPermission perm)
Verify scoped user can
perm , throwing if denied. |
abstract PermissionBackend.ForChange |
indexedChange(ChangeData cd,
ChangeNotes notes) |
abstract java.lang.String |
resourcePath()
Returns a fully qualified resource path that this instance is scoped to.
|
abstract java.util.Set<RefPermission> |
test(java.util.Collection<RefPermission> permSet)
Filter
permSet to permissions scoped user might be able to perform. |
boolean |
test(RefPermission perm) |
abstract BooleanCondition |
testCond(RefPermission perm) |
boolean |
testOrFalse(RefPermission perm)
Test if user may be able to perform the permission.
|
public abstract java.lang.String resourcePath()
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 java.util.Set<RefPermission> test(java.util.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 abstract BooleanCondition testCond(RefPermission perm)