public class DefaultConfluenceAccessManager extends Object
ConfluenceAccessManager
implementation, using simple global permissions checks.
The backing DefaultConfluenceAccessManager.AccessManagerPermissionChecker
must be a caching implementation.
Modifier and Type | Class and Description |
---|---|
static interface |
DefaultConfluenceAccessManager.AccessManagerPermissionChecker
Internal interface for consumption by access manager;
an implementation detail, intentionally not a top-level interface.
|
Modifier and Type | Field and Description |
---|---|
protected PermissionCheckExemptions |
permissionCheckExemptions |
Constructor and Description |
---|
DefaultConfluenceAccessManager(com.google.common.base.Supplier<UserAccessor> userAccessor,
PermissionCheckExemptions permissionCheckExemptions,
com.google.common.base.Supplier<DefaultConfluenceAccessManager.AccessManagerPermissionChecker> globalPermissionChecker) |
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 DefaultConfluenceAccessManager(com.google.common.base.Supplier<UserAccessor> userAccessor, PermissionCheckExemptions permissionCheckExemptions, com.google.common.base.Supplier<DefaultConfluenceAccessManager.AccessManagerPermissionChecker> globalPermissionChecker)
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.