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, idFields inherited from interface org.graylog2.notifications.Notification
KEY_DESCRIPTION, KEY_TITLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNotificationImpl(Map<String, Object> fields) protectedNotificationImpl(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.DateTimegetType()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:
addTypein interfaceNotification
-
addKey
- Specified by:
addKeyin interfaceNotification
-
addTimestamp
- Specified by:
addTimestampin interfaceNotification
-
addSeverity
- Specified by:
addSeverityin interfaceNotification
-
addNode
- Specified by:
addNodein interfaceNotification
-
getTimestamp
public org.joda.time.DateTime getTimestamp()- Specified by:
getTimestampin interfaceNotification
-
getType
- Specified by:
getTypein interfaceNotification
-
getKey
- Specified by:
getKeyin interfaceNotification
-
getSeverity
- Specified by:
getSeverityin interfaceNotification
-
getNodeId
- Specified by:
getNodeIdin interfaceNotification
-
addDetail
- Specified by:
addDetailin interfaceNotification
-
getDetail
- Specified by:
getDetailin interfaceNotification
-
getDetails
- Specified by:
getDetailsin interfaceNotification
-
asMap
- Specified by:
asMapin interfacePersisted- Overrides:
asMapin classPersistedImpl
-
addNode
- Specified by:
addNodein interfaceNotification
-
getValidations
- Specified by:
getValidationsin interfacePersisted
-
getEmbeddedValidations
- Specified by:
getEmbeddedValidationsin interfacePersisted
-