public final class DefaultLinkAssistant extends java.lang.Object implements LinkAssistant
LinkAssistant.| Constructor and Description |
|---|
DefaultLinkAssistant(com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.confluence.core.ContextPathHolder contextPathHolder,
org.randombits.support.core.env.EnvironmentAssistant environmentAssistant,
com.atlassian.confluence.links.LinkManager linkManager,
com.atlassian.confluence.pages.PageManager pageManager,
com.atlassian.confluence.pages.AttachmentManager attachmentManager) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContextPath() |
com.atlassian.confluence.core.ConfluenceEntityObject |
getEntityForWikiLink(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
java.lang.String linkText)
Parses a content name (e.g.
|
java.lang.String |
getURLForEntity(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
com.atlassian.confluence.core.ConfluenceEntityObject ceo) |
java.lang.String |
getURLForEntity(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
com.atlassian.confluence.core.ConfluenceEntityObject ceo,
java.lang.String anchor) |
java.lang.String |
getURLForWikiLink(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
java.lang.String linkText) |
java.lang.String |
getWikiLinkForEntity(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
com.atlassian.confluence.core.ConfluenceEntityObject entity)
Generates a wiki link, without any surrounding '[]'s.
|
boolean |
saveOutgoingLink(com.atlassian.confluence.core.ContentEntityObject sourceContent,
com.atlassian.confluence.core.ConfluenceEntityObject targetContent) |
boolean |
saveOutgoingLink(com.atlassian.confluence.core.ContentEntityObject sourceContent,
java.lang.String url) |
boolean |
saveOutgoingLink(com.atlassian.confluence.core.ContentEntityObject sourceContent,
java.lang.String spaceKey,
java.lang.String targetPageTitle) |
public DefaultLinkAssistant(com.atlassian.confluence.security.PermissionManager permissionManager,
com.atlassian.confluence.core.ContextPathHolder contextPathHolder,
org.randombits.support.core.env.EnvironmentAssistant environmentAssistant,
com.atlassian.confluence.links.LinkManager linkManager,
com.atlassian.confluence.pages.PageManager pageManager,
com.atlassian.confluence.pages.AttachmentManager attachmentManager)
public java.lang.String getURLForWikiLink(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
java.lang.String linkText)
getURLForWikiLink in interface LinkAssistantpublic java.lang.String getContextPath()
getContextPath in interface LinkAssistantpublic boolean saveOutgoingLink(com.atlassian.confluence.core.ContentEntityObject sourceContent,
com.atlassian.confluence.core.ConfluenceEntityObject targetContent)
saveOutgoingLink in interface LinkAssistantpublic boolean saveOutgoingLink(com.atlassian.confluence.core.ContentEntityObject sourceContent,
java.lang.String spaceKey,
java.lang.String targetPageTitle)
saveOutgoingLink in interface LinkAssistantpublic boolean saveOutgoingLink(com.atlassian.confluence.core.ContentEntityObject sourceContent,
java.lang.String url)
saveOutgoingLink in interface LinkAssistantpublic java.lang.String getURLForEntity(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
com.atlassian.confluence.core.ConfluenceEntityObject ceo)
getURLForEntity in interface LinkAssistantpublic java.lang.String getURLForEntity(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
com.atlassian.confluence.core.ConfluenceEntityObject ceo,
java.lang.String anchor)
getURLForEntity in interface LinkAssistantpublic com.atlassian.confluence.core.ConfluenceEntityObject getEntityForWikiLink(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
java.lang.String linkText)
getEntityForWikiLink in interface LinkAssistantcontext - The context to get spaces/content id info from if not
specified in the contentName.linkText - The name of the entity being trackednull if it could
not be found.public java.lang.String getWikiLinkForEntity(com.atlassian.confluence.content.render.xhtml.ConversionContext context,
com.atlassian.confluence.core.ConfluenceEntityObject entity)
getWikiLinkForEntity in interface LinkAssistantcontext - The context being linked from.entity - The entity to link to.Copyright © 2013 randombits.org. All Rights Reserved.