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

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.view.link.ViewPageLinkMarshaller
All Implemented Interfaces:
Marshaller<Link<PageResourceIdentifier>>
Direct Known Subclasses:
EditorPageLinkMarshaller

public class ViewPageLinkMarshaller
extends Object
implements Marshaller<Link<PageResourceIdentifier>>

This along with other ViewXXXXLinkMarshallers should be consolidated into one marshaller in light of a move toward representing links with only resource ID and type state. Please refer to https://extranet.atlassian.com/display/CONFDEV/View+and+Editor+link+marshaller+refactoring for an outline of plan.


Constructor Summary
ViewPageLinkMarshaller(PageResourceIdentifierResolver resourceIdentifierResolver, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<CreatePageLink> createPageLinkMarshaller, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, StaxStreamMarshaller<Link> linkStaxStreamMarshaller, Marshaller<Link> notPermittedLinkMarshaller)
           
 
Method Summary
 String marshal(Link<PageResourceIdentifier> 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
 

Constructor Detail

ViewPageLinkMarshaller

public ViewPageLinkMarshaller(PageResourceIdentifierResolver resourceIdentifierResolver,
                              PermissionManager permissionManager,
                              XmlStreamWriterTemplate xmlStreamWriterTemplate,
                              Marshaller<CreatePageLink> createPageLinkMarshaller,
                              Marshaller<Link> linkBodyMarshaller,
                              HrefEvaluator hrefEvaluator,
                              StaxStreamMarshaller<Link> linkStaxStreamMarshaller,
                              Marshaller<Link> notPermittedLinkMarshaller)
Method Detail

marshal

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

Specified by:
marshal in interface Marshaller<Link<PageResourceIdentifier>>
Parameters:
link - object to marshal
conversionContext - the conversion context
Returns:
the XML representation of the object
Throws:
XhtmlException


Confluence is developed by Atlassian.