Package fr.gouv.vitam.common.model
Class MetadataStorageHelper
- java.lang.Object
-
- fr.gouv.vitam.common.model.MetadataStorageHelper
-
public class MetadataStorageHelper extends java.lang.Object
Helper class for metadata documentation storage.
-
-
Constructor Summary
Constructors Constructor Description MetadataStorageHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.JsonNode
getGotWithLFC(com.fasterxml.jackson.databind.JsonNode document, com.fasterxml.jackson.databind.JsonNode lfc)
Create a jsonNode with the got document and its lfcstatic com.fasterxml.jackson.databind.JsonNode
getUnitFromUnitWithLFC(com.fasterxml.jackson.databind.JsonNode document)
Retrieve the unit from the unit + lfc objectstatic com.fasterxml.jackson.databind.JsonNode
getUnitWithLFC(com.fasterxml.jackson.databind.JsonNode document, com.fasterxml.jackson.databind.JsonNode lfc)
Create a jsonNode with the unit document and its lfc
-
-
-
Method Detail
-
getUnitWithLFC
public static com.fasterxml.jackson.databind.JsonNode getUnitWithLFC(com.fasterxml.jackson.databind.JsonNode document, com.fasterxml.jackson.databind.JsonNode lfc)
Create a jsonNode with the unit document and its lfc- Parameters:
document
- the unit nodelfc
- the lfc node- Returns:
- a new JsonNode with document and lfc inside
-
getUnitFromUnitWithLFC
public static com.fasterxml.jackson.databind.JsonNode getUnitFromUnitWithLFC(com.fasterxml.jackson.databind.JsonNode document)
Retrieve the unit from the unit + lfc object- Parameters:
document
- the unit + lfc node- Returns:
- the JsonNode of the unit inside the documuent
-
getGotWithLFC
public static com.fasterxml.jackson.databind.JsonNode getGotWithLFC(com.fasterxml.jackson.databind.JsonNode document, com.fasterxml.jackson.databind.JsonNode lfc)
Create a jsonNode with the got document and its lfc- Parameters:
document
- the unit nodelfc
- the lfc node- Returns:
- a new JsonNode with document and lfc inside
-
-