Package alpine.notification
Class Notification
- java.lang.Object
-
- alpine.notification.Notification
-
public final class Notification extends Object
-
-
Constructor Summary
Constructors Constructor Description Notification()
-
Method Summary
-
-
-
Method Detail
-
dispatch
public static void dispatch(Notification notification)
Convenience method provides a shorthand forNotificationService.getInstance().publish().- Parameters:
notification- the Notification to dispatch- Since:
- 1.3.0
-
scope
public Notification scope(String scope)
-
scope
public Notification scope(Enum scope)
-
group
public Notification group(String group)
-
group
public Notification group(Enum group)
-
level
public Notification level(NotificationLevel level)
-
title
public Notification title(String title)
-
title
public Notification title(Enum title)
-
content
public Notification content(String content)
-
content
public Notification content(Enum content)
-
timestamp
public Notification timestamp(LocalDateTime timestamp)
-
subject
public Notification subject(Object subject)
-
getScope
public String getScope()
-
setScope
public void setScope(String scope)
-
getGroup
public String getGroup()
-
setGroup
public void setGroup(String group)
-
getLevel
public NotificationLevel getLevel()
-
setLevel
public void setLevel(NotificationLevel level)
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
getContent
public String getContent()
-
setContent
public void setContent(String content)
-
getTimestamp
public LocalDateTime getTimestamp()
-
setTimestamp
public void setTimestamp(LocalDateTime timestamp)
-
getSubject
public Object getSubject()
-
setSubject
public void setSubject(Object subject)
-
-