com.atlassian.confluence.content.render.xhtml.view.link
Class ViewIdAndTypeLinkMarshaller

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.view.link.ViewIdAndTypeLinkMarshaller
All Implemented Interfaces:
Marshaller<Link>

public class ViewIdAndTypeLinkMarshaller
extends Object
implements Marshaller<Link>


Field Summary
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 Summary
ViewIdAndTypeLinkMarshaller(IdAndTypeResourceIdentifierResolver resourceIdentifierResolver, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<UnresolvedLink> unresolvedLinkMarshaller, Marshaller<Link> linkBodyMarshaller, Marshaller<Link> notPermittedLinkMarshaller, HrefEvaluator hrefEvaluator, StaxStreamMarshaller<Link> linkStaxStreamMarshaller, ModelToRenderedClassMapper mapper)
           
 
Method Summary
 Streamable marshal(Link link, ConversionContext conversionContext)
          Marshals an object to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceIdentifierResolver

protected final IdAndTypeResourceIdentifierResolver resourceIdentifierResolver

permissionManager

protected final PermissionManager permissionManager

xmlStreamWriterTemplate

protected final XmlStreamWriterTemplate xmlStreamWriterTemplate

unresolvedLinkMarshaller

protected final Marshaller<UnresolvedLink> unresolvedLinkMarshaller

linkBodyMarshaller

protected final Marshaller<Link> linkBodyMarshaller

notPermittedLinkMarshaller

protected final Marshaller<Link> notPermittedLinkMarshaller

linkStaxStreamMarshaller

protected final StaxStreamMarshaller<Link> linkStaxStreamMarshaller

hrefEvaluator

protected final HrefEvaluator hrefEvaluator
Constructor Detail

ViewIdAndTypeLinkMarshaller

public ViewIdAndTypeLinkMarshaller(IdAndTypeResourceIdentifierResolver resourceIdentifierResolver,
                                   PermissionManager permissionManager,
                                   XmlStreamWriterTemplate xmlStreamWriterTemplate,
                                   Marshaller<UnresolvedLink> unresolvedLinkMarshaller,
                                   Marshaller<Link> linkBodyMarshaller,
                                   Marshaller<Link> notPermittedLinkMarshaller,
                                   HrefEvaluator hrefEvaluator,
                                   StaxStreamMarshaller<Link> linkStaxStreamMarshaller,
                                   ModelToRenderedClassMapper mapper)
Method Detail

marshal

public Streamable marshal(Link link,
                          ConversionContext conversionContext)
                   throws XhtmlException
Description copied from interface: Marshaller
Marshals an object to XML.

Specified by:
marshal in interface Marshaller<Link>
Parameters:
link - object to marshal
conversionContext - the conversion context
Returns:
the XML representation of the object
Throws:
XhtmlException - if an error occurs during marshalling


Copyright © 2003–2015 Atlassian. All rights reserved.