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