Package fr.gouv.vitam.common.model
Class MetadataStorageHelper
java.lang.Object
fr.gouv.vitam.common.model.MetadataStorageHelper
Helper class for metadata documentation storage.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Field Details
-
UNIT_KEY
- See Also:
-
GOT_KEY
- See Also:
-
LFC_KEY
- See Also:
-
-
Constructor Details
-
MetadataStorageHelper
public MetadataStorageHelper()
-
-
Method Details
-
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
-