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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringeliminationstatic final Stringstatic final StringManagement : { various rules per themes }static final StringMAXDEPTH : maxstatic final StringMINDEPTH : minstatic final Stringstatic final StringUnitType : normal or holding schemestatic final StringUNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }static final StringUNITUPS : [ UUID1, UUID2 ]static final StringFields 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_PATHFields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSIONFields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.mongodb.client.MongoCollection<Unit>protected MetadataCollectionsvoidmergeWith(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, toStringDirectMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
getConcernedDiffLines, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toStringMethods 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, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bson.conversions.Bson
toBsonDocumentMethods 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:VitamDocumentMake a new instance of the document with the given json- Specified by:
newInstancein classVitamDocument<Unit>- Parameters:
content- document structure as json- Returns:
- new document with the json as content
-
getCollection
- Specified by:
getCollectionin classMetadataDocument<Unit>- Returns:
- the associated collection
-
getMetadataCollections
- Specified by:
getMetadataCollectionsin classMetadataDocument<Unit>- Returns:
- the associated VitamCollection
-
mergeWith
add graph information into unit.- Parameters:
unitGraphModel-
-