Class DefaultConfluenceAccessManager
- java.lang.Object
-
- com.atlassian.confluence.security.access.DefaultConfluenceAccessManager
-
- All Implemented Interfaces:
ConfluenceAccessManager
public class DefaultConfluenceAccessManager extends Object
MainConfluenceAccessManager
implementation, using simple global permissions checks.The backing
DefaultConfluenceAccessManager.AccessManagerPermissionChecker
must be a caching implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DefaultConfluenceAccessManager.AccessManagerPermissionChecker
Internal interface for consumption by access manager; an implementation detail, intentionally not a top-level interface.
-
Field Summary
Fields Modifier and Type Field Description protected PermissionCheckExemptions
permissionCheckExemptions
-
Constructor Summary
Constructors Constructor Description DefaultConfluenceAccessManager(DisabledUserManager disabledUserManager, PermissionCheckExemptions permissionCheckExemptions, Supplier<DefaultConfluenceAccessManager.AccessManagerPermissionChecker> globalPermissionChecker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NonNull AccessStatus
getUserAccessStatus(@Nullable com.atlassian.user.User user)
Returns theAccessStatus
that grants a user a level of access to Confluence.@NonNull AccessStatus
getUserAccessStatusNoExemptions(@Nullable com.atlassian.user.User user)
Returns theAccessStatus
that grants a user a level of access to Confluence.
-
-
-
Field Detail
-
permissionCheckExemptions
protected final PermissionCheckExemptions permissionCheckExemptions
-
-
Constructor Detail
-
DefaultConfluenceAccessManager
public DefaultConfluenceAccessManager(DisabledUserManager disabledUserManager, PermissionCheckExemptions permissionCheckExemptions, Supplier<DefaultConfluenceAccessManager.AccessManagerPermissionChecker> globalPermissionChecker)
- Since:
- 7.17
-
-
Method Detail
-
getUserAccessStatusNoExemptions
public @NonNull AccessStatus getUserAccessStatusNoExemptions(@Nullable com.atlassian.user.User user)
Description copied from interface:ConfluenceAccessManager
Returns theAccessStatus
that grants a user a level of access to Confluence. The same asConfluenceAccessManager.getUserAccessStatus(com.atlassian.user.User)
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 com.atlassian.user.User 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
-
-