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