public class AttachmentResourceIdentifierResolver extends Object implements ResourceIdentifierResolver<AttachmentResourceIdentifier,Attachment>
ResourceIdentifierResolver which resolves AttachmentResourceIdentifiers into Attachments.
It will first attempt to resolve the attachment against any prefetched attachments stored in the ConversionContext
by AttachmentPrefetcher, and will fall back to fetching them from AttachmentManager if that fails.| Constructor and Description |
|---|
AttachmentResourceIdentifierResolver(AttachmentManager attachmentManager,
AttachmentOwningContentResolver attachmentOwningContentResolver) |
| Modifier and Type | Method and Description |
|---|---|
Attachment |
resolve(AttachmentResourceIdentifier attachmentResourceIdentifier,
ConversionContext conversionContext) |
public AttachmentResourceIdentifierResolver(AttachmentManager attachmentManager, AttachmentOwningContentResolver attachmentOwningContentResolver)
public Attachment resolve(AttachmentResourceIdentifier attachmentResourceIdentifier, ConversionContext conversionContext) throws CannotResolveResourceIdentifierException
resolve in interface ResourceIdentifierResolver<AttachmentResourceIdentifier,Attachment>attachmentResourceIdentifier - resource identifierconversionContext - the conversion contextCannotResolveResourceIdentifierException - if the specified resource identifier cannot be resolved (this shouldn't typically happen unless someone has removed the resource)Copyright © 2003–2022 Atlassian. All rights reserved.