Class MetadataDocumentHelper


  • public class MetadataDocumentHelper
    extends java.lang.Object
    Helper class for metadata documents fields (units & object groups).
    • Constructor Detail

      • MetadataDocumentHelper

        public MetadataDocumentHelper()
    • Method Detail

      • getComputedGraphUnitFields

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

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

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

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

        public static java.util.Set<java.lang.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 java.lang.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 java.lang.String getStrategyIdFromUnit​(com.fasterxml.jackson.databind.JsonNode unitJson)
        Retrieve the strategyId from a unit json
        Parameters:
        unitJson - unit json
        Returns:
        strategyId