Class TraceabilityStorageService

java.lang.Object
fr.gouv.vitam.storage.engine.server.storagetraceability.TraceabilityStorageService

public class TraceabilityStorageService extends Object
Service that allow Storage Traceability to use StorageDistribution in order to get some file and information in Offers
  • Field Details

  • Constructor Details

    • TraceabilityStorageService

      public TraceabilityStorageService(StorageDistribution distribution)
  • Method Details

    • getLastSavedStorageLogIterator

      public Iterator<OfferLog> getLastSavedStorageLogIterator(String strategyId)
      Get the files of the last storage backup since the last traceability (fromDate)
      Parameters:
      strategyId - The storage strategy ID
      Returns:
      list of last saved files as iterator
    • getLastTraceabilityZip

      public String getLastTraceabilityZip(String strategyId)
      Get the last storage traceability zip fileName
      Parameters:
      strategyId - The storage strategy ID
      Returns:
      the zip's fileName of the last storage traceability operation
    • getObject

      public javax.ws.rs.core.Response getObject(String strategyId, String objectId, DataCategory category) throws StorageException
      Only direct call to @StorageDistribution.getContainerByCategory
      Parameters:
      strategyId - strategyID
      objectId - file id or name
      category - storage category of the file
      Returns:
      the file as stream
      Throws:
      StorageException - if some error technical problem while call StorageDistribution