Class MongoCollectionExportService

java.lang.Object
org.graylog2.database.export.MongoCollectionExportService

public class MongoCollectionExportService extends Object
A general service for exporting limited list of Documents (with a selection of fields) from a collection in MongoDB. Meant to be used when users have permissions to read the whole entity collection. It will work with selective permissions as well (users having permissions to view some entities in the collection), but performance may be low in that particular case.
  • Constructor Details

  • Method Details

    • export

      public List<org.bson.Document> export(String collectionName, List<String> exportedFieldNames, int limit, org.bson.conversions.Bson dbFilter, List<Sort> sorts, org.apache.shiro.subject.Subject subject)