public interface PermissionAPI
PermissionException
Modifier and Type | Method and Description |
---|---|
PermissionChecker |
getChecker(com.atlassian.confluence.user.ConfluenceUser user,
Perm perm)
Returns a permission checker that caches the results.
|
boolean |
hasPermission(Requirement requirement,
com.atlassian.confluence.user.ConfluenceUser user,
Perm perm)
Checks whether the user has permissions on this requirement.
|
boolean |
hasPermission(String spaceKey,
com.atlassian.confluence.user.ConfluenceUser user,
Perm perm)
That one is even more honest, it just checks the permissions on the space.
|
boolean hasPermission(Requirement requirement, com.atlassian.confluence.user.ConfluenceUser user, Perm perm)
getChecker(ConfluenceUser, Perm)
.PermissionChecker getChecker(com.atlassian.confluence.user.ConfluenceUser user, Perm perm)
user
- the user for whom the permissions should be checkedperm
- the permission that should be checkedCopyright © 2021 Play SQL. All rights reserved.