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:
Serializable
,Map<String,
,Object> org.bson.conversions.Bson
Unit class:
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
eliminationstatic final String
static final String
Management : { various rules per themes }static final String
MAXDEPTH : maxstatic final String
MINDEPTH : minstatic final String
static final String
UnitType : normal or holding schemestatic final String
UNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }static final String
UNITUPS : [ UUID1, UUID2 ]static final String
Fields inherited from class fr.gouv.vitam.metadata.core.database.collections.MetadataDocument
APPROXIMATE_CREATION_DATE, APPROXIMATE_UPDATE_DATE, ATOMIC_VERSION, BATCH_ID, GRAPH_LAST_PERSISTED_DATE, MANAGEMENT_CONTRACT_ID, NBCHILD, OG, OPI, OPS, ORIGINATING_AGENCIES, ORIGINATING_AGENCY, QUALIFIERS, TYPE, UP, UPLOAD_PATH
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.mongodb.client.MongoCollection<Unit>
protected MetadataCollections
void
mergeWith
(UnitGraphModel unitGraphModel) add graph information into unit.newInstance
(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonMethods inherited from class fr.gouv.vitam.metadata.core.database.collections.MetadataDocument
checkId, getAtomicVersion, getCollectionOrEmpty, getId, getMapOrEmpty, getSp, getUp, setApproximateCreationDate, setApproximateUpdateDate, 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bson.conversions.Bson
toBsonDocument
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
UNITDEPTHS
UNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }- See Also:
-
UNITUPS
UNITUPS : [ UUID1, UUID2 ]- See Also:
-
MINDEPTH
MINDEPTH : min- See Also:
-
MAXDEPTH
MAXDEPTH : max- See Also:
-
MANAGEMENT
Management : { various rules per themes }- See Also:
-
ELIMINATION
elimination- See Also:
-
COMPUTED_INHERITED_RULES
- See Also:
-
VALID_COMPUTED_INHERITED_RULES
- See Also:
-
OPERATION_TRANSFERS
- See Also:
-
UNIT_TYPE
UnitType : normal or holding scheme- See Also:
-
GRAPH
- See Also:
-
-
Constructor Details
-
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
Constructor from Json as Text- Parameters:
content
- of type String for building Unit
-
-
Method Details
-
newInstance
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
- Specified by:
getCollection
in classMetadataDocument<Unit>
- Returns:
- the associated collection
-
getMetadataCollections
- Specified by:
getMetadataCollections
in classMetadataDocument<Unit>
- Returns:
- the associated VitamCollection
-
mergeWith
add graph information into unit.- Parameters:
unitGraphModel
-
-