com.atlassian.confluence.content.render.xhtml.view.link
Class ViewPageLinkMarshaller
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewPageLinkMarshaller
public ViewPageLinkMarshaller(PageResourceIdentifierResolver resourceIdentifierResolver,
PermissionManager permissionManager,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
Marshaller<CreatePageLink> createPageLinkMarshaller,
Marshaller<Link> linkBodyMarshaller,
HrefEvaluator hrefEvaluator,
StaxStreamMarshaller<Link> linkStaxStreamMarshaller,
Marshaller<Link> notPermittedLinkMarshaller)
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 marshalconversionContext
- the conversion context
- Returns:
- the XML representation of the object
- Throws:
XhtmlException