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
ConstructorsConstructorDescriptionNotificationServiceImpl(NodeId nodeId, MongoConnection mongoConnection, AuditEventSender auditEventSender, EventProcessorEngine eventProcessorEngine, DBEventDefinitionService dbEventDefinitionService, SystemNotificationRenderService systemNotificationRenderService) -
Method Summary
Modifier and TypeMethodDescriptionall()build()buildNow()intintdestroyAllByTypeAndKey(Notification.Type type, String key) booleanfixed(Notification notification) booleanfixed(Notification.Type type) booleanfixed(Notification.Type type, String key) booleanfixed(Notification.Type type, Node node) getByTypeAndKey(Notification.Type type, String key) booleanisFirst(Notification.Type type) booleanpublishIfFirst(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, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
buildin interfaceNotificationService
-
buildNow
- Specified by:
buildNowin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
fixed
- Specified by:
fixedin interfaceNotificationService
-
isFirst
- Specified by:
isFirstin interfaceNotificationService
-
all
- Specified by:
allin interfaceNotificationService
-
getByTypeAndKey
- Specified by:
getByTypeAndKeyin interfaceNotificationService
-
publishIfFirst
- Specified by:
publishIfFirstin interfaceNotificationService
-
destroyAllByType
- Specified by:
destroyAllByTypein interfaceNotificationService
-
destroyAllByTypeAndKey
- Specified by:
destroyAllByTypeAndKeyin interfaceNotificationService
-