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
FieldsModifier and TypeFieldDescriptionstatic final StringFileFormat alertstatic final StringFileFormat commentstatic final StringFileFormat Creation datestatic final StringFileFormat extensionstatic final StringFileFormat groupstatic final Stringmanage document prioritystatic final StringFileFormat Mime Typestatic final StringFileFormat namestatic final StringFileFormat PUID keystatic final StringLast update datestatic final StringFileFormat Versionstatic final StringFileFormat Pronom versionFields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_IDFields inherited from interface org.bson.conversions.Bson
DEFAULT_CODEC_REGISTRY -
Constructor Summary
ConstructorsConstructorDescriptionempty 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, 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
-
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:VitamDocumentMake a new instance of the document with the given json- Specified by:
newInstancein 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
-