Class LogbookLifeCycle<T>
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<LogbookLifeCycle<T>>
fr.gouv.vitam.logbook.common.server.database.collections.LogbookLifeCycle<T>
- Type Parameters:
T
- template
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> org.bson.conversions.Bson
- Direct Known Subclasses:
LogbookLifeCycleObjectGroup
,LogbookLifeCycleObjectGroupInProcess
,LogbookLifeCycleUnit
,LogbookLifeCycleUnitInProcess
Abstract class for Logbook LifeCycle item
- See Also:
-
Nested Class Summary
-
Field Summary
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
ConstructorDescriptionConstructorLogbookLifeCycle
(com.fasterxml.jackson.databind.JsonNode content) Constructor for CodecLogbookLifeCycle
(LogbookParameters parameters) Constructor from LogbookLifeCycleParametersLogbookLifeCycle
(String content) Constructor for CodecLogbookLifeCycle
(org.bson.Document content) Constructor for Codec -
Method Summary
Modifier and TypeMethodDescriptionList<org.bson.Document>
events()
final String
getId()
newInstance
(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, 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
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
-
Constructor Details
-
LogbookLifeCycle
public LogbookLifeCycle()Constructor -
LogbookLifeCycle
Constructor from LogbookLifeCycleParameters- Parameters:
parameters
- of type LogbookParameters- Throws:
IllegalArgumentException
- if argument is null
-
LogbookLifeCycle
public LogbookLifeCycle(org.bson.Document content) Constructor for Codec- Parameters:
content
- in format Document
-
LogbookLifeCycle
Constructor for Codec- Parameters:
content
- in format String
-
LogbookLifeCycle
public LogbookLifeCycle(com.fasterxml.jackson.databind.JsonNode content) Constructor for Codec- Parameters:
content
- in format JsonNode
-
-
Method Details
-
newInstance
public VitamDocument<LogbookLifeCycle<T>> 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<LogbookLifeCycle<T>>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
getId
- Overrides:
getId
in classVitamDocument<LogbookLifeCycle<T>>
- Returns:
- the ID
-
events
-