public class Unit extends MetadataDocument<Unit>
Modifier and Type | Field and Description |
---|---|
static String |
COMPUTED_INHERITED_RULES |
static String |
ELIMINATION
elimination
|
static String |
GRAPH |
static String |
MANAGEMENT
Management : { various rules per themes }
|
static String |
MAXDEPTH
MAXDEPTH : max
|
static String |
MINDEPTH
MINDEPTH : min
|
static String |
OPERATION_TRANSFERS |
static String |
PARENT_ORIGINATING_AGENCIES |
static String |
UNIT_TYPE
UnitType : normal or holding scheme
|
static String |
UNITDEPTHS
UNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }
|
static String |
UNITUPS
UNITUPS : [ UUID1, UUID2 ]
|
static String |
VALID_COMPUTED_INHERITED_RULES |
ATOMIC_VERSION, GRAPH_LAST_PERSISTED_DATE, NBCHILD, OG, OPI, OPS, ORIGINATING_AGENCIES, ORIGINATING_AGENCY, QUALIFIERS, TYPE, UP
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSION
Constructor and Description |
---|
Unit()
Empty constructor
|
Unit(org.bson.Document content)
Constructor from Document
|
Unit(com.fasterxml.jackson.databind.JsonNode content)
Constructor from Json
|
Unit(String content)
Constructor from Json as Text
|
Modifier and Type | Method and Description |
---|---|
protected com.mongodb.client.MongoCollection<Unit> |
getCollection() |
protected MetadataCollections |
getMetadataCollections() |
void |
mergeWith(UnitGraphModel unitGraphModel)
add graph information into unit.
|
MetadataDocument<Unit> |
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given json
|
checkId, getAtomicVersion, getCollectionOrEmpty, getId, getMapOrEmpty, getSp, getUp, toStringDebug, toStringDirect
getConcernedDiffLines, getTenantId, getUnifiedDiff, getVersion, toString
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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String UNITDEPTHS
public static final String UNITUPS
public static final String MINDEPTH
public static final String MAXDEPTH
public static final String MANAGEMENT
public static final String ELIMINATION
public static final String COMPUTED_INHERITED_RULES
public static final String VALID_COMPUTED_INHERITED_RULES
public static final String OPERATION_TRANSFERS
public static final String UNIT_TYPE
public static final String GRAPH
public static final String PARENT_ORIGINATING_AGENCIES
public Unit()
public Unit(com.fasterxml.jackson.databind.JsonNode content)
content
- of type JsonNode for building Unitpublic Unit(org.bson.Document content)
content
- of type Document for building Unitpublic Unit(String content)
content
- of type String for building Unitpublic MetadataDocument<Unit> newInstance(com.fasterxml.jackson.databind.JsonNode content)
VitamDocument
newInstance
in class VitamDocument<Unit>
content
- document structure as jsonprotected com.mongodb.client.MongoCollection<Unit> getCollection()
getCollection
in class MetadataDocument<Unit>
protected MetadataCollections getMetadataCollections()
getMetadataCollections
in class MetadataDocument<Unit>
public void mergeWith(UnitGraphModel unitGraphModel)
unitGraphModel
- Copyright © 2019 Vitam. All rights reserved.