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 |
---|---|
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'@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–2016 Atlassian. All rights reserved.