public interface LinkManager
Modifier and Type | Field and Description |
---|---|
static String |
CAMELCASE_LINK_PATTERN |
static String |
NORMAL_LINK_PATTERN |
Modifier and Type | Method and 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 space
|
void |
removeCorruptOutgoingLinks() |
void |
removeLink(OutgoingLink link)
Remove an internal link
|
void |
saveLink(OutgoingLink link)
Save an internal link
|
void |
updateOutgoingLinks(ContentEntityObject content) |
static final String CAMELCASE_LINK_PATTERN
static final String NORMAL_LINK_PATTERN
void saveLink(OutgoingLink link)
void removeLink(OutgoingLink link)
List getIncomingLinksToContent(ContentEntityObject content)
Stream<OutgoingLinkMeta> countIncomingLinksForContents(SpaceContentEntityObject rootPage, SpaceContentEntityObject parentPage)
rootPage
- parentPage
- int countPagesWithIncomingLinks(SpaceContentEntityObject rootPage)
rootPage
- the root page of the hierarchy. Links to this page are also counted.void updateOutgoingLinks(ContentEntityObject content)
Collection<ContentEntityObject> getReferringContent(ContentEntityObject content)
Collection<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> collection)
void removeCorruptOutgoingLinks()
Copyright © 2003–2020 Atlassian. All rights reserved.