public class BasicNewsItem extends Object implements org.sakaiproject.news.api.NewsItem
| Modifier and Type | Field and Description |
|---|---|
protected String |
m_description
The description (or body) of the news item
|
protected List |
m_enclosures
The list of NewsItemEnclosures for this 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 and Description |
|---|
BasicNewsItem(String title,
String description,
String link,
String pubdate)
Construct.
|
BasicNewsItem(String title,
String description,
String link,
String pubdate,
List enclosures)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Access the description (or body) of the NewsItem.
|
List |
getEnclosures()
Access the List of Enclosures for the item
|
String |
getLink()
Access the URL where the complete story can be found.
|
String |
getPubdate()
Access the time when the NewsItem was updated.
|
Date |
getPubdateInDateFormat() |
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.
|
protected String m_title
protected String m_link
protected String m_pubdate
protected String m_description
protected List m_enclosures
public BasicNewsItem(String title, String description, String link, String pubdate, List enclosures)
title - The headline of the itemdescription - The body of the itemlink - The URL for a longer version of the itempubdate - The date/time at which the item was publishedenclosure - The list of NewsItemEnclosures for this itempublic String getTitle()
getTitle in interface org.sakaiproject.news.api.NewsItempublic String getPubdate()
getPubdate in interface org.sakaiproject.news.api.NewsItempublic Date getPubdateInDateFormat()
getPubdateInDateFormat in interface org.sakaiproject.news.api.NewsItempublic String getLink()
getLink in interface org.sakaiproject.news.api.NewsItempublic List getEnclosures()
public String getDescription()
getDescription in interface org.sakaiproject.news.api.NewsItempublic void setTitle(String title)
setTitle in interface org.sakaiproject.news.api.NewsItemtitle - The title of the NewsItem.public void setPubdate(String pubdate)
setPubdate in interface org.sakaiproject.news.api.NewsItempubdate - The time when the NewsItem was updated.public void setLink(String link)
setLink in interface org.sakaiproject.news.api.NewsItemlink - The URL where the complete story can be found.public void setDescription(String description)
setDescription in interface org.sakaiproject.news.api.NewsItemdescription - The description (or body) of the NewsItem.Copyright © 2003-2015 University of Michigan. All Rights Reserved.