public class ConfluenceLinkResolver extends Object implements com.atlassian.renderer.links.LinkResolver
Constructor and Description |
---|
ConfluenceLinkResolver() |
Modifier and Type | Method and Description |
---|---|
com.atlassian.renderer.links.Link |
createLink(com.atlassian.renderer.RenderContext context,
String linkText) |
List<com.atlassian.renderer.links.Link> |
extractLinks(com.atlassian.renderer.RenderContext context,
String pageContent)
Parses the content passed in and returns a list of confluence link objects (e.g.
|
List<String> |
extractLinkTextList(String pageContent)
parses through the content and returns a list of all the links found in string format e.g.
|
static String |
getLinkAsPlainText(String linkBody,
String url) |
static boolean |
isUrlLink(String textWithoutTitle) |
String |
removeLinkBrackets(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 |
setPersonalInformationManager(PersonalInformationManager personalInformationManager) |
void |
setSettingsManager(SettingsManager settingsManager) |
void |
setShortcutLinksManager(ShortcutLinksManager shortcutLinksManager) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setStorageFormatCleaner(StorageFormatCleaner storageFormatCleaner) |
void |
setUserAccessor(UserAccessor userAccessor) |
public List<String> extractLinkTextList(String pageContent)
extractLinkTextList
in interface com.atlassian.renderer.links.LinkResolver
public List<com.atlassian.renderer.links.Link> extractLinks(com.atlassian.renderer.RenderContext context, String pageContent)
extractLinks
in interface com.atlassian.renderer.links.LinkResolver
public String removeLinkBrackets(String linkText)
removeLinkBrackets
in interface com.atlassian.renderer.links.LinkResolver
public static String getLinkAsPlainText(String linkBody, String url)
linkBody
- url
- public com.atlassian.renderer.links.Link createLink(com.atlassian.renderer.RenderContext context, String linkText)
createLink
in interface com.atlassian.renderer.links.LinkResolver
public static boolean isUrlLink(String textWithoutTitle)
public void setSettingsManager(SettingsManager settingsManager)
public void setShortcutLinksManager(ShortcutLinksManager shortcutLinksManager)
public void setPageManager(PageManager pageManager)
public void setSpaceManager(SpaceManager spaceManager)
public void setUserAccessor(UserAccessor userAccessor)
public void setAttachmentManager(AttachmentManager attachmentManager)
public void setContentEntityManager(ContentEntityManager contentEntityManager)
public void setPermissionManager(PermissionManager permissionManager)
public void setMacroManager(com.atlassian.renderer.v2.macro.MacroManager macroManager)
public void setPersonalInformationManager(PersonalInformationManager personalInformationManager)
public void setStorageFormatCleaner(StorageFormatCleaner storageFormatCleaner)
Copyright © 2003–2021 Atlassian. All rights reserved.