Class Schema
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<Schema>
fr.gouv.vitam.functional.administration.common.schema.Schema
- All Implemented Interfaces:
Serializable,Map<String,,Object> org.bson.conversions.Bson
Defines a schema collection.
- See Also:
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe creation date of the schemastatic final Stringthe last update of schemastatic final StringCollections Tagstatic final StringDescription Tagstatic final StringisObject Tagstatic final StringOrigin Tagstatic final StringThe path tagstatic final StringpathCardinality tagstatic final StringShortName TagFields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID, VERSIONFields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe schema cardinalityThe schema collection of the elementThe schema descriptionbooleanThe schema IsObjectThe schema origingetPath()The schema pathThe schema shortNamenewInstance(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonsetCardinality(String cardinality) Set or change the schema cardinalitysetCollection(String collection) Set or change the schema collectionsetCreationdate(String creationdate) setDescription(String description) Set or change the schema descriptionsetIsObject(boolean isObject) Set or change the schema IsObjectsetLastupdate(String lastupdate) Set or change the schema originSet or change the schema pathsetShortName(String shortName) Set or change the schema shortNameMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirectMethods 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, valuesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bson.conversions.Bson
toBsonDocumentMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
TAG_COLLECTION
Collections Tag- See Also:
-
TAG_DESCRIPTION
Description Tag- See Also:
-
TAG_ORIGIN
Origin Tag- See Also:
-
TAG_SHORT_NAME
ShortName Tag- See Also:
-
TAG_IS_OBJECT_NAME
isObject Tag- See Also:
-
TAG_PATH
The path tag- See Also:
-
TAG_PATH_CARDINALITY
pathCardinality tag- See Also:
-
CREATIONDATE
the creation date of the schema- See Also:
-
LAST_UPDATE
the last update of schema- See Also:
-
-
Constructor Details
-
Schema
public Schema()Empty Constructor -
Schema
public Schema(org.bson.Document document) Constructor- Parameters:
document- data in format Document to create Schema
-
Schema
public Schema(com.fasterxml.jackson.databind.JsonNode content) - Parameters:
content- in format JsonNode to create Schema
-
Schema
- Parameters:
content- in format String to create Schema
-
Schema
- Parameters:
tenantId- the working tenant
-
-
Method Details
-
newInstance
Description copied from class:VitamDocumentMake a new instance of the document with the given json- Specified by:
newInstancein classVitamDocument<Schema>- Parameters:
content- document structure as json- Returns:
- new document with the json as content
-
setId
- Parameters:
id- the id of schema- Returns:
-
getDescription
The schema description- Returns:
- the description of the schema
-
setDescription
Set or change the schema description- Parameters:
description-- Returns:
- this
-
getCollection
The schema collection of the element- Returns:
- the collection of the schema element
-
setCollection
Set or change the schema collection- Parameters:
collection-- Returns:
- this
-
getOrigin
The schema origin- Returns:
- the origin of the schema
-
setOrigin
Set or change the schema origin- Parameters:
origin-- Returns:
- this
-
getShortName
The schema shortName- Returns:
- the shortName of the schema
-
setShortName
Set or change the schema shortName- Parameters:
shortName-- Returns:
- this
-
getIsObject
public boolean getIsObject()The schema IsObject- Returns:
- the IsObject of the schema
-
setIsObject
Set or change the schema IsObject- Parameters:
isObject-- Returns:
- this
-
getPath
The schema path- Returns:
- the path of the schema
-
setPath
Set or change the schema path- Parameters:
path-- Returns:
- this
-
getCardinality
The schema cardinality- Returns:
- the cardinality of the schema
-
setCardinality
Set or change the schema cardinality- Parameters:
cardinality-- Returns:
- this
-
getCreationdate
- Returns:
- creation date of schema elt
-
setCreationdate
- Parameters:
creationdate- to set- Returns:
- this
-
getLastupdate
- Returns:
- last update of profile
-
setLastupdate
- Parameters:
lastupdate- to set- Returns:
- this
-