Class ArchiveUnitProfile

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

public class ArchiveUnitProfile extends VitamDocument<ArchiveUnitProfile>
Defines an archive unit Profile collection.
See Also:
  • Field Details

  • Constructor Details

    • ArchiveUnitProfile

      public ArchiveUnitProfile()
      Empty Constructor
    • ArchiveUnitProfile

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

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

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

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

    • newInstance

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

      public ArchiveUnitProfile 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 ArchiveUnitProfile 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 ArchiveUnitProfile 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 ArchiveUnitProfile setDescription(String description)
      Set or change the profile description
      Parameters:
      description - to set to contact
      Returns:
      this
    • getStatus

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

      public ArchiveUnitProfile setStatus(ArchiveUnitProfileStatus status)
      Set or change the profile status
      Parameters:
      status - to set
      Returns:
      this
    • getSedaVersion

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

      public ArchiveUnitProfile setSedaVersion(ArchiveUnitProfileSedaVersion sedaVersion)
      Set the profile seda version
      Parameters:
      sedaVersion -
      Returns:
      this
    • getCreationdate

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

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

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

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

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

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

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

      public ArchiveUnitProfile setDeactivationdate(String deactivationdate)
      Parameters:
      deactivationdate - to set
      Returns:
      this
    • getControlSchema

      public String getControlSchema()
      Returns:
      the ControlSchema of the profile
    • setControlSchema

      public ArchiveUnitProfile setControlSchema(String ControlSchema)
      Parameters:
      ControlSchema - to set
      Returns:
      this