public class CachingConfluenceAccessManager extends Object
ConfluenceAccessManager
implementation with thread-local caching.
Note the delegate DefaultConfluenceAccessManager
's backing
DefaultConfluenceAccessManager.AccessManagerPermissionChecker
already provides caching
of the global permissions that make up the access decision, so we don't have global caching here.
Modifier and Type | Field and Description |
---|---|
protected PermissionCheckExemptions |
permissionCheckExemptions |
Constructor and Description |
---|
CachingConfluenceAccessManager(ConfluenceAccessManager delegate,
PermissionCheckExemptions permissionCheckExemptions) |
Modifier and Type | Method and Description |
---|---|
@NonNull AccessStatus |
getUserAccessStatus(@Nullable com.atlassian.user.User user)
Returns the
AccessStatus that grants a user a level of access to Confluence. |
@NonNull AccessStatus |
getUserAccessStatusNoExemptions(@Nullable com.atlassian.user.User user)
Returns the
AccessStatus that grants a user a level of access to Confluence. |
protected final PermissionCheckExemptions permissionCheckExemptions
public CachingConfluenceAccessManager(ConfluenceAccessManager delegate, PermissionCheckExemptions permissionCheckExemptions)
public @NonNull AccessStatus getUserAccessStatusNoExemptions(@Nullable com.atlassian.user.User user)
ConfluenceAccessManager
AccessStatus
that grants a user a level of access to Confluence.
The same as ConfluenceAccessManager.getUserAccessStatus(com.atlassian.user.User)
but does not allow exemptions for super-users or other permission
exemptions.user
- the user to retrieve the access status for, or null
for anonymousAccessStatus
public final @NonNull AccessStatus getUserAccessStatus(@Nullable com.atlassian.user.User user)
ConfluenceAccessManager
AccessStatus
that grants a user a level of access to Confluence.getUserAccessStatus
in interface ConfluenceAccessManager
user
- the user to retrieve the access status for, or null
for anonymousAccessStatus
Copyright © 2003–2021 Atlassian. All rights reserved.