Class StoreMetadataObjectActionHandler

    • 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 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​(java.lang.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