Class AdminPermissionCheckExemptions
- java.lang.Object
-
- com.atlassian.confluence.impl.security.AdminPermissionCheckExemptions
-
- All Implemented Interfaces:
PermissionCheckExemptions
public final class AdminPermissionCheckExemptions extends Object implements PermissionCheckExemptions
Allows members of the 'confluence-administrators' group to be exempt from permission checks, or if a temporary request-level exemption has been applied. Caches the result of the group membership check for the duration of the request.
-
-
Constructor Summary
Constructors Constructor Description AdminPermissionCheckExemptions(DisabledUserManager disabledUserManager, com.atlassian.crowd.embedded.api.CrowdService crowdService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isExempt(com.atlassian.user.User user)
Returns true if the user is exempt from permission checks, otherwise false.
-
-
-
Constructor Detail
-
AdminPermissionCheckExemptions
public AdminPermissionCheckExemptions(DisabledUserManager disabledUserManager, com.atlassian.crowd.embedded.api.CrowdService crowdService)
-
-
Method Detail
-
isExempt
public boolean isExempt(com.atlassian.user.User user)
Description copied from interface:PermissionCheckExemptions
Returns true if the user is exempt from permission checks, otherwise false. The result of calling this should not be cached, because permission exemptions can change within a single request.- Specified by:
isExempt
in interfacePermissionCheckExemptions
-
-