Class ViewSpaceLinkMarshaller
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.link.ViewSpaceLinkMarshaller
-
- All Implemented Interfaces:
Marshaller<Link>
public class ViewSpaceLinkMarshaller extends Object implements Marshaller<Link>
-
-
Constructor Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Streamable
marshal(Link link, ConversionContext conversionContext)
Marshals the given link to a String.
-
-
-
Constructor Detail
-
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 Detail
-
marshal
public Streamable marshal(Link link, ConversionContext conversionContext) throws XhtmlException
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
-
-