java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<Profile>
fr.gouv.vitam.functional.administration.common.Profile
All Implemented Interfaces:
Serializable, Map<String,Object>, org.bson.conversions.Bson

public class Profile extends VitamDocument<Profile>
Defines a Profile collection.
See Also:
  • Field Details

  • Constructor Details

    • Profile

      public Profile()
      Empty Constructor
    • Profile

      public Profile(org.bson.Document document)
      Constructor
      Parameters:
      document - data in format Document to create contact
    • Profile

      public Profile(com.fasterxml.jackson.databind.JsonNode content)
      Parameters:
      content - in format JsonNode to create profile
    • Profile

      public Profile(String content)
      Parameters:
      content - in format String to create profile
    • Profile

      public Profile(Integer tenantId)
      Parameters:
      tenantId - the working tenant
  • Method Details

    • newInstance

      public VitamDocument<Profile> 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<Profile>
      Parameters:
      content - document structure as json
      Returns:
      new document with the json as content
    • setId

      public Profile setId(String id)
      Parameters:
      id - the id of ingest profile
      Returns:
      AccessionRegisterDetail
    • getIdentifier

      public String getIdentifier()
      The profile id
      Returns:
      the id of the profile
    • setIdentifier

      public Profile setIdentifier(String identifier)
      Set or change the profile id, the identifier must be unique by tenant
      Parameters:
      identifier -
      Returns:
      this
    • getName

      public String getName()
      Name of the profile
      Returns:
      name of profile
    • setName

      public Profile setName(String name)
      Set or change the profile name
      Parameters:
      name - to set
      Returns:
      this
    • getDescription

      public String getDescription()
      Get the profile description
      Returns:
      this
    • setDescription

      public Profile setDescription(String description)
      Set or change the profile description
      Parameters:
      description - to set to contact
      Returns:
      this
    • getStatus

      public ProfileStatus getStatus()
      Get the profile status If toJson called without MongoClient configuration this will thow codec exception
      Returns:
      status of ingest contact
    • setStatus

      public Profile setStatus(ProfileStatus status)
      Set or change the profile status
      Parameters:
      status - to set
      Returns:
      this
    • setFormat

      public Profile setFormat(ProfileFormat format)
      Set or change the profile format (xsd, rng, ...)
      Parameters:
      format -
      Returns:
      this
    • getSedaVersion

      public ProfileSedaVersion getSedaVersion()
      Get the profile seda version
      Returns:
      the profile seda version
    • setSedaVersion

      public Profile setSedaVersion(ProfileSedaVersion sedaVersion)
      Set or change the seda version
      Parameters:
      sedaVersion -
      Returns:
      this
    • getPath

      public String getPath()
      The profile file path in storage
      Returns:
      the profile path
    • setPath

      public Profile setPath(String path)
      Set or change the profile path
      Parameters:
      path -
      Returns:
      this
    • getFormat

      public ProfileFormat getFormat()
      The profile file format If toJson called without MongoClient configuration this will thow codec exception
      Returns:
      the profile format
    • getCreationdate

      public String getCreationdate()
      Returns:
      creation date of profile
    • setCreationdate

      public Profile setCreationdate(String creationdate)
      Parameters:
      creationdate - to set
      Returns:
      this
    • getLastupdate

      public String getLastupdate()
      Returns:
      last update of profile
    • setLastupdate

      public Profile setLastupdate(String lastupdate)
      Parameters:
      lastupdate - to set
      Returns:
      this
    • getActivationdate

      public String getActivationdate()
      Returns:
      activation date of profile
    • setActivationdate

      public Profile setActivationdate(String activationdate)
      Parameters:
      activationdate - to set
      Returns:
      this
    • getDeactivationdate

      public String getDeactivationdate()
      Returns:
      desactivation date of profile
    • setDeactivationdate

      public Profile setDeactivationdate(String deactivationdate)
      Parameters:
      deactivationdate - to set
      Returns:
      this