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 |
extractLinksFromContent(ContentEntityObject content)
Deprecated.
since 4.0. See {com.atlassian.confluence.content.render.xhtml.links.OutgoingLinksExtractor}
|
String |
getContentWithRenamedLinks(ContentEntityObject referringContent,
SpaceContentEntityObject pageBeingRenamed,
String newSpaceKey,
String newPageTitle)
|
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
|
String |
getSelfContentWithRenamedLinks(ContentEntityObject referringContent,
String newSpaceKey)
|
void |
removeCorruptOutgoingLinks() |
void |
removeLink(OutgoingLink link)
Remove an internal link
|
void |
renameOutgoingLinksToAttachments(ContentEntityObject refContent,
String existingFileName,
String newFileName)
|
void |
renameOutgoingLinksToMovedAttachments(ContentEntityObject refContent,
String existingFileName,
String newFileName,
ContentEntityObject srcContent,
ContentEntityObject destContent)
Deprecated.
since 4.0. See
RelatedContentRefactorer#updateReferrers(com.atlassian.confluence.pages.Attachment, com.atlassian.confluence.spaces.Space, String, String) |
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)
@Deprecated String getSelfContentWithRenamedLinks(ContentEntityObject referringContent, String newSpaceKey)
RelatedContentRefactorer.updateReferences(SpaceContentEntityObject, com.atlassian.confluence.spaces.Space, String)
List getIncomingLinksToContent(ContentEntityObject content)
@Deprecated String getContentWithRenamedLinks(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingRenamed, String newSpaceKey, String newPageTitle)
RelatedContentRefactorer.updateReferrers(SpaceContentEntityObject, com.atlassian.confluence.spaces.Space, String)
referringContent
- page that contains a link to the pageBeingRenamedpageBeingRenamed
- page that is being renamed or movednewSpaceKey
- the new space key of 'pageBeingRenamed'newPageTitle
- the new title for 'pageBeingRenamed'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.@Deprecated void renameOutgoingLinksToAttachments(ContentEntityObject refContent, String existingFileName, String newFileName)
RelatedContentRefactorer.updateReferences(SpaceContentEntityObject, com.atlassian.confluence.spaces.Space, String)
@Deprecated void renameOutgoingLinksToMovedAttachments(ContentEntityObject refContent, String existingFileName, String newFileName, ContentEntityObject srcContent, ContentEntityObject destContent) throws LinksUpdateException
RelatedContentRefactorer#updateReferrers(com.atlassian.confluence.pages.Attachment, com.atlassian.confluence.spaces.Space, String, String)
LinksUpdateException
void updateOutgoingLinks(ContentEntityObject content)
@Deprecated List extractLinksFromContent(ContentEntityObject content)
content
- Collection<ContentEntityObject> getReferringContent(ContentEntityObject content)
Collection<ContentEntityObject> getReferringContent(String spaceKey, List<ContentEntityObject> collection)
void removeCorruptOutgoingLinks()
Copyright © 2003–2017 Atlassian. All rights reserved.