public class NotificationEntry extends Object implements Serializable, Cloneable
The NotificationCategory
class contains all the entries for the same category title.
| Constructor and Description |
|---|
NotificationEntry() |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Implements deep-copy clone.
|
List<NotificationAttribute> |
getAttributes()
Open-ended collection of notification metadata.
|
List<NotificationAction> |
getAvailableActions()
Open-ended collection of behaviors the user (recipient) can invoke upon
the notification.
|
String |
getBody()
Optional body text for this notification.
|
Date |
getDueDate()
Optional date/time indicating by when the action described in this
notification must be completed.
|
String |
getId() |
String |
getImage()
Optional URL of an image file associated with this notification.
|
String |
getLinkText()
Optional text of the anchor tag linking to
url. |
int |
getPriority()
Optional numeric representation of the relative importance of the
notification.
|
String |
getSource()
Provides the human-readable name for the source of this notification.
|
Map<NotificationState,Date> |
getStates()
Open-ended Map of states that currently apply to this notification.
|
String |
getTitle()
Required one-liner version of this notification.
|
String |
getUrl()
Optional web address where the user can deal with or learn more about the
details of this notification.
|
void |
setAttributes(List<NotificationAttribute> attributes) |
void |
setAvailableActions(List<NotificationAction> availableActions) |
void |
setBody(String body) |
void |
setDueDate(Date dueDate) |
void |
setId(String id)
Sets the unique identifier for this notification.
|
void |
setImage(String imageUrl) |
void |
setLinkText(String linkText) |
void |
setPriority(int priority) |
void |
setSource(String source) |
void |
setStates(Map<NotificationState,Date> states) |
void |
setTitle(String title) |
void |
setUrl(String url) |
String |
toString() |
public String getSource()
public void setSource(String source)
public String getId()
public void setId(String id)
UUID.randomUUID() could be a good way to generate them.public String getTitle()
public void setTitle(String title)
public String getUrl()
public void setUrl(String url)
public String getLinkText()
url.public void setLinkText(String linkText)
public int getPriority()
public void setPriority(int priority)
public Date getDueDate()
public void setDueDate(Date dueDate)
public String getImage()
public void setImage(String imageUrl)
public String getBody()
public void setBody(String body)
public List<NotificationAttribute> getAttributes()
public void setAttributes(List<NotificationAttribute> attributes)
public List<NotificationAction> getAvailableActions()
public void setAvailableActions(List<NotificationAction> availableActions)
public Map<NotificationState,Date> getStates()
null.public void setStates(Map<NotificationState,Date> states)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - Not really, but it's on the method
signature we're overriding.Copyright © 2016 Jasig. All Rights Reserved.