Class AttachmentOwningContentResolver
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.model.resource.identifiers.AttachmentOwningContentResolver
-
- All Implemented Interfaces:
ResourceIdentifierResolver<AttachmentResourceIdentifier,ContentEntityObject>
public class AttachmentOwningContentResolver extends Object implements ResourceIdentifierResolver<AttachmentResourceIdentifier,ContentEntityObject>
-
-
Constructor Summary
Constructors Constructor Description AttachmentOwningContentResolver(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceResolver, ResourceIdentifierResolver<ContentEntityResourceIdentifier,ContentEntityObject> contentEntityResourceResolver, ResourceIdentifierResolver<DraftResourceIdentifier,Draft> draftResourceResolver, ContentEntityManager contentEntityManager, AttachmentManager attachmentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentEntityObject
resolve(AttachmentResourceIdentifier resourceIdentifier, ConversionContext conversionContext)
-
-
-
Constructor Detail
-
AttachmentOwningContentResolver
public AttachmentOwningContentResolver(ResourceIdentifierResolver<PageResourceIdentifier,Page> pageResourceResolver, ResourceIdentifierResolver<BlogPostResourceIdentifier,BlogPost> blogPostResourceResolver, ResourceIdentifierResolver<ContentEntityResourceIdentifier,ContentEntityObject> contentEntityResourceResolver, ResourceIdentifierResolver<DraftResourceIdentifier,Draft> draftResourceResolver, ContentEntityManager contentEntityManager, AttachmentManager attachmentManager)
-
-
Method Detail
-
resolve
public ContentEntityObject resolve(AttachmentResourceIdentifier resourceIdentifier, ConversionContext conversionContext) throws CannotResolveResourceIdentifierException
- Specified by:
resolve
in interfaceResourceIdentifierResolver<AttachmentResourceIdentifier,ContentEntityObject>
- Parameters:
resourceIdentifier
- resource identifierconversionContext
- the conversion context- Returns:
- the resource associated with the specified resource identifier (cannot be null)
- Throws:
CannotResolveResourceIdentifierException
- if the specified resource identifier cannot be resolved (this shouldn't typically happen unless someone has removed the resource)
-
-