public class DBEventDefinitionService extends PaginatedDbService<EventDefinitionDto>
db| Constructor and Description |
|---|
DBEventDefinitionService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
DBEventProcessorStateService stateService) |
| Modifier and Type | Method and Description |
|---|---|
int |
delete(String id)
Deletes the
DTO for the given ID from the database. |
List<EventDefinitionDto> |
getByNotificationId(String notificationId)
Returns the list of event definitions that is using the given notification ID.
|
PaginatedList<EventDefinitionDto> |
searchPaginated(SearchQuery query,
Predicate<EventDefinitionDto> filter,
String sortByField,
int page,
int perPage) |
findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject public DBEventDefinitionService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, DBEventProcessorStateService stateService)
public PaginatedList<EventDefinitionDto> searchPaginated(SearchQuery query, Predicate<EventDefinitionDto> filter, String sortByField, int page, int perPage)
public int delete(String id)
PaginatedDbServiceDTO for the given ID from the database.delete in class PaginatedDbService<EventDefinitionDto>id - ID of the DTO to deletepublic List<EventDefinitionDto> getByNotificationId(String notificationId)
notificationId - the notification IDCopyright © 2012–2020 Graylog, Inc.. All rights reserved.