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

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

  • Constructor Details

    • Context

      public Context()
      Empty Constructor
    • Context

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

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

      public Context(String content)
      Parameters:
      content - in format String to create context
  • Method Details

    • newInstance

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