public class Unit extends MetadataDocument<Unit>
Modifier and Type | Field and Description |
---|---|
static String |
ACCESSEND |
static String |
ACCESSRULE
Access Rule
|
static String |
ACCESSRULES |
static String |
APPRAISALEND |
static String |
APPRAISALRULE
Appraisal Rule
|
static String |
APPRAISALRULES |
static String |
CLASSIFICATIONEND |
static String |
CLASSIFICATIONRULE
Classification Rule
|
static String |
CLASSIFICATIONRULES |
static String |
DISSEMINATIONEND |
static String |
DISSEMINATIONRULE
Dissemination Rule
|
static String |
DISSEMINATIONRULES |
static String |
ELIMINATION
elimination
|
static String |
END
Rule end date (computed)
|
static String |
GRAPH |
static String |
HISTORY |
static String |
MANAGEMENT
Management : { various rules per themes }
|
static String |
MAXDEPTH
MAXDEPTH : max
|
static String |
MINDEPTH
MINDEPTH : min
|
static String |
PARENT_ORIGINATING_AGENCIES |
static String |
REUSEEND |
static String |
REUSERULE
Reuse Rule
|
static String |
REUSERULES |
static String |
RULE
Rule
|
static String |
STORAGEEND |
static String |
STORAGERULE
Storage Rule
|
static String |
STORAGERULES |
static com.mongodb.BasicDBObject |
UNIT_ES_PROJECTION
Es projection (no UPS)
|
static String |
UNIT_TYPE
UnitType : normal or holding scheme
|
static String |
UNITDEPTHS
UNITDEPTHS : { depth1: [UUID1], depth2: [UUID2, UUID3] }
|
static String |
UNITUPS
UNITUPS : [ UUID1, UUID2 ]
|
ES_PROJECTION, 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, delete, getCollectionOrEmpty, getId, getMapOrEmpty, getSp, getUp, insert, toStringDebug, toStringDirect, update
getConcernedDiffLines, getTenantId, getUnifiedDiff, getVersion, toString
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 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 UNIT_TYPE
public static final String GRAPH
public static final String PARENT_ORIGINATING_AGENCIES
public static final String HISTORY
public static final com.mongodb.BasicDBObject UNIT_ES_PROJECTION
public static final String STORAGERULE
public static final String APPRAISALRULE
public static final String ACCESSRULE
public static final String DISSEMINATIONRULE
public static final String REUSERULE
public static final String CLASSIFICATIONRULE
public static final String RULE
public static final String END
public static final String STORAGERULES
public static final String STORAGEEND
public static final String APPRAISALRULES
public static final String APPRAISALEND
public static final String ACCESSRULES
public static final String ACCESSEND
public static final String DISSEMINATIONRULES
public static final String DISSEMINATIONEND
public static final String REUSERULES
public static final String REUSEEND
public static final String CLASSIFICATIONRULES
public static final String CLASSIFICATIONEND
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 © 2018 Vitam. All rights reserved.