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
,WorkerAction
,java.lang.AutoCloseable
- Direct Known Subclasses:
BulkAtomicUpdateProcess
,MassUpdateUnitsProcess
,MassUpdateUnitsRulesProcess
,MigrationUnits
public abstract class StoreMetadataObjectActionHandler extends StoreObjectActionHandler
-
-
Constructor Summary
Constructors Constructor Description StoreMetadataObjectActionHandler(StorageClientFactory storageClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.fasterxml.jackson.databind.JsonNode
getRawLogbookLifeCycleById(java.lang.String idDocument, DataCategory dataCategory, LogbookLifeCyclesClient logbookClient)
retrieve the Raw LFC for the metadata document (Unit or Got)protected com.fasterxml.jackson.databind.JsonNode
selectMetadataDocumentRawById(java.lang.String idDocument, DataCategory dataCategory, MetaDataClient metaDataClient)
selectMetadataDocumentById, Retrieve Metadata Document from DB-
Methods inherited from class fr.gouv.vitam.worker.core.plugin.StoreObjectActionHandler
storeObject, storeObjects, storeStorageInfos, updateSubTasksAndTasksFromStorageInfos
-
Methods inherited from class fr.gouv.vitam.worker.core.handler.ActionHandler
checkMandatoryParameters, close, updateDetailItemStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fr.gouv.vitam.worker.core.api.WorkerAction
checkMandatoryIOParameter, execute, executeList
-
-
-
-
Constructor Detail
-
StoreMetadataObjectActionHandler
public StoreMetadataObjectActionHandler(StorageClientFactory storageClientFactory)
-
-
Method Detail
-
selectMetadataDocumentRawById
protected com.fasterxml.jackson.databind.JsonNode selectMetadataDocumentRawById(java.lang.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(java.lang.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
-
-