Class UnitGraphModel
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.database.collections.UnitGraphModel
-
public class UnitGraphModel extends java.lang.Object
unit graph model.
-
-
Constructor Summary
Constructors Constructor Description UnitGraphModel(Unit unit)
UnitGraphModel(java.lang.String id, java.lang.String originatingAgency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParent(UnitGraphModel parent)
Add graph parent information into current graph.java.util.Set<java.lang.String>
ancestors()
java.util.Set<java.lang.String>
graph()
java.lang.String
id()
int
maxDepth()
int
minDepth()
java.util.Set<java.lang.String>
originatingAgencies()
java.lang.String
originatingAgency()
java.util.Set<java.lang.String>
parents()
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>
unitDepths()
-
-
-
Constructor Detail
-
UnitGraphModel
public UnitGraphModel(java.lang.String id, java.lang.String originatingAgency)
- Parameters:
id
- unit id of unitoriginatingAgency
- originating agency of unit
-
UnitGraphModel
public UnitGraphModel(Unit unit)
- Parameters:
unit
-
-
-
Method Detail
-
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 java.lang.String id()
-
parents
public java.util.Set<java.lang.String> parents()
-
ancestors
public java.util.Set<java.lang.String> ancestors()
-
originatingAgency
public java.lang.String originatingAgency()
-
originatingAgencies
public java.util.Set<java.lang.String> originatingAgencies()
-
unitDepths
public java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> unitDepths()
-
minDepth
public int minDepth()
-
maxDepth
public int maxDepth()
-
graph
public java.util.Set<java.lang.String> graph()
-
-