Class BinaryBlobProvider

    • Field Detail

      • supportsUserUpdate

        protected boolean supportsUserUpdate
      • transientFlag

        protected boolean transientFlag
    • Constructor Detail

      • BinaryBlobProvider

        public BinaryBlobProvider​(BinaryManager binaryManager)
    • Method Detail

      • supportsUserUpdate

        public boolean supportsUserUpdate()
        Description copied from interface: BlobProvider
        Checks if user update is supported.

        A user update refers to the fact that a blob from this provider may be overwritten with another blob, wherever the original blob may occur (usually in a document property).

        Specified by:
        supportsUserUpdate in interface BlobProvider
        Returns:
        true if user update is supported
      • supportsUserUpdateDefaultTrue

        protected boolean supportsUserUpdateDefaultTrue​(Map<String,​String> properties)
      • isTransient

        public boolean isTransient()
        Description copied from interface: BlobProvider
        Checks whether this blob provider is transient: blobs may disappear after a while, so a caller should not rely on them being available forever.
        Specified by:
        isTransient in interface BlobProvider
      • stripBlobKeyPrefix

        protected String stripBlobKeyPrefix​(String key)
      • getFile

        public File getFile​(ManagedBlob blob)
        Description copied from interface: BlobProvider
        Gets a File (if one exists) for the data of a managed blob.
        Specified by:
        getFile in interface BlobProvider
        Parameters:
        blob - the managed blob
        Returns:
        the file, or null if no underlying file is available
      • fixupDigest

        protected void fixupDigest​(Blob blob,
                                   String digest)
        Fixup of the blob's digest, if possible.
        Parameters:
        blob - the blob
        digest - the digest
        Since:
        11.5