Interface ContentPermissionCalculator

All Known Implementing Classes:
DefaultContentPermissionCalculator

public interface ContentPermissionCalculator
Calculates encoded string of content permission.
Since:
7.17
  • Method Details

    • calculate

      Collection<ContentPermissionSet> calculate(@Nullable ContentEntityObject contentEntityObject)
      Parameters:
      contentEntityObject - the content entity object that we need to calculate its permissions
      Returns:
      a collection of ContentPermissionSet
    • getEncodedPermissionsCollection

      Collection<String> getEncodedPermissionsCollection(ContentPermissionSet contentPermissionSet)
      Encodes the user keys and groups in the contentPermissionSet for storage in index
      Parameters:
      contentPermissionSet - a set of content permissions (user key and groups)
      Returns:
      a collection of encoded user keys and groups
    • getEncodedUserKey

      String getEncodedUserKey(ConfluenceUser user)
    • getEncodedUserKey

      String getEncodedUserKey(com.atlassian.sal.api.user.UserKey userKey)
    • getEncodedGroupName

      String getEncodedGroupName(String groupname)