Class AbstractBlobHolder

java.lang.Object
org.nuxeo.ecm.core.api.blobholder.AbstractBlobHolder
All Implemented Interfaces:
BlobHolder
Direct Known Subclasses:
DocumentBlobHolder, DownloadBlobHolder, DownloadContextBlobHolder, SimpleBlobHolder

public abstract class AbstractBlobHolder extends Object implements BlobHolder
Base class for BlobHolder implementers
  • Constructor Details

    • AbstractBlobHolder

      public AbstractBlobHolder()
  • Method Details

    • setBlob

      public void setBlob(Blob blob)
      Description copied from interface: BlobHolder
      Sets a blob in the object.

      The underlying document must be saved by the caller.

      Specified by:
      setBlob in interface BlobHolder
    • getBlobs

      public List<Blob> getBlobs()
      Description copied from interface: BlobHolder
      Returns a list of blobs, if holder implementation supports multiple blobs.
      Specified by:
      getBlobs in interface BlobHolder
    • getBasePath

      protected abstract String getBasePath()
    • getFilePath

      public String getFilePath()
      Description copied from interface: BlobHolder
      Returns a filesystem-like path to represent the held blob.
      Specified by:
      getFilePath in interface BlobHolder
    • getHash

      public String getHash()
      Description copied from interface: BlobHolder
      Returns a hash for the held blob.
      Specified by:
      getHash in interface BlobHolder
    • getMD5Digest

      protected String getMD5Digest()