org.sakaiproject.component.legacy.news
Class BasicNewsService.BasicNewsItem

java.lang.Object
  extended byorg.sakaiproject.component.legacy.news.BasicNewsService.BasicNewsItem
All Implemented Interfaces:
NewsItem
Enclosing class:
BasicNewsService

public class BasicNewsService.BasicNewsItem
extends Object
implements NewsItem

NewsItem implementation


Field Summary
protected  String m_description
          The description (or body) of the news item
protected  String m_link
          The URL for the complete story.
protected  String m_pubdate
          The publication date of the NewsItem.
protected  String m_title
          The title of this NewsItem.
 
Constructor Summary
BasicNewsService.BasicNewsItem(String title, String description, String link, String pubdate)
          Construct.
 
Method Summary
 String getDescription()
          Access the description (or body) of the NewsItem.
 String getLink()
          Access the URL where the complete story can be found.
 String getPubdate()
          Access the time when the NewsItem was updated.
 String getTitle()
          Access the title of the NewsItem.
 void setDescription(String description)
          Set the description (or body) of the NewsItem.
 void setLink(String link)
          Set the URL where the complete story can be found.
 void setPubdate(String pubdate)
          Set the time when the NewsItem was updated.
 void setTitle(String title)
          Set the title of the NewsItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_title

protected String m_title
The title of this NewsItem.


m_link

protected String m_link
The URL for the complete story.


m_pubdate

protected String m_pubdate
The publication date of the NewsItem.


m_description

protected String m_description
The description (or body) of the news item

Constructor Detail

BasicNewsService.BasicNewsItem

public BasicNewsService.BasicNewsItem(String title,
                                      String description,
                                      String link,
                                      String pubdate)
Construct.

Parameters:
title - The headline of the item
description - The body of the item
link - The URL for a longer version of the item
pubdate - The date/time at which the item was published
Method Detail

getTitle

public String getTitle()
Access the title of the NewsItem.

Specified by:
getTitle in interface NewsItem
Returns:
The title of the NewsItem.

getPubdate

public String getPubdate()
Access the time when the NewsItem was updated.

Specified by:
getPubdate in interface NewsItem
Returns:
The time when the NewsItem was updated.

getLink

public String getLink()
Access the URL where the complete story can be found.

Specified by:
getLink in interface NewsItem
Returns:
The URL where the complete story can be found.

getDescription

public String getDescription()
Access the description (or body) of the NewsItem.

Specified by:
getDescription in interface NewsItem
Returns:
The description (or body) of the NewsItem.

setTitle

public void setTitle(String title)
Set the title of the NewsItem.

Specified by:
setTitle in interface NewsItem
Parameters:
title - The title of the NewsItem.

setPubdate

public void setPubdate(String pubdate)
Set the time when the NewsItem was updated.

Specified by:
setPubdate in interface NewsItem
Parameters:
pubdate - The time when the NewsItem was updated.

setLink

public void setLink(String link)
Set the URL where the complete story can be found.

Specified by:
setLink in interface NewsItem
Parameters:
link - The URL where the complete story can be found.
Returns:
link The URL where the complete story can be found.

setDescription

public void setDescription(String description)
Set the description (or body) of the NewsItem.

Specified by:
setDescription in interface NewsItem
Parameters:
description - The description (or body) of the NewsItem.