Class UnitGraphModel

java.lang.Object
fr.gouv.vitam.metadata.core.database.collections.UnitGraphModel

public class UnitGraphModel extends Object
unit graph model.
  • Constructor Details

    • UnitGraphModel

      public UnitGraphModel(String id, String originatingAgency)
      Parameters:
      id - unit id of unit
      originatingAgency - originating agency of unit
    • UnitGraphModel

      public UnitGraphModel(Unit unit)
      Parameters:
      unit -
  • Method Details

    • addParent

      public void addParent(UnitGraphModel parent)
      Add graph parent information into current graph. Compute all graph information from current au.
      Parameters:
      parent - graph information.
    • id

      public String id()
    • parents

      public Set<String> parents()
    • ancestors

      public Set<String> ancestors()
    • originatingAgency

      public String originatingAgency()
    • originatingAgencies

      public Set<String> originatingAgencies()
    • unitDepths

      public Map<String,Collection<String>> unitDepths()
    • minDepth

      public int minDepth()
    • maxDepth

      public int maxDepth()
    • graph

      public Set<String> graph()