Class ObjectGroup
- java.lang.Object
-
- org.bson.Document
-
- fr.gouv.vitam.common.database.server.mongodb.VitamDocument<E>
-
- fr.gouv.vitam.metadata.core.database.collections.MetadataDocument<ObjectGroup>
-
- fr.gouv.vitam.metadata.core.database.collections.ObjectGroup
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class ObjectGroup extends MetadataDocument<ObjectGroup>
ObjectGroup:- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COPIES
Copiesstatic java.lang.String
DATAOBJECTVERSION
DataObjectVersionstatic java.lang.String
MANAGEMENT_CONTRACT_ID_VERSION
Management Contract Id Versionstatic java.lang.String
OBJECTDIGEST
Digeststatic java.lang.String
OBJECTDIGEST_TYPE
Digest Typestatic java.lang.String
OBJECTDIGEST_VALUE
Digest Valuestatic java.lang.String
OBJECTFORMAT
Object formatstatic java.lang.String
OBJECTID
Object UUIDstatic java.lang.String
OBJECTSIZE
Object sizestatic java.lang.String
OBJECTSTRATEHY
Storage Idstatic java.lang.String
OBJECTVERSION
Versionstatic java.lang.String
OGDEPTHS
depthsstatic java.lang.String
STORAGE
Storage Idstatic java.lang.String
USAGES
Usagesstatic java.lang.String
VERSIONS
Versionsstatic java.lang.String
VERSIONS_STORAGE
storage to objectGroup-
Fields inherited from class fr.gouv.vitam.metadata.core.database.collections.MetadataDocument
APPROXIMATE_CREATION_DATE, APPROXIMATE_UPDATE_DATE, ATOMIC_VERSION, GRAPH_LAST_PERSISTED_DATE, MANAGEMENT_CONTRACT_ID, NBCHILD, OG, OPI, OPS, ORIGINATING_AGENCIES, ORIGINATING_AGENCY, QUALIFIERS, TYPE, UNITUPS, UP
-
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 ObjectGroup()
Empty constructorObjectGroup(com.fasterxml.jackson.databind.JsonNode content)
Constructor from JsonObjectGroup(java.lang.String content)
Constructor from Json as TextObjectGroup(org.bson.Document content)
Constructor from Document
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mongodb.client.MongoCollection<ObjectGroup>
getCollection()
protected MetadataCollections
getMetadataCollections()
MetadataDocument<ObjectGroup>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given json-
Methods inherited from class fr.gouv.vitam.metadata.core.database.collections.MetadataDocument
checkId, getAtomicVersion, getCollectionOrEmpty, getId, getMapOrEmpty, getSp, getUp, setApproximateCreationDate, setApproximateUpdateDate, toStringDebug, toStringDirect
-
Methods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
getConcernedDiffLines, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString
-
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
-
USAGES
public static final java.lang.String USAGES
Usages- See Also:
- Constant Field Values
-
STORAGE
public static final java.lang.String STORAGE
Storage Id- See Also:
- Constant Field Values
-
VERSIONS
public static final java.lang.String VERSIONS
Versions- See Also:
- Constant Field Values
-
DATAOBJECTVERSION
public static final java.lang.String DATAOBJECTVERSION
DataObjectVersion- See Also:
- Constant Field Values
-
VERSIONS_STORAGE
public static final java.lang.String VERSIONS_STORAGE
storage to objectGroup- See Also:
- Constant Field Values
-
OBJECTSTRATEHY
public static final java.lang.String OBJECTSTRATEHY
Storage Id- See Also:
- Constant Field Values
-
OBJECTVERSION
public static final java.lang.String OBJECTVERSION
Version- See Also:
- Constant Field Values
-
OBJECTID
public static final java.lang.String OBJECTID
Object UUID- See Also:
- Constant Field Values
-
MANAGEMENT_CONTRACT_ID_VERSION
public static final java.lang.String MANAGEMENT_CONTRACT_ID_VERSION
Management Contract Id Version- See Also:
- Constant Field Values
-
OBJECTSIZE
public static final java.lang.String OBJECTSIZE
Object size- See Also:
- Constant Field Values
-
OBJECTFORMAT
public static final java.lang.String OBJECTFORMAT
Object format- See Also:
- Constant Field Values
-
OBJECTDIGEST
public static final java.lang.String OBJECTDIGEST
Digest- See Also:
- Constant Field Values
-
OBJECTDIGEST_VALUE
public static final java.lang.String OBJECTDIGEST_VALUE
Digest Value- See Also:
- Constant Field Values
-
OBJECTDIGEST_TYPE
public static final java.lang.String OBJECTDIGEST_TYPE
Digest Type- See Also:
- Constant Field Values
-
COPIES
public static final java.lang.String COPIES
Copies- See Also:
- Constant Field Values
-
OGDEPTHS
public static final java.lang.String OGDEPTHS
depths- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectGroup
public ObjectGroup()
Empty constructor
-
ObjectGroup
public ObjectGroup(com.fasterxml.jackson.databind.JsonNode content)
Constructor from Json- Parameters:
content
- the objectgroup of JsonNode format
-
ObjectGroup
public ObjectGroup(org.bson.Document content)
Constructor from Document- Parameters:
content
- the objectgroup of Document format
-
ObjectGroup
public ObjectGroup(java.lang.String content)
Constructor from Json as Text- Parameters:
content
- the objectgroup of String format
-
-
Method Detail
-
getMetadataCollections
protected MetadataCollections getMetadataCollections()
- Specified by:
getMetadataCollections
in classMetadataDocument<ObjectGroup>
- Returns:
- the associated VitamCollection
-
getCollection
protected com.mongodb.client.MongoCollection<ObjectGroup> getCollection()
- Specified by:
getCollection
in classMetadataDocument<ObjectGroup>
- Returns:
- the associated collection
-
newInstance
public MetadataDocument<ObjectGroup> 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<ObjectGroup>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
-