com.atlassian.confluence.links
Class ConfluenceLinkResolver

java.lang.Object
  extended by com.atlassian.confluence.links.ConfluenceLinkResolver
All Implemented Interfaces:
com.atlassian.renderer.links.LinkResolver

public class ConfluenceLinkResolver
extends java.lang.Object
implements com.atlassian.renderer.links.LinkResolver

How Confluence converts text into links


Constructor Summary
ConfluenceLinkResolver()
           
 
Method Summary
 com.atlassian.renderer.links.Link createLink(com.atlassian.renderer.RenderContext context, java.lang.String linkText)
           
 java.util.List<com.atlassian.renderer.links.Link> extractLinks(com.atlassian.renderer.RenderContext context, java.lang.String pageContent)
          Parses the content passed in and returns a list of confluence link objects (e.g.
 java.util.List<java.lang.String> extractLinkTextList(java.lang.String pageContent)
          parses through the content and returns a list of all the links found in string format e.g.
 java.lang.String removeLinkBrackets(java.lang.String linkText)
          removes "[" and "]" from the link text if its exists
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void setContentEntityManager(ContentEntityManager contentEntityManager)
           
 void setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
           
 void setPageManager(PageManager pageManager)
           
 void setPermissionManager(PermissionManager permissionManager)
           
 void setSettingsManager(SettingsManager settingsManager)
           
 void setShortcutLinksManager(ShortcutLinksManager shortcutLinksManager)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setUserAccessor(UserAccessor userAccessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceLinkResolver

public ConfluenceLinkResolver()
Method Detail

extractLinkTextList

public java.util.List<java.lang.String> extractLinkTextList(java.lang.String pageContent)
parses through the content and returns a list of all the links found in string format e.g. {"[foo]","[alias|bar]", "[http://www.google.com]"

Specified by:
extractLinkTextList in interface com.atlassian.renderer.links.LinkResolver

extractLinks

public java.util.List<com.atlassian.renderer.links.Link> extractLinks(com.atlassian.renderer.RenderContext context,
                                                                      java.lang.String pageContent)
Parses the content passed in and returns a list of confluence link objects (e.g. AttachmentLink, BaseLink etc)

Specified by:
extractLinks in interface com.atlassian.renderer.links.LinkResolver

removeLinkBrackets

public java.lang.String removeLinkBrackets(java.lang.String linkText)
removes "[" and "]" from the link text if its exists

Specified by:
removeLinkBrackets in interface com.atlassian.renderer.links.LinkResolver

createLink

public com.atlassian.renderer.links.Link createLink(com.atlassian.renderer.RenderContext context,
                                                    java.lang.String linkText)
Specified by:
createLink in interface com.atlassian.renderer.links.LinkResolver

setSettingsManager

public void setSettingsManager(SettingsManager settingsManager)

setShortcutLinksManager

public void setShortcutLinksManager(ShortcutLinksManager shortcutLinksManager)

setPageManager

public void setPageManager(PageManager pageManager)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setUserAccessor

public void setUserAccessor(UserAccessor userAccessor)

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)

setContentEntityManager

public void setContentEntityManager(ContentEntityManager contentEntityManager)

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)

setMacroManager

public void setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)


Copyright © 2003-2010 Atlassian. All Rights Reserved.