Class ViewAttachmentLinkMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.link.ViewAttachmentLinkMarshaller
- All Implemented Interfaces:
Marshaller<Link>
@ParametersAreNonnullByDefault
public class ViewAttachmentLinkMarshaller
extends Object
implements Marshaller<Link>
-
Constructor Summary
ConstructorsConstructorDescriptionViewAttachmentLinkMarshaller
(XmlStreamWriterTemplate xmlStreamWriterTemplate, PageManager pageManager, ContentEntityManager contentEntityManager, AttachmentManager attachmentManager, PermissionManager permissionManager, Marshaller<UnresolvedLink> unresolvedLinkMarshaller, Marshaller<Link> linkBodyMarshaller, @Nullable StaxStreamMarshaller<Link> commonLinkAttributeStaxStreamMarshaller, DraftManager draftManager, HrefEvaluator hrefEvaluator, Marshaller<UnresolvedLink> notPermittedLinkMarshaller, ResourceIdentifierContextUtility riUtils, ModelToRenderedClassMapper linkClassRenderer) -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(Link attachmentLink, ConversionContext conversionContext) Marshals an object to XML.
-
Constructor Details
-
ViewAttachmentLinkMarshaller
public ViewAttachmentLinkMarshaller(XmlStreamWriterTemplate xmlStreamWriterTemplate, PageManager pageManager, ContentEntityManager contentEntityManager, AttachmentManager attachmentManager, PermissionManager permissionManager, Marshaller<UnresolvedLink> unresolvedLinkMarshaller, Marshaller<Link> linkBodyMarshaller, @Nullable StaxStreamMarshaller<Link> commonLinkAttributeStaxStreamMarshaller, DraftManager draftManager, HrefEvaluator hrefEvaluator, Marshaller<UnresolvedLink> notPermittedLinkMarshaller, ResourceIdentifierContextUtility riUtils, ModelToRenderedClassMapper linkClassRenderer)
-
-
Method Details
-
marshal
public Streamable marshal(Link attachmentLink, ConversionContext conversionContext) throws XhtmlException Description copied from interface:Marshaller
Marshals an object to XML.- Specified by:
marshal
in interfaceMarshaller<Link>
- Parameters:
attachmentLink
- object to marshalconversionContext
- the conversion context- Returns:
- the XML representation of the object
- Throws:
XhtmlException
- if an error occurs during marshalling
-