public class DBEventDefinitionService extends PaginatedDbService<EventDefinitionDto>
db| Constructor and Description |
|---|
DBEventDefinitionService(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper,
DBEventProcessorStateService stateService,
EntityOwnershipService entityOwnerShipService) |
| 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.
|
EventDefinitionDto |
saveWithOwnership(EventDefinitionDto eventDefinitionDto,
User user) |
PaginatedList<EventDefinitionDto> |
searchPaginated(SearchQuery query,
Predicate<EventDefinitionDto> filter,
String sortByField,
int page,
int perPage) |
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, get, getSortBuilder, save, streamAll, streamByIds, streamQuery, streamQueryWithSort@Inject public DBEventDefinitionService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, DBEventProcessorStateService stateService, EntityOwnershipService entityOwnerShipService)
public PaginatedList<EventDefinitionDto> searchPaginated(SearchQuery query, Predicate<EventDefinitionDto> filter, String sortByField, int page, int perPage)
public EventDefinitionDto saveWithOwnership(EventDefinitionDto eventDefinitionDto, User user)
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–2021 Graylog, Inc.. All rights reserved.