public class ViewLinkMarshallerFactoryImpl extends Object implements ViewLinkMarshallerFactory
Constructor and Description |
---|
ViewLinkMarshallerFactoryImpl(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceIdentifierResolver,
ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceIdentifierResolver,
SpaceManager spaceManager,
PermissionManager permissionManager,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
Marshaller<Link> linkBodyMarshaller,
HrefEvaluator hrefEvaluator,
Marshaller<Link> unresolvedLinkMarshaller,
UserAccessor userAccessor,
PersonalInformationManager personalInformationManager,
SettingsManager settingsManager,
CommonLinkAttributesWriter commonLinkAttributesWriter) |
ViewLinkMarshallerFactoryImpl(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceIdentifierResolver,
ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceIdentifierResolver,
SpaceManager spaceManager,
PermissionManager permissionManager,
XmlStreamWriterTemplate xmlStreamWriterTemplate,
Marshaller<Link> linkBodyMarshaller,
HrefEvaluator hrefEvaluator,
Marshaller<Link> unresolvedLinkMarshaller,
UserAccessor userAccessor,
PersonalInformationManager personalInformationManager,
SettingsManager settingsManager,
ModelToRenderedClassMapper mapper)
Deprecated.
since 6.0
|
Modifier and Type | Method and 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> |
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.
|
@Deprecated public ViewLinkMarshallerFactoryImpl(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceIdentifierResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceIdentifierResolver, SpaceManager spaceManager, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller, UserAccessor userAccessor, PersonalInformationManager personalInformationManager, SettingsManager settingsManager, ModelToRenderedClassMapper mapper)
public ViewLinkMarshallerFactoryImpl(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceIdentifierResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceIdentifierResolver, SpaceManager spaceManager, PermissionManager permissionManager, XmlStreamWriterTemplate xmlStreamWriterTemplate, Marshaller<Link> linkBodyMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller, UserAccessor userAccessor, PersonalInformationManager personalInformationManager, SettingsManager settingsManager, CommonLinkAttributesWriter commonLinkAttributesWriter)
public Marshaller<Link> newPageLinkMarshaller()
ViewLinkMarshallerFactory
newPageLinkMarshaller
in interface ViewLinkMarshallerFactory
public Marshaller<Link> newPageLinkMarshaller(Marshaller<CreatePageLink> createPageLinkMarshaller, HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
ViewLinkMarshallerFactory
If any of the parameters are null then the default version will be used in the returned marshaller.
newPageLinkMarshaller
in interface ViewLinkMarshallerFactory
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 linkspublic Marshaller<Link> newBlogPostLinkMarshaller()
newBlogPostLinkMarshaller
in interface ViewLinkMarshallerFactory
public Marshaller<Link> newBlogPostLinkMarshaller(HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
ViewLinkMarshallerFactory
newBlogPostLinkMarshaller
in interface ViewLinkMarshallerFactory
hrefEvaluator
- a custom hrefEvaluator to be used to the returned marshaller.unresolvedLinkMarshaller
- the marshaller to be used for unresolved linkspublic Marshaller<Link> newUserLinkMarshaller()
newUserLinkMarshaller
in interface ViewLinkMarshallerFactory
public Marshaller<Link> newUserLinkMarshaller(HrefEvaluator hrefEvaluator, Marshaller<Link> unresolvedLinkMarshaller)
ViewLinkMarshallerFactory
newUserLinkMarshaller
in interface ViewLinkMarshallerFactory
hrefEvaluator
- a custom hrefEvaluator to be used to the returned marshaller.unresolvedLinkMarshaller
- the marshaller to be used for unresolved linksCopyright © 2003–2017 Atlassian. All rights reserved.