Interface ConfluenceAccessManager
-
- All Known Implementing Classes:
CachingConfluenceAccessManager
,DefaultConfluenceAccessManager
@Transactional(readOnly=true) public interface ConfluenceAccessManager
Determines the access status of a user, which grants them a level of access to Confluence. SeeAccessStatus
for more information.Note: this should be used instead of checking if a given user has
SpacePermission.USE_CONFLUENCE_PERMISSION
orSpacePermission.LIMITED_USE_CONFLUENCE_PERMISSION
permission.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getUserAccessStatus
@NonNull AccessStatus getUserAccessStatus(@Nullable com.atlassian.user.User user)
Returns theAccessStatus
that grants a user a level of access to Confluence.- Parameters:
user
- the user to retrieve the access status for, ornull
for anonymous- Returns:
AccessStatus
-
getUserAccessStatusNoExemptions
@NonNull AccessStatus getUserAccessStatusNoExemptions(@Nullable com.atlassian.user.User user)
Returns theAccessStatus
that grants a user a level of access to Confluence. The same asgetUserAccessStatus(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
-
-