com.atlassian.confluence.content.render.xhtml.view.link
Class ViewSpaceLinkMarshaller
java.lang.Object
com.atlassian.confluence.content.render.xhtml.view.link.ViewSpaceLinkMarshaller
- All Implemented Interfaces:
- Marshaller<Link>
public class ViewSpaceLinkMarshaller
- extends java.lang.Object
- implements Marshaller<Link>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewSpaceLinkMarshaller
public ViewSpaceLinkMarshaller(SpaceResourceIdentifierResolver spaceResourceIdentifierResolver,
PermissionManager permissionManager,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
Marshaller<Link> linkBodyMarshaller,
Marshaller<UnresolvedLink> unresolvedLinkMarshaller,
HrefEvaluator hrefEvaluator,
StaxStreamMarshaller<Link> linkStaxStreamMarshaller,
Marshaller<Link> notPermittedLinkMarshaller,
ModelToRenderedClassMapper mapper)
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 interface Marshaller<Link>
- Parameters:
link
- The link to marshal to a StringconversionContext
- the conversion context
- Returns:
- A HTML String.
- Throws:
XhtmlException
Copyright © 2003-2013 Atlassian. All Rights Reserved.