Class StoreInventoryDbBackedContentManager

java.lang.Object
nl.knaw.dans.lib.ocflext.StoreInventoryDbBackedContentManager
All Implemented Interfaces:
nl.knaw.dans.layerstore.DatabaseBackedContentManager

public class StoreInventoryDbBackedContentManager extends Object implements nl.knaw.dans.layerstore.DatabaseBackedContentManager
Content manager that selects inventory and sidecar files for storage in the database, but not those in the content directory, as it is theoretically possible to have inventory and sidecar files as part of the payload. It also compresses and decompresses the content of the inventory files, as these are likely to grow large. The sidecar files are not compressed.
  • Constructor Details

    • StoreInventoryDbBackedContentManager

      public StoreInventoryDbBackedContentManager()
  • Method Details

    • test

      public boolean test(String s)
      Specified by:
      test in interface nl.knaw.dans.layerstore.DatabaseBackedContentManager
    • preStore

      public byte[] preStore(String path, byte[] bytes)
      Specified by:
      preStore in interface nl.knaw.dans.layerstore.DatabaseBackedContentManager
    • postRetrieve

      public byte[] postRetrieve(String path, byte[] bytes)
      Specified by:
      postRetrieve in interface nl.knaw.dans.layerstore.DatabaseBackedContentManager