E
- Class used to implement the Documentpublic abstract class LogbookDocument<E>
extends org.bson.Document
Modifier and Type | Field and Description |
---|---|
static String |
EVENT_DETAILS
Contains the specific data as a json string
|
static String |
EVENTS
Contains the series of entries within the very same Logbook operation (1 operation) / Lifecycle (all)
|
static String |
ID
ID of each line: different for each sub type
|
static String |
LAST_PERSISTED_DATE
Last persistence date of the logbook document (timestamp of document storage in DB)
|
static String |
TENANT_ID
TenantId
|
static String |
VERSION
Version of the document: Incresed for each update
|
Constructor and Description |
---|
LogbookDocument()
Empty constructor
|
LogbookDocument(org.bson.Document content)
Constructor from Document
|
LogbookDocument(String content)
Constructor from Json
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getId() |
int |
getTenantId() |
int |
getVersion() |
String |
toString() |
String |
toStringDirect() |
append, clear, containsKey, containsValue, entrySet, equals, get, get, getBoolean, getBoolean, getDate, getDouble, getInteger, getInteger, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String ID
public static final String TENANT_ID
public static final String VERSION
public static final String LAST_PERSISTED_DATE
public static final String EVENTS
public static final String EVENT_DETAILS
public LogbookDocument()
public LogbookDocument(String content)
content
- in format StringIllegalArgumentException
- if Id is not a GUIDpublic LogbookDocument(org.bson.Document content)
content
- in format DocumentIllegalArgumentException
- if Id is not a GUIDpublic abstract String getId()
public final int getTenantId()
public final int getVersion()
public String toStringDirect()
public String toString()
toString
in class org.bson.Document
Copyright © 2018 Vitam. All rights reserved.