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

public class LogbookOperation extends VitamDocument<LogbookOperation>
Logbook Operation item
See Also:
  • Field Details

  • Constructor Details

    • LogbookOperation

      public LogbookOperation(LogbookOperationParameters parameters)
      Constructor from LogbookOperationParameters
      Parameters:
      parameters - to create logbook operation
      Throws:
      IllegalArgumentException - if argument is null
    • LogbookOperation

      public LogbookOperation(org.bson.Document content)
      Constructor for Codec
      Parameters:
      content - of format Document to create LogbookOperation
    • LogbookOperation

      public LogbookOperation(String content)
      Constructor for Codec
      Parameters:
      content - of format String to create LogbookOperation
    • LogbookOperation

      public LogbookOperation(com.fasterxml.jackson.databind.JsonNode content)
      Constructor for Codec
      Parameters:
      content - of format JsonNode to create LogbookOperation
    • LogbookOperation

      public LogbookOperation()
  • Method Details

    • newInstance

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

      public static LogbookParameterName getIdParameterName()
      Returns:
      the ParameterName as id in collection
    • getId

      public String getId()
      Overrides:
      getId in class VitamDocument<LogbookOperation>
      Returns:
      the ID
    • getOperations

      public List<LogbookOperationParameters> getOperations(boolean all)
      Get back LogbookOperationParameters
      Parameters:
      all - If true returns all items, if false return the first item and last item if any
      Returns:
      the list of Operations