Class Unit
- java.lang.Object
-
- org.bson.Document
-
- fr.gouv.vitam.common.database.server.mongodb.VitamDocument<E>
-
- fr.gouv.vitam.metadata.core.database.collections.MetadataDocument<Unit>
-
- fr.gouv.vitam.metadata.core.database.collections.Unit
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class Unit extends MetadataDocument<Unit>
Unit class:- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COMPUTED_INHERITED_RULES
static java.lang.String
ELIMINATION
eliminationstatic java.lang.String
GRAPH
static java.lang.String
MANAGEMENT
Management : { various rules per themes }static java.lang.String
MAXDEPTH
MAXDEPTH : maxstatic java.lang.String
MINDEPTH
MINDEPTH : minstatic java.lang.String
OPERATION_TRANSFERS
static java.lang.String
PARENT_ORIGINATING_AGENCIES
static java.lang.String
UNIT_TYPE
UnitType : normal or holding schemestatic java.lang.String
UNITDEPTHS
UNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }static java.lang.String
UNITUPS
UNITUPS : [ UUID1, UUID2 ]static java.lang.String
VALID_COMPUTED_INHERITED_RULES
-
Fields inherited from class fr.gouv.vitam.metadata.core.database.collections.MetadataDocument
ATOMIC_VERSION, GRAPH_LAST_PERSISTED_DATE, NBCHILD, OG, OPI, OPS, ORIGINATING_AGENCIES, ORIGINATING_AGENCY, QUALIFIERS, TYPE, UP
-
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mongodb.client.MongoCollection<Unit>
getCollection()
protected MetadataCollections
getMetadataCollections()
void
mergeWith(UnitGraphModel unitGraphModel)
add graph information into unit.MetadataDocument<Unit>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given json-
Methods inherited from class fr.gouv.vitam.metadata.core.database.collections.MetadataDocument
checkId, getAtomicVersion, getCollectionOrEmpty, getId, getMapOrEmpty, getSp, getUp, toStringDebug, toStringDirect
-
Methods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
getConcernedDiffLines, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString
-
Methods inherited from class org.bson.Document
append, clear, containsKey, containsValue, entrySet, equals, get, get, get, getBoolean, getBoolean, getDate, getDouble, getEmbedded, getEmbedded, getInteger, getInteger, getList, getList, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
-
-
-
-
Field Detail
-
UNITDEPTHS
public static final java.lang.String UNITDEPTHS
UNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }- See Also:
- Constant Field Values
-
UNITUPS
public static final java.lang.String UNITUPS
UNITUPS : [ UUID1, UUID2 ]- See Also:
- Constant Field Values
-
MINDEPTH
public static final java.lang.String MINDEPTH
MINDEPTH : min- See Also:
- Constant Field Values
-
MAXDEPTH
public static final java.lang.String MAXDEPTH
MAXDEPTH : max- See Also:
- Constant Field Values
-
MANAGEMENT
public static final java.lang.String MANAGEMENT
Management : { various rules per themes }- See Also:
- Constant Field Values
-
ELIMINATION
public static final java.lang.String ELIMINATION
elimination- See Also:
- Constant Field Values
-
COMPUTED_INHERITED_RULES
public static final java.lang.String COMPUTED_INHERITED_RULES
- See Also:
- Constant Field Values
-
VALID_COMPUTED_INHERITED_RULES
public static final java.lang.String VALID_COMPUTED_INHERITED_RULES
- See Also:
- Constant Field Values
-
OPERATION_TRANSFERS
public static final java.lang.String OPERATION_TRANSFERS
- See Also:
- Constant Field Values
-
UNIT_TYPE
public static final java.lang.String UNIT_TYPE
UnitType : normal or holding scheme- See Also:
- Constant Field Values
-
GRAPH
public static final java.lang.String GRAPH
- See Also:
- Constant Field Values
-
PARENT_ORIGINATING_AGENCIES
public static final java.lang.String PARENT_ORIGINATING_AGENCIES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Unit
public Unit()
Empty constructor
-
Unit
public Unit(com.fasterxml.jackson.databind.JsonNode content)
Constructor from Json- Parameters:
content
- of type JsonNode for building Unit
-
Unit
public Unit(org.bson.Document content)
Constructor from Document- Parameters:
content
- of type Document for building Unit
-
Unit
public Unit(java.lang.String content)
Constructor from Json as Text- Parameters:
content
- of type String for building Unit
-
-
Method Detail
-
newInstance
public MetadataDocument<Unit> newInstance(com.fasterxml.jackson.databind.JsonNode content)
Description copied from class:VitamDocument
Make a new instance of the document with the given json- Specified by:
newInstance
in classVitamDocument<Unit>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
getCollection
protected com.mongodb.client.MongoCollection<Unit> getCollection()
- Specified by:
getCollection
in classMetadataDocument<Unit>
- Returns:
- the associated collection
-
getMetadataCollections
protected MetadataCollections getMetadataCollections()
- Specified by:
getMetadataCollections
in classMetadataDocument<Unit>
- Returns:
- the associated VitamCollection
-
mergeWith
public void mergeWith(UnitGraphModel unitGraphModel)
add graph information into unit.- Parameters:
unitGraphModel
-
-
-