public class StorageClientUtil extends Object
Constructor and Description |
---|
StorageClientUtil() |
Modifier and Type | Method and Description |
---|---|
static List<ObjectGroupDocumentHash> |
extractListObjectsFromJson(com.fasterxml.jackson.databind.JsonNode og,
StorageClient storageClient,
AlertService alertService)
Extract Document Objects from ObjectGroup jsonNode and populate
LifeCycleTraceabilitySecureFileObject.objectGroupDocumentHashList
with hash retrieved from storage offer |
static String |
getLFCAndMetadataGlobalHashFromStorage(com.fasterxml.jackson.databind.JsonNode metadataOrDocumentJsonNode,
DataCategory dataCategory,
String objectId,
StorageClient storageClient,
AlertService alertService)
retrieve global Hash (lfc+metadata{unit|og} or Object Doucment under og) from storage offers picked from the optimistic
SedaConstants.STORAGE node |
public static String getLFCAndMetadataGlobalHashFromStorage(com.fasterxml.jackson.databind.JsonNode metadataOrDocumentJsonNode, DataCategory dataCategory, String objectId, StorageClient storageClient, AlertService alertService) throws ProcessingException
SedaConstants.STORAGE
nodemetadataOrDocumentJsonNode
- json document for the metadadataObject (Unit or ObjectGroup) or plain document (raw type)dataCategory
- the data categoryobjectId
- the object idProcessingException
- Exception thrown when :
StorageNotFoundClientException
or StorageServerClientException
if no connection can be done for the given storage strategy
InvalidParseOperationException
if no digest information was found when parsing json node
public static List<ObjectGroupDocumentHash> extractListObjectsFromJson(com.fasterxml.jackson.databind.JsonNode og, StorageClient storageClient, AlertService alertService) throws ProcessingException
LifeCycleTraceabilitySecureFileObject.objectGroupDocumentHashList
with hash retrieved from storage offerog
- objectProcessingException
Copyright © 2018 Vitam. All rights reserved.