Class StoreMetadataObjectActionHandler

All Implemented Interfaces:
VitamAutoCloseable, AutoCloseable
Direct Known Subclasses:
BulkAtomicUpdateProcess, MassUpdateUnitsProcess, MassUpdateUnitsRulesProcess, MigrationUnits

public abstract class StoreMetadataObjectActionHandler extends StoreObjectActionHandler
  • 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 uuid
      dataCategory - accepts UNIT or OBJECTGROUP
      metaDataClient - MetaDataClient to use
      Returns:
      JsonNode from the found document
      Throws:
      ProcessingException - if no result found or error during parsing response from metadata client
      VitamException
    • 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 uuid
      dataCategory - accepts UNIT or OBJECT_GROUP
      logbookClient - LogbookLifeCyclesClient to use
      Returns:
      the raw LFC
      Throws:
      ProcessingException - if no result found or error during parsing response from logbook client
      VitamException