Package fr.gouv.vitam.worker.core.plugin
Class StoreMetadataObjectActionHandler
java.lang.Object
fr.gouv.vitam.worker.core.handler.ActionHandler
fr.gouv.vitam.worker.core.plugin.StoreObjectActionHandler
fr.gouv.vitam.worker.core.plugin.StoreMetadataObjectActionHandler
- All Implemented Interfaces:
VitamAutoCloseable,AutoCloseable
- Direct Known Subclasses:
BulkAtomicUpdateProcess,MassUpdateUnitsProcess,MassUpdateUnitsRulesProcess,MigrationUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonNodegetRawLogbookLifeCycleById(String idDocument, DataCategory dataCategory, LogbookLifeCyclesClient logbookClient) retrieve the Raw LFC for the metadata document (Unit or Got)protected com.fasterxml.jackson.databind.JsonNodeselectMetadataDocumentRawById(String idDocument, DataCategory dataCategory, MetaDataClient metaDataClient) selectMetadataDocumentById, Retrieve Metadata Document from DBMethods inherited from class fr.gouv.vitam.worker.core.plugin.StoreObjectActionHandler
storeObject, storeObjects, storeStorageInfos, updateSubTasksAndTasksFromStorageInfosMethods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryIOParameter, checkMandatoryParameters, close, execute, executeList, updateDetailItemStatus
-
Constructor Details
-
StoreMetadataObjectActionHandler
public StoreMetadataObjectActionHandler()
-
-
Method Details
-
selectMetadataDocumentRawById
protected com.fasterxml.jackson.databind.JsonNode selectMetadataDocumentRawById(String idDocument, DataCategory dataCategory, MetaDataClient metaDataClient) throws VitamException selectMetadataDocumentById, Retrieve Metadata Document from DB- Parameters:
idDocument- document uuiddataCategory- accepts UNIT or OBJECTGROUPmetaDataClient- MetaDataClient to use- Returns:
- JsonNode from the found document
- Throws:
ProcessingException- if no result found or error during parsing response from metadata clientVitamException
-
getRawLogbookLifeCycleById
protected com.fasterxml.jackson.databind.JsonNode getRawLogbookLifeCycleById(String idDocument, DataCategory dataCategory, LogbookLifeCyclesClient logbookClient) throws VitamException retrieve the Raw LFC for the metadata document (Unit or Got)- Parameters:
idDocument- document uuiddataCategory- accepts UNIT or OBJECT_GROUPlogbookClient- LogbookLifeCyclesClient to use- Returns:
- the raw LFC
- Throws:
ProcessingException- if no result found or error during parsing response from logbook clientVitamException
-