Interface LinkDao
-
- All Superinterfaces:
ObjectDao
- All Known Subinterfaces:
LinkDaoInternal
- All Known Implementing Classes:
HibernateLinkDao
public interface LinkDao extends ObjectDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <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
countPagesWithIncomingLinks(SpaceContentEntityObject rootPage)
Get the number of pages in a page hierarchy that have incoming links.List<OutgoingLink>
getLinksTo(ContentEntityObject content)
List<ContentEntityObject>
getReferringContent(ContentEntityObject content)
List<ContentEntityObject>
getReferringContent(String spaceKey, List<ContentEntityObject> content)
void
removeCorruptOutgoingLinks()
-
Methods inherited from interface bucket.core.persistence.ObjectDao
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
-
-
-
-
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 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
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
-
getLinksTo
List<OutgoingLink> getLinksTo(ContentEntityObject content)
-
getReferringContent
List<ContentEntityObject> getReferringContent(ContentEntityObject content)
-
getReferringContent
List<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> content)
-
removeCorruptOutgoingLinks
void removeCorruptOutgoingLinks()
-
-