Package org.graylog.events.processor
Class DBEventDefinitionService
java.lang.Object
org.graylog2.database.PaginatedDbService<E>
org.graylog2.database.entities.ScopedDbService<EventDefinitionDto>
org.graylog.events.processor.DBEventDefinitionService
-
Field Summary
Fields inherited from class org.graylog2.database.entities.ScopedDbService
entityScopeService
Fields inherited from class org.graylog2.database.PaginatedDbService
db
-
Constructor Summary
ConstructorDescriptionDBEventDefinitionService
(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, DBEventProcessorStateService stateService, EntityOwnershipService entityOwnerShipService, EntityScopeService entityScopeService) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getByNotificationId
(String notificationId) Returns the list of event definitions that is using the given notification ID.saveWithOwnership
(EventDefinitionDto eventDefinitionDto, User user) searchPaginated
(SearchQuery query, Predicate<EventDefinitionDto> filter, String sortByField, int page, int perPage) Methods inherited from class org.graylog2.database.entities.ScopedDbService
delete, deleteImmutable, ensureMutability, ensureValidScope, isMutable, save
Methods inherited from class org.graylog2.database.PaginatedDbService
asImmutableList, findPaginatedWithQueryAndSort, findPaginatedWithQueryFilterAndSort, findPaginatedWithQueryFilterAndSortWithGrandTotal, get, getSortBuilder, streamAll, streamByIds, streamQuery, streamQueryWithSort
-
Constructor Details
-
DBEventDefinitionService
@Inject public DBEventDefinitionService(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper, DBEventProcessorStateService stateService, EntityOwnershipService entityOwnerShipService, EntityScopeService entityScopeService)
-
-
Method Details
-
searchPaginated
public PaginatedList<EventDefinitionDto> searchPaginated(SearchQuery query, Predicate<EventDefinitionDto> filter, String sortByField, int page, int perPage) -
saveWithOwnership
-
deleteUnregister
-
deleteUnregisterImmutable
-
getByNotificationId
Returns the list of event definitions that is using the given notification ID.- Parameters:
notificationId
- the notification ID- Returns:
- the event definitions with the given notification ID
-