Class MetadataDocumentHelper
java.lang.Object
fr.gouv.vitam.common.database.utils.MetadataDocumentHelper
Helper class for metadata documents fields (units & object groups).
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve main / secured object group fieldsRetrieve main / secured unit fieldsstatic String
getStrategyIdFromRawUnitOrGot
(com.fasterxml.jackson.databind.JsonNode documentJson) Retrieve the strategyId from a raw unit or got jsonstatic String
getStrategyIdFromUnit
(com.fasterxml.jackson.databind.JsonNode unitJson) Retrieve the strategyId from a unit jsonstatic void
removeComputedFieldsFromObjectGroup
(com.fasterxml.jackson.databind.JsonNode objectGroupJson) Removes computed graph fields from got jsonstatic void
removeComputedFieldsFromUnit
(com.fasterxml.jackson.databind.JsonNode unitJson) Removes computed fields (graph, elimination indexation...
-
Field Details
-
STORAGE_KEY
- See Also:
-
STRATEGY_KEY
- See Also:
-
-
Constructor Details
-
MetadataDocumentHelper
public MetadataDocumentHelper()
-
-
Method Details
-
getComputedGraphUnitFields
- Returns:
- the list of computed graph unit fields
-
getComputedGraphObjectGroupFields
- Returns:
- the list of computed graph object group fields
-
getTemporaryUnitFields
- Returns:
- the list of temporary unit fields
-
getComputedUnitFields
- Returns:
- the list of all unit computed fields (computed graph fields + temporary fields)
-
getComputedObjectGroupFields
- Returns:
- the list of all object group computed fields (computed graph fields + temporary fields)
-
removeComputedFieldsFromUnit
public static void removeComputedFieldsFromUnit(com.fasterxml.jackson.databind.JsonNode unitJson) Removes computed fields (graph, elimination indexation... ) from unit json- Parameters:
unitJson
-
-
removeComputedFieldsFromObjectGroup
public static void removeComputedFieldsFromObjectGroup(com.fasterxml.jackson.databind.JsonNode objectGroupJson) Removes computed graph fields from got json- Parameters:
objectGroupJson
-
-
getStrategyIdFromRawUnitOrGot
public static String getStrategyIdFromRawUnitOrGot(com.fasterxml.jackson.databind.JsonNode documentJson) Retrieve the strategyId from a raw unit or got json- Parameters:
documentJson
- unit or got json- Returns:
- strategyId
-
getStrategyIdFromUnit
Retrieve the strategyId from a unit json- Parameters:
unitJson
- unit json- Returns:
- strategyId
-
getSecuredUnitFields
Retrieve main / secured unit fields -
getSecuredObjectGroupFields
Retrieve main / secured object group fields
-