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
ConstructorsModifierConstructorDescriptionprotectedViewSummaryService(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.ObjectMappermapper()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, streamQueryWithSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
mapperin interfaceViewUtils<ViewSummaryDTO>
-
collection
public com.mongodb.client.MongoCollection<org.bson.Document> collection()- Specified by:
collectionin interfaceViewUtils<ViewSummaryDTO>
-
type
- Specified by:
typein interfaceViewUtils<ViewSummaryDTO>
-