Interface ContentPermissionSetDao

    • Method Detail

      • getExplicitPermissionSetsFor

        Map<Long,​List<ContentPermissionSet>> getExplicitPermissionSetsFor​(Collection<Long> ids)
        Get a map between content id and permission set. This only returns ContentPermissionSets directly owned by the given ids (or empty lists for content without any content permissions). It is not aware of inherited permissions.
        Parameters:
        ids - id of content to query
        Returns:
        permission set map
      • getPermissionSets

        Map<Long,​Set<ContentPermissionSet>> getPermissionSets​(String spaceKey,
                                                                    List<Long> contentIds)
        Retrieves the ContentPermissionSet of contents specified by the contentIds parameter given the space
        Parameters:
        spaceKey - - key of Space
        contentIds - - list of content id
        Returns:
        a map where the key is the content id, and the value are the permission set, such as View/Edit, being configured
        Since:
        5.10.8
        See Also:
        ContentPermissionSet
      • getContentIdsWithPermissionSet

        List<Long> getContentIdsWithPermissionSet​(String spaceKey)
        Gets the list of id of content which belongs to the specified space and has the permission set configured. If a page is using the inherited permission, its id will not be included.
        Parameters:
        spaceKey - - key of space
        Returns:
        the list of content id
        Since:
        5.10.8