Class VitamSequence

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

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

  • Constructor Details

    • VitamSequence

      public VitamSequence()
      Empty Constructor
    • VitamSequence

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

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

      public VitamSequence(String content, Integer tenant)
      Parameters:
      content - in format String to create contract sequence
    • VitamSequence

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

    • newInstance

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

      public VitamSequence setId(String id)
      Parameters:
      id - the id of ingest contract sequence
      Returns:
      AccessionRegisterDetail
    • getName

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

      public VitamSequence setName(String name)
      Set or change the contract sequence name
      Parameters:
      name - to set
      Returns:
      this
    • getCounter

      public Integer getCounter()
      Get the contract sequence counter
      Returns:
      this
    • setCounter

      public VitamSequence setCounter(String counter)
      Set or change the contract sequence counter
      Parameters:
      counter - to set
      Returns:
      this