Class ContentPermissionSearchUtils


  • public class ContentPermissionSearchUtils
    extends Object
    • Constructor Detail

      • ContentPermissionSearchUtils

        public ContentPermissionSearchUtils()
    • Method Detail

      • getEncodedPermissionsCollection

        public static Collection<String> getEncodedPermissionsCollection​(ContentPermissionSet contentPermissionSet)
        Encodes and collects permissions from the contentPermissionSet
        Parameters:
        contentPermissionSet - ContentPermissionSet
        Returns:
        Collection of encoded permissions
        Since:
        8.7
      • getEncodedUserKey

        public static String getEncodedUserKey​(com.atlassian.sal.api.user.UserKey userKey)
        Parameters:
        userKey - the plain user key
        Returns:
        the encoded user key
        Since:
        7.16
      • getEncodedGroupName

        public static String getEncodedGroupName​(String groupname)
      • decodeContentPermissionSets

        public static Iterator<Set<String>> decodeContentPermissionSets​(String encodedContentPermissionSets)
        Decodes a string contains multiple "&'-separated ContentPermissionSets, which have themselves been encoded by #getEncodedContentPermissionSet(ContentPermissionSet). The returned Iterator is lazy, i.e. it decodes the string segments as the iterator advances.
        Returns:
        an Iterator of ContentPermissionSets themselves represented by a Set of encoded ContentPermissions.
        Since:
        7.1