Class MetadataSnapshot
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<MetadataSnapshot>
fr.gouv.vitam.metadata.core.database.collections.MetadataSnapshot
- All Implemented Interfaces:
Serializable,Map<String,,Object> org.bson.conversions.Bson
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe parameter namestatic final Stringthe parameter valueFields 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
ConstructorsConstructorDescriptionMetadataSnapshot(com.fasterxml.jackson.databind.JsonNode content) MetadataSnapshot(String content) MetadataSnapshot(org.bson.Document content) -
Method Summary
Modifier and TypeMethodDescriptiongetName()Name of the parameter<T> TGet the contract parameter valuenewInstance(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonSet or change the parameter name<T> MetadataSnapshotsetValue(T value) Set or change the parameter valueMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirectMethods 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
-
NAME
the parameter name- See Also:
-
VALUE
the parameter value- See Also:
-
-
Constructor Details
-
MetadataSnapshot
public MetadataSnapshot() -
MetadataSnapshot
-
MetadataSnapshot
public MetadataSnapshot(com.fasterxml.jackson.databind.JsonNode content) -
MetadataSnapshot
public MetadataSnapshot(org.bson.Document content)
-
-
Method Details
-
newInstance
Description copied from class:VitamDocumentMake a new instance of the document with the given json- Specified by:
newInstancein classVitamDocument<MetadataSnapshot>- Parameters:
content- document structure as json- Returns:
- new document with the json as content
-
setId
- Parameters:
id- the id of parameter value- Returns:
- MetadataSnapshot
-
getName
Name of the parameter- Returns:
- name of the parameter
-
setName
Set or change the parameter name- Parameters:
name- to set- Returns:
- this
-
getValue
Get the contract parameter value- Returns:
- this
-
setValue
Set or change the parameter value- Parameters:
value- to set- Returns:
- this
-