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:
java.io.Serializable
,java.util.Map<java.lang.String,java.lang.Object>
,org.bson.conversions.Bson
public class FileFormat extends VitamDocument<FileFormat>
FileFormat define the file referential format for Vitam- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALERT
FileFormat alertstatic java.lang.String
COMMENT
FileFormat commentstatic java.lang.String
CREATED_DATE
FileFormat Creation datestatic java.lang.String
EXTENSION
FileFormat extensionstatic java.lang.String
GROUP
FileFormat groupstatic java.lang.String
HAS_PRIORITY_OVER_FILE_FORMAT_ID
manage document prioritystatic java.lang.String
MIME_TYPE
FileFormat Mime Typestatic java.lang.String
NAME
FileFormat namestatic java.lang.String
PUID
FileFormat PUID keystatic java.lang.String
UPDATE_DATE
Last update datestatic java.lang.String
VERSION
FileFormat Versionstatic java.lang.String
VERSION_PRONOM
FileFormat Pronom version-
Fields inherited from class fr.gouv.vitam.common.database.server.mongodb.VitamDocument
ES_FILTER_OUT, ID, IMPLEMENTATIONVERSION, SCORE, SEDAVERSION, TENANT_ID
-
-
Constructor Summary
Constructors Constructor Description FileFormat()
empty constructorFileFormat(com.fasterxml.jackson.databind.JsonNode content)
FileFormat(java.lang.String content)
FileFormat(org.bson.Document document)
constructor with Mongo Document
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VitamDocument<FileFormat>
newInstance(com.fasterxml.jackson.databind.JsonNode content)
Make a new instance of the document with the given jsonFileFormat
setAlert(boolean alert)
setAlertFileFormat
setComment(java.lang.String comment)
setCommentFileFormat
setCreatedDate(java.lang.String createdDate)
setCreatedDateFileFormat
setExtension(java.util.List<java.lang.String> extension)
setExtensionFileFormat
setGroup(java.lang.String group)
setGroupFileFormat
setMimeType(java.lang.String mimeType)
setMimeTypeFileFormat
setName(java.lang.String name)
setNameFileFormat
setPriorityOverIdList(java.util.List<java.lang.String> priorityOverIdList)
setPriorityOverIdListFileFormat
setPronomVersion(java.lang.String pronomVersion)
setPronomVersionFileFormat
setPUID(java.lang.String puid)
setPUIDFileFormat
setVersion(java.lang.String version)
setVersion-
Methods 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
-
-
-
-
Field Detail
-
PUID
public static final java.lang.String PUID
FileFormat PUID key- See Also:
- Constant Field Values
-
VERSION_PRONOM
public static final java.lang.String VERSION_PRONOM
FileFormat Pronom version- See Also:
- Constant Field Values
-
VERSION
public static final java.lang.String VERSION
FileFormat Version- See Also:
- Constant Field Values
-
CREATED_DATE
public static final java.lang.String CREATED_DATE
FileFormat Creation date- See Also:
- Constant Field Values
-
UPDATE_DATE
public static final java.lang.String UPDATE_DATE
Last update date- See Also:
- Constant Field Values
-
HAS_PRIORITY_OVER_FILE_FORMAT_ID
public static final java.lang.String HAS_PRIORITY_OVER_FILE_FORMAT_ID
manage document priority- See Also:
- Constant Field Values
-
MIME_TYPE
public static final java.lang.String MIME_TYPE
FileFormat Mime Type- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
FileFormat name- See Also:
- Constant Field Values
-
GROUP
public static final java.lang.String GROUP
FileFormat group- See Also:
- Constant Field Values
-
ALERT
public static final java.lang.String ALERT
FileFormat alert- See Also:
- Constant Field Values
-
COMMENT
public static final java.lang.String COMMENT
FileFormat comment- See Also:
- Constant Field Values
-
EXTENSION
public static final java.lang.String EXTENSION
FileFormat extension- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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
public FileFormat(java.lang.String content)
- Parameters:
content
- in format String to create
-
-
Method Detail
-
newInstance
public VitamDocument<FileFormat> 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<FileFormat>
- Parameters:
content
- document structure as json- Returns:
- new document with the json as content
-
setPUID
public FileFormat setPUID(java.lang.String puid)
setPUID- Parameters:
puid
- as String- Returns:
- FileFormat with puid setted
-
setExtension
public FileFormat setExtension(java.util.List<java.lang.String> extension)
setExtension- Parameters:
extension
- as a list of String- Returns:
- FileFormat with extension setted
-
setName
public FileFormat setName(java.lang.String name)
setName- Parameters:
name
- as String- Returns:
- FileFormat with name setted
-
setMimeType
public FileFormat setMimeType(java.lang.String mimeType)
setMimeType- Parameters:
mimeType
- as String- Returns:
- FileFormat with mimeType setted
-
setVersion
public FileFormat setVersion(java.lang.String version)
setVersion- Parameters:
version
- as String- Returns:
- FileFormat with version setted
-
setPriorityOverIdList
public FileFormat setPriorityOverIdList(java.util.List<java.lang.String> priorityOverIdList)
setPriorityOverIdList- Parameters:
priorityOverIdList
- as a list of String- Returns:
- FileFormat
-
setCreatedDate
public FileFormat setCreatedDate(java.lang.String createdDate)
setCreatedDate- Parameters:
createdDate
- as String- Returns:
- FileFormat with createdDate setted
-
setPronomVersion
public FileFormat setPronomVersion(java.lang.String pronomVersion)
setPronomVersion- Parameters:
pronomVersion
- as String- Returns:
- FileFormat with pronomVersion setted
-
setComment
public FileFormat setComment(java.lang.String comment)
setComment- Parameters:
comment
- as String- Returns:
- FileFormat with pronomVersion setted
-
setAlert
public FileFormat setAlert(boolean alert)
setAlert- Parameters:
alert
- as boolean- Returns:
- FileFormat with pronomVersion setted
-
setGroup
public FileFormat setGroup(java.lang.String group)
setGroup- Parameters:
group
- as String- Returns:
- FileFormat with pronomVersion setted
-
-