Interface LinkManager

All Known Implementing Classes:
DefaultLinkManager

@Transactional public interface LinkManager
  • Field Details

  • Method Details

    • saveLink

      void saveLink(OutgoingLink link)
      Save an internal link
    • removeLink

      void removeLink(OutgoingLink link)
      Remove an internal link
    • getIncomingLinksToContent

      @Transactional(readOnly=true) List getIncomingLinksToContent(ContentEntityObject content)
    • countIncomingLinksForContents

      @Transactional(readOnly=true) Stream<OutgoingLinkMeta> countIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage)
      Helping method to get all incoming links of multiple contents at once.
      Parameters:
      rootPage -
      parentPage -
      Returns:
      Stream of OutgoingLinkMeta
      Since:
      6.0
    • countPagesWithIncomingLinks

      @Transactional(readOnly=true) int countPagesWithIncomingLinks(SpaceContentEntityObject rootPage)
      Get the number of pages in a page hierarchy that have incoming links. Note that this excludes links within the hierarchy.
      Parameters:
      rootPage - the root page of the hierarchy. Links to this page are also counted.
      Returns:
      The number of pages in the hierarchy that have incoming links, excluding links within the hierarchy.
      Since:
      6.0
    • updateOutgoingLinks

      void updateOutgoingLinks(ContentEntityObject content)
    • getReferringContent

      @Transactional(readOnly=true) Collection<ContentEntityObject> getReferringContent(ContentEntityObject content)
    • getReferringContent

      @Transactional(readOnly=true) Collection<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> collection)
      Gets collection of referring content with given set of pages within single space
      Since:
      5.8.15
    • removeCorruptOutgoingLinks

      void removeCorruptOutgoingLinks()