Interface ContentPermissionSetDao

All Known Subinterfaces:
ContentPermissionSetDaoInternal
All Known Implementing Classes:
HibernateContentPermissionSetDao

public interface ContentPermissionSetDao
  • Method Details

    • getById

      ContentPermissionSet getById(long id)
    • 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
    • getInheritedContentPermissionSets

      List getInheritedContentPermissionSets(Page page, String type)
      Returns:
      list of ContentPermissionSets of the ancestors of ceo
    • 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:
    • 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
    • remove

      void remove(ContentPermissionSet contentPermissionSet)
      Since:
      9.0
    • save

      void save(ContentPermissionSet contentPermissionSet)
      Since:
      9.0