Package org.graylog.events.processor
Class DBEventDefinitionService
java.lang.Object
org.graylog.events.processor.DBEventDefinitionService
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDBEventDefinitionService(MongoCollections mongoCollections, DBEventProcessorStateService stateService, EntityOwnershipService entityOwnerShipService, EntityScopeService entityScopeService, SearchFiltersReFetcher searchFiltersRefetcher) -
Method Summary
Modifier and TypeMethodDescriptionintlonglongvoidforceDelete(String id) @NotNull List<EventDefinitionDto>getByArrayValue(String arrayField, String field, String value) Returns the list of event definitions that contain the given value in the specified array fieldgetByNotificationId(String notificationId) Returns the list of event definitions that is using the given notification ID.Returns the list of system event definitionsbooleanisMutable(EventDefinitionDto eventDefinition) save(EventDefinitionDto entity) saveWithOwnership(EventDefinitionDto eventDefinitionDto, User user) searchPaginated(SearchQuery query, Predicate<EventDefinitionDto> filter, org.bson.conversions.Bson sort, int page, int perPage) voidupdateMatchedAt(String id, org.joda.time.DateTime timeStamp) voidupdateState(String id, EventDefinition.State state)
-
Field Details
-
COLLECTION_NAME
- See Also:
-
-
Constructor Details
-
DBEventDefinitionService
@Inject public DBEventDefinitionService(MongoCollections mongoCollections, DBEventProcessorStateService stateService, EntityOwnershipService entityOwnerShipService, EntityScopeService entityScopeService, SearchFiltersReFetcher searchFiltersRefetcher)
-
-
Method Details
-
searchPaginated
public PaginatedList<EventDefinitionDto> searchPaginated(SearchQuery query, Predicate<EventDefinitionDto> filter, org.bson.conversions.Bson sort, int page, int perPage) -
saveWithOwnership
-
save
-
get
-
updateMatchedAt
-
updateState
-
delete
-
forceDelete
-
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
-
getSystemEventDefinitions
Returns the list of system event definitions- Returns:
- the matching event definitions
-
getByArrayValue
@NotNull public @NotNull List<EventDefinitionDto> getByArrayValue(String arrayField, String field, String value) Returns the list of event definitions that contain the given value in the specified array field -
isMutable
-
streamAll
-