public interface AccessStatus
Note: if a user has one type of access, it does not necessarily imply they have others, for example, hasLicensedAccess()
and hasUnlicensedAuthenticatedAccess()
cannot both be true.
Modifier and Type | Method and Description |
---|---|
boolean |
canUseConfluence()
A user (logged in or anonymous) may have access to Confluence if they have been granted
SpacePermission.USE_CONFLUENCE_PERMISSION or SpacePermission.LIMITED_USE_CONFLUENCE_PERMISSION permission. |
boolean |
hasAnonymousAccess() |
boolean |
hasLicensedAccess() |
boolean |
hasUnlicensedAuthenticatedAccess() |
boolean hasLicensedAccess()
SpacePermission.USE_CONFLUENCE_PERMISSION
).boolean hasUnlicensedAuthenticatedAccess()
boolean hasAnonymousAccess()
boolean canUseConfluence()
SpacePermission.USE_CONFLUENCE_PERMISSION
or SpacePermission.LIMITED_USE_CONFLUENCE_PERMISSION
permission.
This will be true for both users with licensed access to Confluence and for visitors (users with limited access).
To check if a user also has licensed Confluence access, use hasLicensedAccess()
instead.
SpacePermission.USE_CONFLUENCE_PERMISSION
or
SpacePermission.LIMITED_USE_CONFLUENCE_PERMISSION
.Copyright © 2003–2017 Atlassian. All rights reserved.