@OpenApiAll public class Notification extends AbstractNotification implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Notification.Context
Context enum indicates notification origin.
|
Constructor and Description |
---|
Notification() |
Notification(java.lang.String id,
java.lang.String title)
Constructs notification with specified id and title.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text)
Constructs notification with specified id, title and text.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
HRefRunnable[] actions)
Constructs notification with specified id, title, text and list of actions user can perform
upon notification.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
HRefRunnable[] actions,
NotificationSeverity severity)
Constructs notification with specified id, title, text, severity and list of actions user can perform
upon notification.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
HRefRunnable[] actions,
NotificationSeverity severity,
Notification.Context context)
Constructs notification with specified id, title, text, severity, context and list of actions user can perform
upon notification.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
NotificationSeverity severity)
Constructs notification with specified id, title, text and severity.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
java.lang.String longText)
Constructs notification with specified id, title, short and long text description.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
java.lang.String longText,
HRefRunnable[] actions)
Constructs notification with specified id, title, short description, long description and list of actions user
can perform upon notification.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
java.lang.String longText,
HRefRunnable[] actions,
NotificationSeverity severity)
Constructs notification with specified id, title, short text, long text, severity and list of actions user
can perform upon notification.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
java.lang.String longText,
HRefRunnable[] actions,
NotificationSeverity severity,
Notification.Context context)
Constructs notification with specified id, title, short text, long text, severity, context and list of actions user can perform
upon notification.
|
Notification(java.lang.String id,
java.lang.String title,
java.lang.String text,
java.lang.String longText,
NotificationSeverity severity)
Constructs notification with specified id, title, short description, long description and severity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Notification.Context |
getContext()
Returns notification context
|
NotificationSeverity |
getSeverity()
Returns notification severity
|
int |
hashCode() |
void |
setContext(Notification.Context context)
Sets new notification context
|
void |
setLongText(java.lang.String longText)
Sets notification long text
|
void |
setSeverity(NotificationSeverity severity)
Sets notification severity
|
addHRefAction, getHRefAction, getID, getLongText, getText, getTitle, removeHRefAction, removeHRefAction, setText, setTitle
public Notification()
public Notification(@Nonnull java.lang.String id, java.lang.String title)
id
- notification unique idtitle
- notification titlepublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text)
id
- notification unique idtitle
- notification titletext
- notification textpublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull java.lang.String longText)
id
- notification unique idtitle
- notification titletext
- notification textlongText
- notification long textpublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, NotificationSeverity severity)
id
- notification unique idtitle
- notification titletext
- notification textseverity
- notification severitypublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull java.lang.String longText, NotificationSeverity severity)
id
- notification unique idtitle
- notification titletext
- notification textlongText
- notification long textseverity
- notification severitypublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull HRefRunnable[] actions)
id
- notification unique idtitle
- notification titletext
- notification textactions
- list of actions user can takepublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull java.lang.String longText, @CheckForNull HRefRunnable[] actions)
id
- notification unique idtitle
- notification titletext
- notification textlongText
- notification long textactions
- list of actions user can takepublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull HRefRunnable[] actions, NotificationSeverity severity)
id
- notification unique idtitle
- notification titletext
- notification textactions
- list of actions user can takeseverity
- notification severity levelpublic Notification(@Nonnull java.lang.String id, java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull java.lang.String longText, @CheckForNull HRefRunnable[] actions, NotificationSeverity severity)
id
- notification unique idtitle
- notification titletext
- notification textactions
- list of actions user can takeseverity
- notification severity levelpublic Notification(@Nonnull java.lang.String id, @CheckForNull java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull HRefRunnable[] actions, NotificationSeverity severity, Notification.Context context)
id
- notification unique idtitle
- notification titletext
- notification textactions
- list of actions user can takeseverity
- notification severity levelcontext
- notification contextpublic Notification(@Nonnull java.lang.String id, @CheckForNull java.lang.String title, @CheckForNull java.lang.String text, @CheckForNull java.lang.String longText, @CheckForNull HRefRunnable[] actions, NotificationSeverity severity, Notification.Context context)
id
- notification unique idtitle
- notification titletext
- notification textlongText
- notification long textactions
- list of actions user can takeseverity
- notification severity levelcontext
- notification contextpublic NotificationSeverity getSeverity()
public void setSeverity(NotificationSeverity severity)
severity
- new notification severitypublic Notification.Context getContext()
public void setContext(Notification.Context context)
context
- notification contextpublic void setLongText(@CheckForNull java.lang.String longText)
AbstractNotification
setLongText
in class AbstractNotification
longText
- notification long textpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object