Class FileFormat
java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<FileFormat>
fr.gouv.vitam.functional.administration.common.FileFormat
- All Implemented Interfaces:
Serializable
,Map<String,
,Object> org.bson.conversions.Bson
FileFormat define the file referential format for Vitam
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
FileFormat alertstatic final String
FileFormat commentstatic final String
FileFormat Creation datestatic final String
FileFormat extensionstatic final String
FileFormat groupstatic final String
manage document prioritystatic final String
FileFormat Mime Typestatic final String
FileFormat namestatic final String
FileFormat PUID keystatic final String
Last update datestatic final String
FileFormat Versionstatic final String
FileFormat Pronom versionFields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID
Fields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY
-
Constructor Summary
ConstructorDescriptionempty constructorFileFormat
(com.fasterxml.jackson.databind.JsonNode content) FileFormat
(String content) FileFormat
(org.bson.Document document) constructor with Mongo Document -
Method Summary
Modifier and TypeMethodDescriptionnewInstance
(com.fasterxml.jackson.databind.JsonNode content) Make a new instance of the document with the given jsonsetAlert
(boolean alert) setAlertsetComment
(String comment) setCommentsetCreatedDate
(String createdDate) setCreatedDatesetExtension
(List<String> extension) setExtensionsetGroupsetMimeType
(String mimeType) setMimeTypesetNamesetPriorityOverIdList
(List<String> priorityOverIdList) setPriorityOverIdListsetPronomVersion
(String pronomVersion) setPronomVersionsetPUIDsetVersion
(String version) setVersionMethods inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
checkId, getConcernedDiffLines, getId, getOriginalDiffLines, getTenantId, getUnifiedDiff, getVersion, toString, toStringDirect
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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bson.conversions.Bson
toBsonDocument
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
PUID
FileFormat PUID key- See Also:
-
VERSION_PRONOM
FileFormat Pronom version- See Also:
-
VERSION
FileFormat Version- See Also:
-
CREATED_DATE
FileFormat Creation date- See Also:
-
UPDATE_DATE
Last update date- See Also:
-
HAS_PRIORITY_OVER_FILE_FORMAT_ID
manage document priority- See Also:
-
MIME_TYPE
FileFormat Mime Type- See Also:
-
NAME
FileFormat name- See Also:
-
GROUP
FileFormat group- See Also:
-
ALERT
FileFormat alert- See Also:
-
COMMENT
FileFormat comment- See Also:
-
EXTENSION
FileFormat extension- See Also:
-
-
Constructor Details
-
FileFormat
public FileFormat()empty constructor -
FileFormat
public FileFormat(org.bson.Document document) constructor with Mongo Document- Parameters:
document
- as Document of bson
-
FileFormat
public FileFormat(com.fasterxml.jackson.databind.JsonNode content) - Parameters:
content
- in format JsonNode to create
-
FileFormat
- Parameters:
content
- in format String to create
-
-
Method Details
-
newInstance
Description copied from class:VitamDocument
Make a new instance of the document with the given json- Specified by:
newInstance
in classVitamDocument<FileFormat>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
setPUID
setPUID- Parameters:
puid
- as String- Returns:
- FileFormat with puid setted
-
setExtension
setExtension- Parameters:
extension
- as a list of String- Returns:
- FileFormat with extension setted
-
setName
setName- Parameters:
name
- as String- Returns:
- FileFormat with name setted
-
setMimeType
setMimeType- Parameters:
mimeType
- as String- Returns:
- FileFormat with mimeType setted
-
setVersion
setVersion- Parameters:
version
- as String- Returns:
- FileFormat with version setted
-
setPriorityOverIdList
setPriorityOverIdList- Parameters:
priorityOverIdList
- as a list of String- Returns:
- FileFormat
-
setCreatedDate
setCreatedDate- Parameters:
createdDate
- as String- Returns:
- FileFormat with createdDate setted
-
setPronomVersion
setPronomVersion- Parameters:
pronomVersion
- as String- Returns:
- FileFormat with pronomVersion setted
-
setComment
setComment- Parameters:
comment
- as String- Returns:
- FileFormat with pronomVersion setted
-
setAlert
setAlert- Parameters:
alert
- as boolean- Returns:
- FileFormat with pronomVersion setted
-
setGroup
setGroup- Parameters:
group
- as String- Returns:
- FileFormat with pronomVersion setted
-