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

public class Ontology extends VitamDocument<Ontology>
Defines an ontology collection.
See Also:
  • Field Details

  • Constructor Details

    • Ontology

      public Ontology()
      Empty Constructor
    • Ontology

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

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

      public Ontology(String content)
      Parameters:
      content - in format String to create ontology
    • Ontology

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

    • newInstance

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

      public Ontology setId(String id)
      Parameters:
      id - the id of ontology
      Returns:
    • getIdentifier

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

      public Ontology setIdentifier(String identifier)
      Set or change the ontology id, the identifier must be unique by tenant
      Parameters:
      identifier -
      Returns:
      this
    • getSedaField

      public String getSedaField()
      The ontology seda field
      Returns:
      the seda field of the ontology
    • setSedaField

      public Ontology setSedaField(String sedaField)
      Set or change the ontology seda field
      Parameters:
      sedaField -
      Returns:
      this
    • getApiField

      public String getApiField()
      The ontology api field
      Returns:
      the api field of the ontology
    • setApiField

      public Ontology setApiField(String apiField)
      Set or change the ontology api field
      Parameters:
      apiField -
      Returns:
      this
    • getDescription

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

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

      public OntologyType getType()
      Get the ontology type
      Returns:
      status of the ontology
    • setType

      public Ontology setType(OntologyType type)
      Set or change the ontology type
      Parameters:
      type - to set
      Returns:
      this
    • getOrigin

      public OntologyOrigin getOrigin()
      Get the ontology origin
      Returns:
      origin of the ontology
    • setOrigin

      public Ontology setOrigin(OntologyOrigin origin)
      Set or change the ontology origin
      Parameters:
      origin - to set
      Returns:
      this
    • getShortName

      public String getShortName()
      Get the ontology ShortName
      Returns:
      shortName of the ontology
    • setShortName

      public Ontology setShortName(String shortName)
      Set or change the ontology shortName
      Parameters:
      shortName - to set
      Returns:
      this
    • getCollections

      public List<String> getCollections()
    • setCollections

      public Ontology setCollections(List<String> collections)
      Set or change the ontology collections
      Parameters:
      collections - to set
      Returns:
      this
    • getCreationdate

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

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

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

      public Ontology setLastupdate(String lastupdate)
      Parameters:
      lastupdate - to set
      Returns:
      this
    • getTypeDetail

      public TypeDetail getTypeDetail()
      Returns:
      typeDetail of ontology
    • setTypeDetail

      public Ontology setTypeDetail(TypeDetail typeDetail)
      Parameters:
      typeDetail - to set
      Returns:
      this
    • getStringSize

      public StringSize getStringSize()
      Returns:
      string size of ontology
    • setStringSize

      public Ontology setStringSize(StringSize stringSize)
      Parameters:
      stringSize - to set
      Returns:
      this