Package com.atlassian.confluence.links
Interface LinkManager
-
- All Known Implementing Classes:
DefaultLinkManager
@Transactional public interface LinkManager
-
-
Field Summary
Fields Modifier and Type Field Description static String
CAMELCASE_LINK_PATTERN
static String
NORMAL_LINK_PATTERN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<OutgoingLinkMeta>
countIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage)
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
getIncomingLinksToContent(ContentEntityObject content)
Collection<ContentEntityObject>
getReferringContent(ContentEntityObject content)
Collection<ContentEntityObject>
getReferringContent(String spaceKey, List<ContentEntityObject> collection)
Gets collection of referring content with given set of pages within single spacevoid
removeCorruptOutgoingLinks()
void
removeLink(OutgoingLink link)
Remove an internal linkvoid
saveLink(OutgoingLink link)
Save an internal linkvoid
updateOutgoingLinks(ContentEntityObject content)
-
-
-
Field Detail
-
CAMELCASE_LINK_PATTERN
static final String CAMELCASE_LINK_PATTERN
- See Also:
- Constant Field Values
-
NORMAL_LINK_PATTERN
static final String NORMAL_LINK_PATTERN
- See Also:
- Constant Field Values
-
-
Method Detail
-
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()
-
-