Interface AdvancedBulkPermissionService

  • All Known Implementing Classes:
    AdvancedBulkPermissionServiceImpl

    @ExperimentalApi
    @Transactional(readOnly=true)
    public interface AdvancedBulkPermissionService
    Advanced bulk permission service provides low-level access to fast permissions service. This service does not have any fallback implementation
    Since:
    7.12.0
    • Method Detail

      • isApiUpAndRunning

        boolean isApiUpAndRunning()
        Returns:
        true is fast permissions service is up and running or false if at least one of the services (SPACE or CONTENT) is not in READY state.
      • isSpaceApiUpAndRunning

        boolean isSpaceApiUpAndRunning()
        Returns:
        true is SPACE fast permissions service is up and running or false if SPACE service is not in READY state.
      • isContentApiUpAndRunning

        boolean isContentApiUpAndRunning()
        Returns:
        true is CONTENT fast permissions service is up and running or false if CONTENT service is not in READY state.
      • getAllUserSids

        Set<Long> getAllUserSids​(@Nullable
                                 ConfluenceUser confluenceUser)
        Returns all sids for the user. Could be used if the plugin wants to work fast permissions tables directly (for example, join them). Fast permissions state must be checked before calling this method.
        Parameters:
        confluenceUser - user
        Returns:
        all sids for the user
      • isUserSuperAdmin

        boolean isUserSuperAdmin​(Set<Long> userSids)
        Checks if this user belongs to confluence-administrators. If this function returns true, this user has access to all the content regardless of configured permissions.
        Parameters:
        userSids - set of users sids
        Returns:
        true is user is super admin (part of confluence-administrators group)
        Since:
        7.12.0