Class ViewLinkMarshallerFactoryImpl
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.view.link.ViewLinkMarshallerFactoryImpl
-
- All Implemented Interfaces:
ViewLinkMarshallerFactory
public class ViewLinkMarshallerFactoryImpl extends Object implements ViewLinkMarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description ViewLinkMarshallerFactoryImpl(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceIdentifierResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceIdentifierResolver, ResourceIdentifierResolver<PageTemplateResourceIdentifier,PageTemplate> pageTemplateResourceIdentifierResolver, SpaceManager spaceManager, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller, ConfluenceUserResolver confluenceUserResolver, PersonalInformationManager personalInformationManager, GlobalSettingsManager settingsManager, CommonLinkAttributesWriter commonLinkAttributesWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Marshaller<Link>
newBlogPostLinkMarshaller()
Marshaller<Link>
newBlogPostLinkMarshaller(HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
Get a new instance of a blog post link view marshaller which will usage a specific HrefEvaluator instead of the default for creating the actual href attribute in the rendererd link.Marshaller<Link>
newPageLinkMarshaller()
Get a new instance of the default page link view marshaller.Marshaller<Link>
newPageLinkMarshaller(Marshaller<CreatePageLink> createPageLinkMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
Get a new instance of a page link view marshaller which will use a specific 'create page' link Marshaller and a specific HrefEvaluator for creating the actual rendered link.Marshaller<Link>
newPageTemplateLinkMarshaller()
Marshaller<Link>
newUserLinkMarshaller()
Marshaller<Link>
newUserLinkMarshaller(HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
Get a new instance of a user link view marshaller which will usage a specific HrefEvaluator instead of the default for creating the actual href attribute in the rendererd link.
-
-
-
Constructor Detail
-
ViewLinkMarshallerFactoryImpl
public ViewLinkMarshallerFactoryImpl(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceIdentifierResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceIdentifierResolver, ResourceIdentifierResolver<PageTemplateResourceIdentifier,PageTemplate> pageTemplateResourceIdentifierResolver, SpaceManager spaceManager, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller, ConfluenceUserResolver confluenceUserResolver, PersonalInformationManager personalInformationManager, GlobalSettingsManager settingsManager, CommonLinkAttributesWriter commonLinkAttributesWriter)
- Since:
- 7.16
-
-
Method Detail
-
newPageLinkMarshaller
public Marshaller<Link> newPageLinkMarshaller()
Description copied from interface:ViewLinkMarshallerFactory
Get a new instance of the default page link view marshaller.- Specified by:
newPageLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Returns:
- a new instance of a Marshaller suitable for view marshalling of page Links
-
newPageLinkMarshaller
public Marshaller<Link> newPageLinkMarshaller(Marshaller<CreatePageLink> createPageLinkMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
Description copied from interface:ViewLinkMarshallerFactory
Get a new instance of a page link view marshaller which will use a specific 'create page' link Marshaller and a specific HrefEvaluator for creating the actual rendered link.If any of the parameters are null then the default version will be used in the returned marshaller.
- Specified by:
newPageLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Parameters:
createPageLinkMarshaller
- a custom 'create page' link Marshaller to be used by the returned marshallerhrefEvaluator
- a custom hrefEvaluator to be used by the returned marshaller.unresolvedLinkMarshaller
- the marshaller to be used for unresolved links- Returns:
- a new instance of a Marshaller suitable for view marshalling of page links.
-
newBlogPostLinkMarshaller
public Marshaller<Link> newBlogPostLinkMarshaller()
- Specified by:
newBlogPostLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Returns:
- a new instance of Link marshaller suitable for view marshalling of blog links.
-
newBlogPostLinkMarshaller
public Marshaller<Link> newBlogPostLinkMarshaller(HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
Description copied from interface:ViewLinkMarshallerFactory
Get a new instance of a blog post link view marshaller which will usage a specific HrefEvaluator instead of the default for creating the actual href attribute in the rendererd link.- Specified by:
newBlogPostLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Parameters:
hrefEvaluator
- a custom hrefEvaluator to be used to the returned marshaller.unresolvedLinkMarshaller
- the marshaller to be used for unresolved links- Returns:
- a new instance of Link marshaller suitable for view marshalling of blog links.
-
newUserLinkMarshaller
public Marshaller<Link> newUserLinkMarshaller()
- Specified by:
newUserLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Returns:
- a new instance of Link marshaller suitable for view marshalling user links.
-
newUserLinkMarshaller
public Marshaller<Link> newUserLinkMarshaller(HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
Description copied from interface:ViewLinkMarshallerFactory
Get a new instance of a user link view marshaller which will usage a specific HrefEvaluator instead of the default for creating the actual href attribute in the rendererd link.- Specified by:
newUserLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Parameters:
hrefEvaluator
- a custom hrefEvaluator to be used to the returned marshaller.unresolvedLinkMarshaller
- the marshaller to be used for unresolved links- Returns:
- a new instance of Link marshaller suitable for view marshalling of user links.
-
newPageTemplateLinkMarshaller
public Marshaller<Link> newPageTemplateLinkMarshaller()
- Specified by:
newPageTemplateLinkMarshaller
in interfaceViewLinkMarshallerFactory
- Returns:
- a new instance of Link marshaller suitable for view marshalling page template links.
-
-