|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.links.DefaultLinkManager
public class DefaultLinkManager
Field Summary | |
---|---|
static org.apache.log4j.Category |
log
Deprecated. since 5.5. Use private logger. |
Fields inherited from interface com.atlassian.confluence.links.LinkManager |
---|
CAMELCASE_LINK_PATTERN, NORMAL_LINK_PATTERN |
Constructor Summary | |
---|---|
DefaultLinkManager()
|
Method Summary | |
---|---|
java.util.List |
extractLinksFromContent(ContentEntityObject content)
|
java.lang.String |
getContentWithRenamedLinks(ContentEntityObject referringContent,
SpaceContentEntityObject pageBeingChanged,
java.lang.String newSpaceKey,
java.lang.String newPageTitle)
Deprecated. since 4.0 |
java.util.List |
getIncomingLinksToContent(ContentEntityObject content)
|
java.util.Collection |
getReferringContent(ContentEntityObject content)
|
java.lang.String |
getSelfContentWithRenamedLinks(ContentEntityObject referringContent,
java.lang.String newSpaceKey)
Deprecated. since 4.0 |
void |
removeCorruptOutgoingLinks()
|
void |
removeLink(OutgoingLink link)
Remove an internal link |
void |
renameOutgoingLinksToAttachments(ContentEntityObject referringContent,
java.lang.String existingFileName,
java.lang.String newFileName)
Deprecated. since 4.0. See RelatedContentRefactorer.updateReferences(SpaceContentEntityObject, com.atlassian.confluence.spaces.Space, String) |
void |
renameOutgoingLinksToMovedAttachments(ContentEntityObject referringContent,
java.lang.String existingFileName,
java.lang.String newFileName,
ContentEntityObject srcContent,
ContentEntityObject destContent)
Deprecated. |
void |
saveLink(OutgoingLink link)
Save an internal link |
void |
setAttachmentLinksUpdater(AttachmentLinksUpdater attachmentLinksUpdater)
|
void |
setLinkDao(LinkDao linkDao)
|
void |
setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver)
|
void |
setLinksUpdater(LinksUpdater linksUpdater)
|
void |
setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
|
void |
setOutgoingLinksExtractor(OutgoingLinksExtractor outgoingLinksExtractor)
|
void |
setSettingsManager(SettingsManager settingsManager)
|
void |
updateOutgoingLinks(ContentEntityObject content)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Deprecated public static final org.apache.log4j.Category log
Constructor Detail |
---|
public DefaultLinkManager()
Method Detail |
---|
public void setLinkDao(LinkDao linkDao)
public void setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver)
public void removeLink(OutgoingLink link)
LinkManager
removeLink
in interface LinkManager
public void saveLink(OutgoingLink link)
LinkManager
saveLink
in interface LinkManager
public java.util.List getIncomingLinksToContent(ContentEntityObject content)
getIncomingLinksToContent
in interface LinkManager
content
-
public java.util.List extractLinksFromContent(ContentEntityObject content)
extractLinksFromContent
in interface LinkManager
@Deprecated public java.lang.String getSelfContentWithRenamedLinks(ContentEntityObject referringContent, java.lang.String newSpaceKey)
LinkManager
getSelfContentWithRenamedLinks
in interface LinkManager
@Deprecated public java.lang.String getContentWithRenamedLinks(ContentEntityObject referringContent, SpaceContentEntityObject pageBeingChanged, java.lang.String newSpaceKey, java.lang.String newPageTitle)
LinkManager
getContentWithRenamedLinks
in interface LinkManager
referringContent
- page that contains a link to the pageBeingRenamedpageBeingChanged
- page that is being renamed or movednewSpaceKey
- the new space key of 'pageBeingRenamed'newPageTitle
- the new title for 'pageBeingRenamed'@Deprecated public void renameOutgoingLinksToAttachments(ContentEntityObject referringContent, java.lang.String existingFileName, java.lang.String newFileName)
RelatedContentRefactorer.updateReferences(SpaceContentEntityObject, com.atlassian.confluence.spaces.Space, String)
LinkManager
renameOutgoingLinksToAttachments
in interface LinkManager
@Deprecated public void renameOutgoingLinksToMovedAttachments(ContentEntityObject referringContent, java.lang.String existingFileName, java.lang.String newFileName, ContentEntityObject srcContent, ContentEntityObject destContent) throws LinksUpdateException
LinkManager
renameOutgoingLinksToMovedAttachments
in interface LinkManager
LinksUpdateException
public void updateOutgoingLinks(ContentEntityObject content)
updateOutgoingLinks
in interface LinkManager
public java.util.Collection getReferringContent(ContentEntityObject content)
getReferringContent
in interface LinkManager
content
-
public void removeCorruptOutgoingLinks()
removeCorruptOutgoingLinks
in interface LinkManager
public void setSettingsManager(SettingsManager settingsManager)
public void setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
public void setOutgoingLinksExtractor(OutgoingLinksExtractor outgoingLinksExtractor)
public void setLinksUpdater(LinksUpdater linksUpdater)
public void setAttachmentLinksUpdater(AttachmentLinksUpdater attachmentLinksUpdater)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |