|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.mywork.model.Notification
public class Notification
This class describes a user notification.
| Constructor Summary | |
|---|---|
Notification(long id,
java.lang.String applicationLinkId,
java.lang.String user,
java.lang.String iconUrl,
java.lang.String title,
java.lang.String description,
java.lang.String url,
java.lang.String application,
java.lang.String entity,
java.lang.String action,
java.lang.String actionIconUrl,
long created,
long updated,
Status status,
boolean read,
boolean pinned,
java.lang.String groupingId,
java.lang.String globalId,
org.codehaus.jackson.node.ObjectNode metadata,
Item item)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAction()
Returns name of the action that caused the notification to be created (e.g "comment"). |
java.lang.String |
getActionIconUrl()
Returns the absolute url to an icon representing the action. |
java.lang.String |
getApplication()
Returns the application that created the notification (e.g. |
java.lang.String |
getApplicationLinkId()
Returns the application link id of the application that created the notification. |
long |
getCreated()
Returns the time in milliseconds when this notification was created in the data store. |
java.lang.String |
getDescription()
Returns the description of the notification. |
java.lang.String |
getEntity()
Returns type of the remote entity that the notification is related to (e.g. |
java.lang.String |
getGlobalId()
Returns a string that should uniquely identify the remote object that this notification relates to. |
java.lang.String |
getGroupingId()
Returns a string that will be used to group notifications or null if not specified. |
java.lang.String |
getIconUrl()
Returns the absolute url to an icon representing the notification. |
long |
getId()
Returns the notification id. |
Item |
getItem()
Returns the item describing content related to this notification. |
org.codehaus.jackson.node.ObjectNode |
getMetadata()
Returns optional free-form metadata for use by the creator of this notification. |
Status |
getStatus()
Returns the status of this notification. |
java.lang.String |
getTitle()
Returns the title of the notification. |
long |
getUpdated()
Returns the time in milliseconds when this notification was last updated in the data store. |
java.lang.String |
getUrl()
Returns the absolute url pointing to the source of the notification. |
java.lang.String |
getUser()
Returns username of the receiver of the notification. |
int |
hashCode()
|
boolean |
isPinned()
Returns true if this notification should be displayed to the user until the user takes action. |
boolean |
isRead()
Returns true if the user has read this notification. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Notification(long id,
java.lang.String applicationLinkId,
java.lang.String user,
java.lang.String iconUrl,
java.lang.String title,
java.lang.String description,
java.lang.String url,
java.lang.String application,
java.lang.String entity,
java.lang.String action,
java.lang.String actionIconUrl,
long created,
long updated,
Status status,
boolean read,
boolean pinned,
java.lang.String groupingId,
java.lang.String globalId,
org.codehaus.jackson.node.ObjectNode metadata,
Item item)
| Method Detail |
|---|
public long getId()
public java.lang.String getApplicationLinkId()
public java.lang.String getUser()
public java.lang.String getIconUrl()
The icon should preferably be 16x16 px.
public java.lang.String getTitle()
public java.lang.String getDescription()
public java.lang.String getUrl()
public java.lang.String getApplication()
public java.lang.String getEntity()
public java.lang.String getAction()
public java.lang.String getActionIconUrl()
The icon should preferably be 16x16 px .
public long getCreated()
public long getUpdated()
If the creation time matches the update time, the notification has never been updated.
public Status getStatus()
Status.DONE will be returned.
public boolean isRead()
public boolean isPinned()
public java.lang.String getGroupingId()
public java.lang.String getGlobalId()
public org.codehaus.jackson.node.ObjectNode getMetadata()
public Item getItem()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||