Class MetadataSnapshot

java.lang.Object
org.bson.Document
fr.gouv.vitam.common.database.server.mongodb.VitamDocument<MetadataSnapshot>
fr.gouv.vitam.metadata.core.database.collections.MetadataSnapshot
All Implemented Interfaces:
Serializable, Map<String,Object>, org.bson.conversions.Bson

public class MetadataSnapshot extends VitamDocument<MetadataSnapshot>
See Also:
  • Field Details

  • Constructor Details

    • MetadataSnapshot

      public MetadataSnapshot()
    • MetadataSnapshot

      public MetadataSnapshot(String content)
    • MetadataSnapshot

      public MetadataSnapshot(com.fasterxml.jackson.databind.JsonNode content)
    • MetadataSnapshot

      public MetadataSnapshot(org.bson.Document content)
  • Method Details

    • newInstance

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

      public MetadataSnapshot setId(String id)
      Parameters:
      id - the id of parameter value
      Returns:
      MetadataSnapshot
    • getName

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

      public MetadataSnapshot setName(String name)
      Set or change the parameter name
      Parameters:
      name - to set
      Returns:
      this
    • getValue

      public <T> T getValue(Class<T> clasz)
      Get the contract parameter value
      Returns:
      this
    • setValue

      public <T> MetadataSnapshot setValue(T value)
      Set or change the parameter value
      Parameters:
      value - to set
      Returns:
      this