Package fr.gouv.vitam.metadata.core
Class UnitSimplified
- java.lang.Object
-
- fr.gouv.vitam.metadata.core.UnitSimplified
-
public class UnitSimplified extends java.lang.Object
Deprecated.: Use the new api /unitsWithInheritedRules instead. To be removed in future releases.POJO of simplified of Unit
-
-
Constructor Summary
Constructors Constructor Description UnitSimplified(com.fasterxml.jackson.databind.node.ObjectNode unitNode)
Deprecated.COnstructor with ObjectNodeUnitSimplified(java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode mgt, java.util.List<java.lang.String> up)
Deprecated.Constructor with id, management, parent direct
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>
getDirectParent()
Deprecated.java.lang.String
getId()
Deprecated.com.fasterxml.jackson.databind.node.ObjectNode
getManagement()
Deprecated.static java.util.Map<java.lang.String,UnitSimplified>
getUnitIdMap(java.lang.Iterable<com.fasterxml.jackson.databind.JsonNode> unitList)
Deprecated.UnitSimplified
setDirectParent(java.util.List<java.lang.String> directParent)
Deprecated.UnitSimplified
setId(java.lang.String id)
Deprecated.UnitSimplified
setManagement(com.fasterxml.jackson.databind.node.ObjectNode management)
Deprecated.
-
-
-
Constructor Detail
-
UnitSimplified
public UnitSimplified(com.fasterxml.jackson.databind.node.ObjectNode unitNode)
Deprecated.COnstructor with ObjectNode- Parameters:
unitNode
- for building UnitSimplified
-
UnitSimplified
public UnitSimplified(java.lang.String id, com.fasterxml.jackson.databind.node.ObjectNode mgt, java.util.List<java.lang.String> up)
Deprecated.Constructor with id, management, parent direct- Parameters:
id
- the id of UnitSimplifiedmgt
- the management of UnitSimplifiedup
- list of direct parent of UnitSimplified
-
-
Method Detail
-
getId
public java.lang.String getId()
Deprecated.- Returns:
- id of Unit as String
-
setId
public UnitSimplified setId(java.lang.String id)
Deprecated.- Parameters:
id
- as String- Returns:
- UnitSimplified where id is setted
-
getManagement
public com.fasterxml.jackson.databind.node.ObjectNode getManagement()
Deprecated.- Returns:
- management data of Unit as ObjectNode
-
setManagement
public UnitSimplified setManagement(com.fasterxml.jackson.databind.node.ObjectNode management)
Deprecated.- Parameters:
management
- of type ObjectNode- Returns:
- UnitSimplified where management is setted
-
getDirectParent
public java.util.List<java.lang.String> getDirectParent()
Deprecated.- Returns:
- list of unit parent as a List of String
-
setDirectParent
public UnitSimplified setDirectParent(java.util.List<java.lang.String> directParent)
Deprecated.- Parameters:
directParent
- as a list of String- Returns:
- UnitSimplified where directParent is setted
-
getUnitIdMap
public static java.util.Map<java.lang.String,UnitSimplified> getUnitIdMap(java.lang.Iterable<com.fasterxml.jackson.databind.JsonNode> unitList)
Deprecated.- Parameters:
unitList
- list of units as ArrayNode- Returns:
- a map of unitId and UnitSimplified
-
-