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:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class MetadataSnapshot extends VitamDocument<MetadataSnapshot>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetadataSnapshot.PARAMETERS
Parameters
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NAME
the parameter namestatic java.lang.String
VALUE
the parameter value-
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
-
-
Constructor Summary
Constructors Constructor Description MetadataSnapshot()
MetadataSnapshot(com.fasterxml.jackson.databind.JsonNode content)
MetadataSnapshot(java.lang.String content)
MetadataSnapshot(org.bson.Document content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Name of the parameter<T> T
getValue(java.lang.Class<T> clasz)
Get the contract parameter valueMetadataSnapshot
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given jsonMetadataSnapshot
setId(java.lang.String id)
MetadataSnapshot
setName(java.lang.String name)
Set or change the parameter name<T> MetadataSnapshot
setValue(T value)
Set or change the parameter value-
Methods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirect
-
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
-
NAME
public static final java.lang.String NAME
the parameter name- See Also:
- Constant Field Values
-
VALUE
public static final java.lang.String VALUE
the parameter value- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
public MetadataSnapshot 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<MetadataSnapshot>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
setId
public MetadataSnapshot setId(java.lang.String id)
- Parameters:
id
- the id of parameter value- Returns:
- MetadataSnapshot
-
getName
public java.lang.String getName()
Name of the parameter- Returns:
- name of the parameter
-
setName
public MetadataSnapshot setName(java.lang.String name)
Set or change the parameter name- Parameters:
name
- to set- Returns:
- this
-
getValue
public <T> T getValue(java.lang.Class<T> clasz)
Get the contract parameter value- Returns:
- this
-
setValue
public <T> MetadataSnapshot setValue(T value)
Set or change the parameter value- Parameters:
value
- to set- Returns:
- this
-
-