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

public class FileFormat extends VitamDocument<FileFormat>
FileFormat define the file referential format for Vitam
See Also:
  • Field Details

  • 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

      public FileFormat(String content)
      Parameters:
      content - in format String to create
  • Method Details

    • 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(String puid)
      setPUID
      Parameters:
      puid - as String
      Returns:
      FileFormat with puid setted
    • setExtension

      public FileFormat setExtension(List<String> extension)
      setExtension
      Parameters:
      extension - as a list of String
      Returns:
      FileFormat with extension setted
    • setName

      public FileFormat setName(String name)
      setName
      Parameters:
      name - as String
      Returns:
      FileFormat with name setted
    • setMimeType

      public FileFormat setMimeType(String mimeType)
      setMimeType
      Parameters:
      mimeType - as String
      Returns:
      FileFormat with mimeType setted
    • setVersion

      public FileFormat setVersion(String version)
      setVersion
      Parameters:
      version - as String
      Returns:
      FileFormat with version setted
    • setPriorityOverIdList

      public FileFormat setPriorityOverIdList(List<String> priorityOverIdList)
      setPriorityOverIdList
      Parameters:
      priorityOverIdList - as a list of String
      Returns:
      FileFormat
    • setCreatedDate

      public FileFormat setCreatedDate(String createdDate)
      setCreatedDate
      Parameters:
      createdDate - as String
      Returns:
      FileFormat with createdDate setted
    • setPronomVersion

      public FileFormat setPronomVersion(String pronomVersion)
      setPronomVersion
      Parameters:
      pronomVersion - as String
      Returns:
      FileFormat with pronomVersion setted
    • setComment

      public FileFormat setComment(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(String group)
      setGroup
      Parameters:
      group - as String
      Returns:
      FileFormat with pronomVersion setted