Class TraceabilityStorageService
java.lang.Object
fr.gouv.vitam.storage.engine.server.storagetraceability.TraceabilityStorageService
Service that allow Storage Traceability to use StorageDistribution in order to get some file and information in Offers
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLastSavedStorageLogIterator
(String strategyId) Get the files of the last storage backup since the last traceability (fromDate)getLastTraceabilityZip
(String strategyId) Get the last storage traceability zip fileNamejavax.ws.rs.core.Response
getObject
(String strategyId, String objectId, DataCategory category) Only direct call to @StorageDistribution.getContainerByCategory
-
Field Details
-
TRACEABILITY_ORIGIN
- See Also:
-
-
Constructor Details
-
TraceabilityStorageService
-
-
Method Details
-
getLastSavedStorageLogIterator
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
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
- strategyIDobjectId
- file id or namecategory
- storage category of the file- Returns:
- the file as stream
- Throws:
StorageException
- if some error technical problem while call StorageDistribution
-