public class AttachmentOwningContentResolver extends Object implements ResourceIdentifierResolver<AttachmentResourceIdentifier,ContentEntityObject>
Constructor and Description |
---|
AttachmentOwningContentResolver(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceResolver,
ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceResolver,
ResourceIdentifierResolver<ContentEntityResourceIdentifier,ContentEntityObject> contentEntityResourceResolver,
ResourceIdentifierResolver<DraftResourceIdentifier,Draft> draftResourceResolver) |
Modifier and Type | Method and Description |
---|---|
ContentEntityObject |
resolve(AttachmentResourceIdentifier resourceIdentifier,
ConversionContext conversionContext) |
public AttachmentOwningContentResolver(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceResolver, ResourceIdentifierResolver<ContentEntityResourceIdentifier,ContentEntityObject> contentEntityResourceResolver, ResourceIdentifierResolver<DraftResourceIdentifier,Draft> draftResourceResolver)
public ContentEntityObject resolve(AttachmentResourceIdentifier resourceIdentifier, ConversionContext conversionContext) throws CannotResolveResourceIdentifierException
resolve
in interface ResourceIdentifierResolver<AttachmentResourceIdentifier,ContentEntityObject>
resourceIdentifier
- 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–2016 Atlassian. All rights reserved.