Class AdvancedBulkPermissionServiceImpl

    • Method Detail

      • getAllUserSids

        public 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.
        Specified by:
        getAllUserSids in interface AdvancedBulkPermissionService
        Parameters:
        confluenceUser - user
        Returns:
        all sids for the user
      • isUserSuperAdmin

        public 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.
        Specified by:
        isUserSuperAdmin in interface AdvancedBulkPermissionService
        Parameters:
        userSids - set of users sids
        Returns:
        true is user is super admin (part of confluence-administrators group)
      • isApiUpAndRunning

        public boolean isApiUpAndRunning()
        Specified by:
        isApiUpAndRunning in interface AdvancedBulkPermissionService
        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

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

        public boolean isContentApiUpAndRunning()
        Specified by:
        isContentApiUpAndRunning in interface AdvancedBulkPermissionService
        Returns:
        true is CONTENT fast permissions service is up and running or false if CONTENT service is not in READY state.