Package org.graylog2.notifications
Class NotificationServiceImpl
java.lang.Object
org.graylog2.database.PersistedServiceImpl
org.graylog2.notifications.NotificationServiceImpl
- All Implemented Interfaces:
NotificationService
,PersistedService
@Singleton
public class NotificationServiceImpl
extends PersistedServiceImpl
implements NotificationService
-
Field Summary
Fields inherited from class org.graylog2.database.PersistedServiceImpl
mongoConnection
-
Constructor Summary
ConstructorDescriptionNotificationServiceImpl
(NodeId nodeId, MongoConnection mongoConnection, AuditEventSender auditEventSender, EventProcessorEngine eventProcessorEngine, DBEventDefinitionService dbEventDefinitionService, SystemNotificationRenderService systemNotificationRenderService) -
Method Summary
Modifier and TypeMethodDescriptionall()
build()
buildNow()
int
int
destroyAllByTypeAndKey
(Notification.Type type, String key) boolean
fixed
(Notification notification) boolean
fixed
(Notification.Type type) boolean
fixed
(Notification.Type type, String key) boolean
fixed
(Notification.Type type, Node node) getByTypeAndKey
(Notification.Type type, String key) boolean
isFirst
(Notification.Type type) boolean
publishIfFirst
(Notification notification) Methods inherited from class org.graylog2.database.PersistedServiceImpl
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, fieldTransformations, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Constructor Details
-
NotificationServiceImpl
@Inject public NotificationServiceImpl(NodeId nodeId, MongoConnection mongoConnection, AuditEventSender auditEventSender, EventProcessorEngine eventProcessorEngine, DBEventDefinitionService dbEventDefinitionService, SystemNotificationRenderService systemNotificationRenderService)
-
-
Method Details
-
build
- Specified by:
build
in interfaceNotificationService
-
buildNow
- Specified by:
buildNow
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
fixed
- Specified by:
fixed
in interfaceNotificationService
-
isFirst
- Specified by:
isFirst
in interfaceNotificationService
-
all
- Specified by:
all
in interfaceNotificationService
-
getByTypeAndKey
- Specified by:
getByTypeAndKey
in interfaceNotificationService
-
publishIfFirst
- Specified by:
publishIfFirst
in interfaceNotificationService
-
destroyAllByType
- Specified by:
destroyAllByType
in interfaceNotificationService
-
destroyAllByTypeAndKey
- Specified by:
destroyAllByTypeAndKey
in interfaceNotificationService
-