com.atlassian.renderer.links
Interface ContentLinkResolver


public interface ContentLinkResolver

Resolves parsed content links into Link objects. This interface can be used by hosting applications that wish to allow their plugins to customise handling content links. For example, a JIRA plugin could provide an implementation that creates a Confluence link from the parsed information.


Method Summary
 Link createContentLink(RenderContext context, GenericLinkParser parsedLink)
          Given some parsed link text, convert it into a link object that can then be rendered into the page.
 

Method Detail

createContentLink

Link createContentLink(RenderContext context,
                       GenericLinkParser parsedLink)
                       throws ParseException
Given some parsed link text, convert it into a link object that can then be rendered into the page. The parseAsContentLink() method must have been called on the GenericLinkParser object before being passed to this method.

Parameters:
context - The render context
parsedLink - The parsed link information
Returns:
the corresponding link. If no link can be created, null is returned
Throws:
ParseException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.