Class 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 Detail

      • 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
      • 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 class VitamDocument<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