Class IngestContract

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

public class IngestContract extends VitamDocument<IngestContract>
Defines an Ingest contract model for SIP transfer control.
It's an implementation of the SEDA specification and NF Z44022 MEDONA concerning the communication between a TransferringAgency and an ArchivalAgency.
See Also:
  • Field Details

  • Constructor Details

    • IngestContract

      public IngestContract()
      Empty Constructor
    • IngestContract

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

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

      public IngestContract(String content)
      Parameters:
      content - in format String to create contract
    • IngestContract

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

    • setId

      public IngestContract setId(String id)
      Parameters:
      id - the id of ingest contract
      Returns:
      AccessionRegisterDetail
    • newInstance

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

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

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

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

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

      public ActivationStatus getStatus()
      Get the contract status
      Returns:
      status of ingest contact
    • setStatus

      public IngestContract setStatus(ActivationStatus status)
      Set or change the contract status
      Parameters:
      status - to set
      Returns:
      this
    • setCheckParentLink

      public IngestContract setCheckParentLink(IngestContractCheckState checkParentLink)
      Set or change the contract status
      Parameters:
      checkParentLink - to set
      Returns:
      this
    • getCheckParentLink

      public IngestContractCheckState getCheckParentLink()
      Get the contract check ParentLink status
      Returns:
      status of checkParentLink for this ingest contact
    • getArchiveProfiles

      public Set<String> getArchiveProfiles()
      Returns:
      collection of archive profiles
    • setArchiveProfiles

      public IngestContract setArchiveProfiles(Set<String> archiveProfiles)
      Set the collection of archive profiles
      Parameters:
      archiveProfiles -
      Returns:
      this
    • getCreationdate

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

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

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

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

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

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

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

      public IngestContract setDeactivationdate(String deactivationdate)
      Parameters:
      deactivationdate - to set
      Returns:
      this
    • getEveryDataObjectVersion

      public Boolean getEveryDataObjectVersion()
    • setEveryDataObjectVersion

      public IngestContract setEveryDataObjectVersion(boolean everyDataObjectVersion)
    • getMasterMandatory

      public Boolean getMasterMandatory()
    • setMasterMandatory

      public IngestContract setMasterMandatory(boolean masterMandatory)
    • getEveryFormatType

      public Boolean getEveryFormatType()
    • setEveryFormatType

      public IngestContract setEveryFormatType(boolean everyFormatType)
    • getFormatUnidentifiedAuthorized

      public Boolean getFormatUnidentifiedAuthorized()
    • setFormatUnidentifiedAuthorized

      public IngestContract setFormatUnidentifiedAuthorized(boolean formatUnidentifiedAuthorized)
    • setManagementContractId

      public IngestContract setManagementContractId(String managementContractId)
    • getManagementContractId

      public String getManagementContractId()