java.lang.Object
org.bson.Document
fr.gouv.vitam.logbook.common.server.database.collections.LogbookDocument<E>
Type Parameters:
E - Class used to implement the Document
All Implemented Interfaces:
Serializable, Map<String,Object>, org.bson.conversions.Bson

public abstract class LogbookDocument<E> extends org.bson.Document
Logbook Document MongoDb implementation
See Also:
  • Field Details

  • Constructor Details

    • LogbookDocument

      public LogbookDocument()
      Empty constructor
    • LogbookDocument

      public LogbookDocument(String content)
      Constructor from Json
      Parameters:
      content - in format String
      Throws:
      IllegalArgumentException - if Id is not a GUID
    • LogbookDocument

      public LogbookDocument(org.bson.Document content)
      Constructor from Document
      Parameters:
      content - in format Document
      Throws:
      IllegalArgumentException - if Id is not a GUID
  • Method Details

    • getId

      public abstract String getId()
      Returns:
      the ID
    • getTenantId

      public final int getTenantId()
      Returns:
      the TenantId
    • getVersion

      public final int getVersion()
      Returns:
      the version
    • toStringDirect

      public String toStringDirect()
      Returns:
      the bypass toString
    • toString

      public String toString()
      Overrides:
      toString in class org.bson.Document