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

public class Schema extends VitamDocument<Schema>
Defines a schema collection.
See Also:
  • Field Details

  • Constructor Details

    • Schema

      public Schema()
      Empty Constructor
    • Schema

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

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

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

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

    • newInstance

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

      public Schema setId(String id)
      Parameters:
      id - the id of schema
      Returns:
    • getDescription

      public String getDescription()
      The schema description
      Returns:
      the description of the schema
    • setDescription

      public Schema setDescription(String description)
      Set or change the schema description
      Parameters:
      description -
      Returns:
      this
    • getCollection

      public String getCollection()
      The schema collection of the element
      Returns:
      the collection of the schema element
    • setCollection

      public Schema setCollection(String collection)
      Set or change the schema collection
      Parameters:
      collection -
      Returns:
      this
    • getOrigin

      public String getOrigin()
      The schema origin
      Returns:
      the origin of the schema
    • setOrigin

      public Schema setOrigin(String origin)
      Set or change the schema origin
      Parameters:
      origin -
      Returns:
      this
    • getShortName

      public String getShortName()
      The schema shortName
      Returns:
      the shortName of the schema
    • setShortName

      public Schema setShortName(String shortName)
      Set or change the schema shortName
      Parameters:
      shortName -
      Returns:
      this
    • getIsObject

      public boolean getIsObject()
      The schema IsObject
      Returns:
      the IsObject of the schema
    • setIsObject

      public Schema setIsObject(boolean isObject)
      Set or change the schema IsObject
      Parameters:
      isObject -
      Returns:
      this
    • getPath

      public String getPath()
      The schema path
      Returns:
      the path of the schema
    • setPath

      public Schema setPath(String path)
      Set or change the schema path
      Parameters:
      path -
      Returns:
      this
    • getCardinality

      public String getCardinality()
      The schema cardinality
      Returns:
      the cardinality of the schema
    • setCardinality

      public Schema setCardinality(String cardinality)
      Set or change the schema cardinality
      Parameters:
      cardinality -
      Returns:
      this
    • getCreationdate

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

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

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

      public Schema setLastupdate(String lastupdate)
      Parameters:
      lastupdate - to set
      Returns:
      this