public class NotificationImpl extends PersistedImpl implements Notification
Notification.Severity, Notification.Typefields, id| Modifier | Constructor and Description |
|---|---|
|
NotificationImpl() |
protected |
NotificationImpl(Map<String,Object> fields) |
protected |
NotificationImpl(org.bson.types.ObjectId id,
Map<String,Object> fields) |
| Modifier and Type | Method and Description |
|---|---|
Notification |
addDetail(String key,
Object value) |
Notification |
addNode(Node node) |
Notification |
addNode(String nodeId) |
Notification |
addSeverity(Notification.Severity severity) |
Notification |
addTimestamp(org.joda.time.DateTime timestamp) |
Notification |
addType(Notification.Type type) |
Map<String,Object> |
asMap() |
Object |
getDetail(String key) |
Map<String,Validator> |
getEmbeddedValidations(String key) |
String |
getNodeId() |
Notification.Severity |
getSeverity() |
org.joda.time.DateTime |
getTimestamp() |
Notification.Type |
getType() |
Map<String,Validator> |
getValidations() |
equals, getFields, getId, getObjectId, hashCode, toStringpublic Notification addType(Notification.Type type)
addType in interface Notificationpublic Notification addTimestamp(org.joda.time.DateTime timestamp)
addTimestamp in interface Notificationpublic Notification addSeverity(Notification.Severity severity)
addSeverity in interface Notificationpublic Notification addNode(Node node)
addNode in interface Notificationpublic org.joda.time.DateTime getTimestamp()
getTimestamp in interface Notificationpublic Notification.Type getType()
getType in interface Notificationpublic Notification.Severity getSeverity()
getSeverity in interface Notificationpublic String getNodeId()
getNodeId in interface Notificationpublic Notification addDetail(String key, Object value)
addDetail in interface Notificationpublic Object getDetail(String key)
getDetail in interface Notificationpublic Map<String,Object> asMap()
asMap in interface NotificationasMap in interface PersistedasMap in class PersistedImplpublic Notification addNode(String nodeId)
addNode in interface Notificationpublic Map<String,Validator> getValidations()
getValidations in interface PersistedCopyright © 2012–2014 TORCH GmbH. All rights reserved.