Interface LinkDao
- All Known Subinterfaces:
LinkDaoInternal
- All Known Implementing Classes:
HibernateLinkDao
public interface LinkDao
-
Method Summary
Modifier and TypeMethodDescription<T> Stream<T>
countIncomingLinksForContents
(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage, Function<Object, T> mapper) Helping method to get all incoming links of multiple contents at once.int
Get the number of pages in a page hierarchy that have incoming links.getLinksTo
(ContentEntityObject content) getReferringContent
(ContentEntityObject content) getReferringContent
(String spaceKey, List<ContentEntityObject> content) void
remove
(OutgoingLink link) void
void
save
(OutgoingLink link)
-
Method Details
-
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 hierarchyparentPage
- The direct parent pagemapper
- used to transform raw object into some DTO object at manager level- Returns:
- Stream of DTO type
- Since:
- 6.0
-
countPagesWithIncomingLinks
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
-
getLinksTo
-
getReferringContent
-
getReferringContent
-
removeCorruptOutgoingLinks
void removeCorruptOutgoingLinks() -
remove
- Since:
- 8.9
-
save
- Since:
- 9.0
-