Class ViewSpaceLinkMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.link.ViewSpaceLinkMarshaller
- All Implemented Interfaces:
Marshaller<Link>
-
Constructor Summary
ConstructorsConstructorDescriptionViewSpaceLinkMarshaller
(SpaceResourceIdentifierResolver spaceResourceIdentifierResolver, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, Marshaller<UnresolvedLink> unresolvedLinkMarshaller, HrefEvaluator hrefEvaluator, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller, Marshaller<Link> notPermittedLinkMarshaller, I18NBeanFactory i18NBeanFactory) -
Method Summary
Modifier and TypeMethodDescriptionmarshal
(Link link, ConversionContext conversionContext) Marshals the given link to a String.
-
Constructor Details
-
ViewSpaceLinkMarshaller
public ViewSpaceLinkMarshaller(SpaceResourceIdentifierResolver spaceResourceIdentifierResolver, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, Marshaller<UnresolvedLink> unresolvedLinkMarshaller, HrefEvaluator hrefEvaluator, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller, Marshaller<Link> notPermittedLinkMarshaller, I18NBeanFactory i18NBeanFactory)
-
-
Method Details
-
marshal
Marshals the given link to a String. If the SpaceResourceIdentifierResolver returns null or the user does not have permission for the space, then the unresolvedLinkMarshaller will be used to marshal a result.- Specified by:
marshal
in interfaceMarshaller<Link>
- Parameters:
link
- The link to marshal to a StringconversionContext
- the conversion context- Returns:
- A HTML String.
- Throws:
XhtmlException
-