public class Notification
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Notification.NotificationStorage
The Enum NotificationStorage.
|
static class |
Notification.NotificationType
The Enum NotificationType.
|
| Constructor and Description |
|---|
Notification(Notification.NotificationType type,
java.lang.String message,
java.lang.String link)
Create a volatile notification with a notification type and
message.
|
Notification(Notification.NotificationType type,
java.lang.String message,
java.lang.String link,
java.lang.String id)
Create a permanent notification with a notification type and
message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.lang.String |
getId()
Permanent notifications has an UUID set in the server.
|
java.lang.String |
getLink()
If this notification has a link the method returns the URI
otherwise this method returns null.
|
java.lang.String |
getMessage()
Gets the message.
|
java.lang.String |
getProcessedMessage()
Gets the processed message.
|
Notification.NotificationStorage |
getStorage()
Gets the storage.
|
Notification.NotificationType |
getType()
Gets the type.
|
int |
hashCode()
Hash code.
|
public Notification(Notification.NotificationType type, java.lang.String message, java.lang.String link)
type - the typemessage - the messagelink - optional linkpublic Notification(Notification.NotificationType type, java.lang.String message, java.lang.String link, java.lang.String id)
type - the typemessage - the messagelink - optional linkid - the complete urn:uuid:UUID value for this notificationpublic java.lang.String getMessage()
public java.lang.String getProcessedMessage()
public Notification.NotificationType getType()
public Notification.NotificationStorage getStorage()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the objpublic java.lang.String getId()
public java.lang.String getLink()
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa