public class

ViewDraftLinkMarshaller

extends Object
implements Marshaller<T>
java.lang.Object
   ↳ com.atlassian.confluence.content.render.xhtml.view.link.ViewDraftLinkMarshaller

Class Overview

In the Editor, if you are working on a new page then the context object is the Draft for this page. This means that any self links (e.g. anchor links) will have a DraftResourceIdentifier and it therefore must be possible to render such a ResourceIdentifier.

Marshalling links to a Draft is a scenario that can only occur in the Editor. There is no view mode equivalent.

Summary

Public Constructors
ViewDraftLinkMarshaller(Marshaller<Link> linkBodyMarshaller, XmlStreamWriterTemplate xmlStreamWriterTemplate, StaxStreamMarshaller<Link> linkStaxStreamMarshaller, ModelToRenderedClassMapper mapper)
Public Methods
String marshal(Link link, ConversionContext conversionContext)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.content.render.xhtml.Marshaller

Public Constructors

public ViewDraftLinkMarshaller (Marshaller<Link> linkBodyMarshaller, XmlStreamWriterTemplate xmlStreamWriterTemplate, StaxStreamMarshaller<Link> linkStaxStreamMarshaller, ModelToRenderedClassMapper mapper)

Public Methods

public String marshal (Link link, ConversionContext conversionContext)