Class CachingConfluenceAccessManager
- java.lang.Object
-
- com.atlassian.confluence.security.access.CachingConfluenceAccessManager
-
- All Implemented Interfaces:
ConfluenceAccessManager
public class CachingConfluenceAccessManager extends Object
AConfluenceAccessManager
implementation with thread-local caching.Note the delegate
DefaultConfluenceAccessManager
's backingDefaultConfluenceAccessManager.AccessManagerPermissionChecker
already provides caching of the global permissions that make up the access decision, so we don't have global caching here.
-
-
Field Summary
Fields Modifier and Type Field Description protected PermissionCheckExemptions
permissionCheckExemptions
-
Constructor Summary
Constructors Constructor Description CachingConfluenceAccessManager(ConfluenceAccessManager delegate, PermissionCheckExemptions permissionCheckExemptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull AccessStatus
getUserAccessStatus(@Nullable ConfluenceUser user)
Returns theAccessStatus
that grants a user a level of access to Confluence.@NonNull AccessStatus
getUserAccessStatusNoExemptions(@Nullable ConfluenceUser user)
Returns theAccessStatus
that grants a user a level of access to Confluence.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.security.access.ConfluenceAccessManager
getUserAccessStatus, getUserAccessStatusNoExemptions
-
-
-
-
Field Detail
-
permissionCheckExemptions
protected final PermissionCheckExemptions permissionCheckExemptions
-
-
Constructor Detail
-
CachingConfluenceAccessManager
public CachingConfluenceAccessManager(ConfluenceAccessManager delegate, PermissionCheckExemptions permissionCheckExemptions)
-
-
Method Detail
-
getUserAccessStatusNoExemptions
public @NonNull AccessStatus getUserAccessStatusNoExemptions(@Nullable ConfluenceUser user)
Description copied from interface:ConfluenceAccessManager
Returns theAccessStatus
that grants a user a level of access to Confluence. The same asConfluenceAccessManager.getUserAccessStatus(com.atlassian.confluence.user.ConfluenceUser)
but does not allow exemptions for super-users or other permission exemptions.- Parameters:
user
- the user to retrieve the access status for, ornull
for anonymous- Returns:
AccessStatus
-
getUserAccessStatus
public final @NonNull AccessStatus getUserAccessStatus(@Nullable ConfluenceUser user)
Description copied from interface:ConfluenceAccessManager
Returns theAccessStatus
that grants a user a level of access to Confluence.- Specified by:
getUserAccessStatus
in interfaceConfluenceAccessManager
- Parameters:
user
- the user to retrieve the access status for, ornull
for anonymous- Returns:
AccessStatus
-
-