Package org.graylog2.notifications
Class NotificationImpl
java.lang.Object
org.graylog2.database.PersistedImpl
org.graylog2.notifications.NotificationImpl
- All Implemented Interfaces:
Notification
,Persisted
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog2.notifications.Notification
Notification.Severity, Notification.Type
-
Field Summary
Fields inherited from class org.graylog2.database.PersistedImpl
fields, id
Fields inherited from interface org.graylog2.notifications.Notification
KEY_DESCRIPTION, KEY_TITLE
-
Constructor Summary
ModifierConstructorDescriptionprotected
NotificationImpl
(Map<String, Object> fields) protected
NotificationImpl
(org.bson.types.ObjectId id, Map<String, Object> fields) -
Method Summary
Modifier and TypeMethodDescriptionaddSeverity
(Notification.Severity severity) addTimestamp
(org.joda.time.DateTime timestamp) addType
(Notification.Type type) asMap()
getKey()
org.joda.time.DateTime
getType()
Methods inherited from class org.graylog2.database.PersistedImpl
equals, getFields, getId, getObjectId, hashCode, toString
-
Constructor Details
-
NotificationImpl
-
NotificationImpl
-
NotificationImpl
public NotificationImpl()
-
-
Method Details
-
addType
- Specified by:
addType
in interfaceNotification
-
addKey
- Specified by:
addKey
in interfaceNotification
-
addTimestamp
- Specified by:
addTimestamp
in interfaceNotification
-
addSeverity
- Specified by:
addSeverity
in interfaceNotification
-
addNode
- Specified by:
addNode
in interfaceNotification
-
getTimestamp
public org.joda.time.DateTime getTimestamp()- Specified by:
getTimestamp
in interfaceNotification
-
getType
- Specified by:
getType
in interfaceNotification
-
getKey
- Specified by:
getKey
in interfaceNotification
-
getSeverity
- Specified by:
getSeverity
in interfaceNotification
-
getNodeId
- Specified by:
getNodeId
in interfaceNotification
-
addDetail
- Specified by:
addDetail
in interfaceNotification
-
getDetail
- Specified by:
getDetail
in interfaceNotification
-
getDetails
- Specified by:
getDetails
in interfaceNotification
-
asMap
- Specified by:
asMap
in interfacePersisted
- Overrides:
asMap
in classPersistedImpl
-
addNode
- Specified by:
addNode
in interfaceNotification
-
getValidations
- Specified by:
getValidations
in interfacePersisted
-
getEmbeddedValidations
- Specified by:
getEmbeddedValidations
in interfacePersisted
-