com.atlassian.mywork.model
Class Item

java.lang.Object
  extended by com.atlassian.mywork.model.Item

public class Item
extends java.lang.Object

This class describes content related to a notification or a task.


Constructor Summary
protected Item()
           
  Item(java.lang.String iconUrl, java.lang.String title, java.lang.String url)
          Creates a new item.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getIconUrl()
          Returns url to an icon describing the related content.
 java.lang.String getTitle()
          Returns the title describing the related content.
 java.lang.String getUrl()
          Returns url to the related content.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Item

protected Item()

Item

public Item(java.lang.String iconUrl,
            java.lang.String title,
            java.lang.String url)
Creates a new item.

URLs can be either absolute urls or a urls that start with '/' and are relative to the base url of the creating application. Relative urls are only supported for notifications that have a registration.

Parameters:
iconUrl - url to an icon describing the related content
title - a title describing the related content
url - url to the related content
Method Detail

getIconUrl

public java.lang.String getIconUrl()
Returns url to an icon describing the related content.

URL can be either an absolute url or a url that starts with '/' and is relative to the base url of the creating application. Relative urls are only supported for notifications that have a registration.

The icon should preferably be 16x16 px.

Returns:
the absolute url to an icon describing the related content

getTitle

public java.lang.String getTitle()
Returns the title describing the related content.

Returns:
the title describing the related content

getUrl

public java.lang.String getUrl()
Returns url to the related content.

URL can be either an absolute url or a url that starts with '/' and is relative to the base url of the creating application. Relative urls are only supported for notifications that have a registration.

Returns:
the absolute url to the related content

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2012 Atlassian. All Rights Reserved.