Class ViewSummaryService
java.lang.Object
org.graylog2.database.PaginatedDbService<ViewSummaryDTO>
org.graylog.plugins.views.search.views.ViewSummaryService
- All Implemented Interfaces:
ViewUtils<ViewSummaryDTO>
public class ViewSummaryService
extends PaginatedDbService<ViewSummaryDTO>
implements ViewUtils<ViewSummaryDTO>
-
Field Summary
Fields inherited from class org.graylog2.database.PaginatedDbService
db
-
Constructor Summary
ModifierConstructorDescriptionprotected
ViewSummaryService
(MongoConnection mongoConnection, MongoJackObjectMapperProvider mongoJackObjectMapperProvider, com.fasterxml.jackson.databind.ObjectMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.client.MongoCollection<org.bson.Document>
com.fasterxml.jackson.databind.ObjectMapper
mapper()
searchPaginatedByType
(SearchUser searchUser, ViewDTO.Type type, org.bson.conversions.Bson dbQuery, Predicate<ViewSummaryDTO> predicate, String order, String sortField, int page, int perPage) type()
Methods inherited from class org.graylog2.database.PaginatedDbService
asImmutableList, delete, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, findPaginatedWithQueryFilterAndSortWithGrandTotal, get, getMultiFieldSortBuilder, getPage, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graylog.plugins.views.search.views.ViewUtils
deserialize, findViews
-
Constructor Details
-
ViewSummaryService
@Inject protected ViewSummaryService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mongoJackObjectMapperProvider, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Details
-
searchPaginatedByType
public PaginatedList<ViewSummaryDTO> searchPaginatedByType(SearchUser searchUser, ViewDTO.Type type, org.bson.conversions.Bson dbQuery, Predicate<ViewSummaryDTO> predicate, String order, String sortField, int page, int perPage) -
mapper
public com.fasterxml.jackson.databind.ObjectMapper mapper()- Specified by:
mapper
in interfaceViewUtils<ViewSummaryDTO>
-
collection
public com.mongodb.client.MongoCollection<org.bson.Document> collection()- Specified by:
collection
in interfaceViewUtils<ViewSummaryDTO>
-
type
- Specified by:
type
in interfaceViewUtils<ViewSummaryDTO>
-