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, PageTemplateResourceIdentifierResolver, SpaceResourceIdentifierResolver

public interface ResourceIdentifierResolver<X extends ResourceIdentifier,Y>
Responsible for resolving or locating the actual resource identified by a resource identifier.
  • Method Summary

    Modifier and Type
    Method
    Description
    resolve(X resourceIdentifier, ConversionContext conversionContext)
     
  • Method Details

    • 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)