Class ViewDraftLinkMarshaller
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.link.ViewDraftLinkMarshaller
-
- All Implemented Interfaces:
Marshaller<Link>
public class ViewDraftLinkMarshaller extends Object implements Marshaller<Link>
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 aDraftResourceIdentifierand 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.
-
-
Constructor Summary
Constructors Constructor Description ViewDraftLinkMarshaller(CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, XmlStreamWriterTemplate xmlStreamWriterTemplate, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Streamablemarshal(Link link, ConversionContext conversionContext)Marshals an object to XML.
-
-
-
Constructor Detail
-
ViewDraftLinkMarshaller
public ViewDraftLinkMarshaller(CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, XmlStreamWriterTemplate xmlStreamWriterTemplate, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller)
-
-
Method Detail
-
marshal
public Streamable marshal(Link link, ConversionContext conversionContext) throws XhtmlException
Description copied from interface:MarshallerMarshals an object to XML.- Specified by:
marshalin interfaceMarshaller<Link>- Parameters:
link- object to marshalconversionContext- the conversion context- Returns:
- the XML representation of the object
- Throws:
XhtmlException- if an error occurs during marshalling
-
-