com.atlassian.confluence.content.render.xhtml.model.resource.identifiers
Interface ResourceIdentifierResolver<X extends ResourceIdentifier,Y>

Type Parameters:
X - the type of the resource identifier
Y - the type of the resource
All Known Implementing Classes:
AttachmentOwningContentResolver, AttachmentResourceIdentifierOnlyUriResolver, AttachmentResourceIdentifierResolver, BlogPostResourceIdentifierResolver, ContentEntityResourceIdentifierResolver, DraftResourceIdentifierResolver, IdAndTypeResourceIdentifierResolver, PageResourceIdentifierResolver, SpaceResourceIdentifierResolver

public interface ResourceIdentifierResolver<X extends ResourceIdentifier,Y>

Responsible for resolving or locating the actual resource identified by a resource identifier.


Method Summary
 Y resolve(X resourceIdentifier, ConversionContext conversionContext)
           
 

Method Detail

resolve

Y resolve(X resourceIdentifier,
          ConversionContext conversionContext)
          throws CannotResolveResourceIdentifierException
Parameters:
resourceIdentifier - resource identifier
conversionContext - 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)


Copyright © 2003–2015 Atlassian. All rights reserved.