Class AccessContract

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

public class AccessContract extends VitamDocument<AccessContract>
Defines an Access contract model for SIP transfer control.
See Also:
  • Field Details

  • Constructor Details

    • AccessContract

      public AccessContract()
      Empty Constructor
    • AccessContract

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

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

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

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

    • newInstance

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

      public AccessContract setId(String id)
      Parameters:
      id - the id of access contract
      Returns:
      AccessionRegisterDetail
    • getName

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

      public AccessContract 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 AccessContract 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 access contact
    • setStatus

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

      public Set<String> getOriginatingAgencies()
      Returns:
      collection of originating agencies
    • setOriginatingAgencies

      public AccessContract setOriginatingAgencies(Set<String> originatingAgencies)
      Set the collection of originating agencies
      Parameters:
      originatingAgencies -
      Returns:
      this
    • getCreationdate

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

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

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

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

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

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

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

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