Interface LinkDao

    • Method Detail

      • countIncomingLinksForContents

        <T> Stream<T> countIncomingLinksForContents​(SpaceContentEntityObject rootPage,
                                                    SpaceContentEntityObject parentPage,
                                                    Function<Object,​T> mapper)
        Helping method to get all incoming links of multiple contents at once.
        Type Parameters:
        T -
        Parameters:
        rootPage - The root of page hierarchy
        parentPage - The direct parent page
        mapper - used to transform raw object into some DTO object at manager level
        Returns:
        Stream of DTO type
        Since:
        6.0
      • countPagesWithIncomingLinks

        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 -
        Returns:
        number of page have incoming link
        Since:
        6.0
      • removeCorruptOutgoingLinks

        void removeCorruptOutgoingLinks()