Interface BlobStore

All Superinterfaces:
MultiEntryStore<Blob>

public interface BlobStore extends MultiEntryStore<Blob>
The blob store can be used store unstructured data in form of a Blob.
Since:
1.23
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a new blob object with automatically generated id.
    Create a new blob object with the given id.
    Return all blob object which are stored in this BlobStore.
    void
    remove(Blob blob)
    Remove the given blob object-

    Methods inherited from interface sonia.scm.store.MultiEntryStore

    clear, get, getOptional, remove
  • Method Details

    • create

      Blob create()
      Create a new blob object with automatically generated id.
      Returns:
      new blob
    • create

      Blob create(String id)
      Create a new blob object with the given id.
      Parameters:
      id - id of the new blob
      Returns:
      new blob
      Throws:
      EntryAlreadyExistsStoreException - if a blob with given id already exists
    • remove

      void remove(Blob blob)
      Remove the given blob object-
      Parameters:
      blob - blob object to remove
    • getAll

      List<Blob> getAll()
      Return all blob object which are stored in this BlobStore.
      Returns:
      a list of all blob object