class LogbookLifeCyclesImpl implements LogbookLifeCycles {

    @Override
    public List<LogbookLifeCycle> selectLifeCycles(JsonNode select, boolean sliced, LogbookCollections collection)
        throws LogbookDatabaseException, LogbookNotFoundException, InvalidParseOperationException, VitamDBException {
        final List<LogbookLifeCycle> result = new ArrayList<>();
        try (final MongoCursor<LogbookLifeCycle> logbook =
            mongoDbAccess.getLogbookLifeCycles(select, sliced, collection)) {
            if (!logbook.hasNext()) {
                throw new LogbookNotFoundException("Logbook entry not found");
            }
            while (logbook.hasNext()) {
                result.add(logbook.next());
            }
        }
        return result;
    }

    public  LogbookLifeCyclesImpl(LogbookDbAccess mongoDbAccess);

}