Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.api.blobholder
Interface BlobHolderAdapterService

All Known Implementing Classes:
BlobHolderAdapterComponent

public interface BlobHolderAdapterService

Service interface for creating the right BlobHolder adapter depending on the DocumentModel type.

Also provides APIs for external blob adapters, handling blobs that are not stored in the repository (stored in the file system for instance).

Author:
tiry, Anahide Tchertchian

Method Summary
 BlobHolder getBlobHolderAdapter(DocumentModel doc)
           
 ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
          Returns the external blob adapter registered for given prefix.
 ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
          Returns the external blob adapter parsed from given URI.
 Blob getExternalBlobForUri(String uri)
          Returns an external blob from given uri.
 

Method Detail

getBlobHolderAdapter

BlobHolder getBlobHolderAdapter(DocumentModel doc)

getExternalBlobForUri

Blob getExternalBlobForUri(String uri)
                           throws PropertyException
Returns an external blob from given uri.

Parameters:
uri - the uri describing what adapter handles the file and the needed info to retrieve it.
Returns:
the resolved blob.
Throws:
PropertyException - if the blob cannot be retrieved (if adapter cannot retrieve it or if file is not found for instance)
See Also:
ExternalBlobAdapter

getExternalBlobAdapterForPrefix

ExternalBlobAdapter getExternalBlobAdapterForPrefix(String prefix)
Returns the external blob adapter registered for given prefix.

See Also:
ExternalBlobAdapter

getExternalBlobAdapterForUri

ExternalBlobAdapter getExternalBlobAdapterForUri(String uri)
Returns the external blob adapter parsed from given URI.

See Also:
ExternalBlobAdapter

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.