Class LogbookOperation

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<java.lang.String,​java.lang.Object>, org.bson.conversions.Bson

    public class LogbookOperation
    extends VitamDocument<LogbookOperation>
    Logbook Operation item
    See Also:
    Serialized Form
    • Constructor Detail

      • LogbookOperation

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

        public LogbookOperation​(LogbookOperationParameters parameters,
                                boolean forUpdate)
        Constructor from LogbookOperationParameters for update purpose
        Parameters:
        parameters - the logbook parameters
        forUpdate - specifies if the parameters should not contain fields for update
        Throws:
        java.lang.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​(java.lang.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 Detail

      • getIdParameterName

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

        public java.util.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