public class ViewPageLinkMarshaller extends Object implements Marshaller<Link>
Modifier and Type | Field and Description |
---|---|
static String |
DO_LINK_PERMISSION_CHECK
If this parameter is set in the page context, the marshaller will not render the link if the current user does
not have permissions to view the page.
|
Constructor and Description |
---|
ViewPageLinkMarshaller(ResourceIdentifierResolver<PageResourceIdentifier,Page> resourceIdentifierResolver,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
Marshaller<CreatePageLink> createPageLinkMarshaller,
CommonLinkAttributesWriter commonLinkAttributesWriter,
Marshaller<Link> linkBodyMarshaller,
HrefEvaluator hrefEvaluator,
StaxStreamMarshaller<Link> linkStaxStreamMarshaller,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
Streamable |
marshal(Link attachmentLink,
ConversionContext conversionContext)
Marshals an object to XML.
|
public static final String DO_LINK_PERMISSION_CHECK
public ViewPageLinkMarshaller(ResourceIdentifierResolver<PageResourceIdentifier,Page> resourceIdentifierResolver, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<CreatePageLink> createPageLinkMarshaller, CommonLinkAttributesWriter commonLinkAttributesWriter, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, @Nullable StaxStreamMarshaller<Link> linkStaxStreamMarshaller, PermissionManager permissionManager)
public Streamable marshal(Link attachmentLink, ConversionContext conversionContext) throws XhtmlException
Marshaller
marshal
in interface Marshaller<Link>
attachmentLink
- object to marshalconversionContext
- the conversion contextXhtmlException
- if an error occurs during marshallingCopyright © 2003–2017 Atlassian. All rights reserved.