Class MetadataDocumentHelper

java.lang.Object
fr.gouv.vitam.common.database.utils.MetadataDocumentHelper

public class MetadataDocumentHelper extends Object
Helper class for metadata documents fields (units & object groups).
  • Field Details

  • Constructor Details

    • MetadataDocumentHelper

      public MetadataDocumentHelper()
  • Method Details

    • getComputedGraphUnitFields

      public static List<String> getComputedGraphUnitFields()
      Returns:
      the list of computed graph unit fields
    • getComputedGraphObjectGroupFields

      public static List<String> getComputedGraphObjectGroupFields()
      Returns:
      the list of computed graph object group fields
    • getTemporaryUnitFields

      public static Set<String> getTemporaryUnitFields()
      Returns:
      the list of temporary unit fields
    • getComputedUnitFields

      public static Set<String> getComputedUnitFields()
      Returns:
      the list of all unit computed fields (computed graph fields + temporary fields)
    • getComputedObjectGroupFields

      public static Set<String> 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

      public static String getStrategyIdFromUnit(com.fasterxml.jackson.databind.JsonNode unitJson)
      Retrieve the strategyId from a unit json
      Parameters:
      unitJson - unit json
      Returns:
      strategyId
    • getSecuredUnitFields

      public static Set<String> getSecuredUnitFields()
      Retrieve main / secured unit fields
    • getSecuredObjectGroupFields

      public static Set<String> getSecuredObjectGroupFields()
      Retrieve main / secured object group fields