public class ViewIdAndTypeLinkMarshaller extends Object implements Marshaller<Link>
Modifier and Type | Field and Description |
---|---|
protected CommonLinkAttributesWriter |
commonLinkAttributesWriter |
protected HrefEvaluator |
hrefEvaluator |
protected Marshaller<Link> |
linkBodyMarshaller |
protected StaxStreamMarshaller<Link> |
linkStaxStreamMarshaller |
protected Marshaller<Link> |
notPermittedLinkMarshaller |
protected PermissionManager |
permissionManager |
protected IdAndTypeResourceIdentifierResolver |
resourceIdentifierResolver |
protected Marshaller<UnresolvedLink> |
unresolvedLinkMarshaller |
protected XmlStreamWriterTemplate |
xmlStreamWriterTemplate |
Constructor and Description |
---|
ViewIdAndTypeLinkMarshaller(IdAndTypeResourceIdentifierResolver resourceIdentifierResolver,
PermissionManager permissionManager,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
Marshaller<UnresolvedLink> unresolvedLinkMarshaller,
CommonLinkAttributesWriter commonLinkAttributesWriter,
Marshaller<Link> linkBodyMarshaller,
Marshaller<Link> notPermittedLinkMarshaller,
HrefEvaluator hrefEvaluator,
@Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller) |
Modifier and Type | Method and Description |
---|---|
Streamable |
marshal(Link link,
ConversionContext conversionContext)
Marshals an object to XML.
|
protected final IdAndTypeResourceIdentifierResolver resourceIdentifierResolver
protected final PermissionManager permissionManager
protected final XmlStreamWriterTemplate xmlStreamWriterTemplate
protected final Marshaller<UnresolvedLink> unresolvedLinkMarshaller
protected final CommonLinkAttributesWriter commonLinkAttributesWriter
protected final Marshaller<Link> linkBodyMarshaller
protected final Marshaller<Link> notPermittedLinkMarshaller
protected final StaxStreamMarshaller<Link> linkStaxStreamMarshaller
protected final HrefEvaluator hrefEvaluator
public ViewIdAndTypeLinkMarshaller(IdAndTypeResourceIdentifierResolver resourceIdentifierResolver, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<UnresolvedLink> unresolvedLinkMarshaller, CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, Marshaller<Link> notPermittedLinkMarshaller, HrefEvaluator hrefEvaluator, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller)
public Streamable marshal(Link link, ConversionContext conversionContext) throws XhtmlException
Marshaller
marshal
in interface Marshaller<Link>
link
- object to marshalconversionContext
- the conversion contextXhtmlException
- if an error occurs during marshallingCopyright © 2003–2021 Atlassian. All rights reserved.