|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.rssowl.util.archive.Archive
The Archive stores all archive items in a Hashtable. Each archive item can be found through the feedurl in the Hashtable.
Field Summary | |
private ArchiveManager |
archiveManager
|
private Hashtable |
items
|
Constructor Summary | |
Archive(ArchiveManager archiveManager)
Instantiate a new Archive |
Method Summary | |
void |
addEntry(NewsItem rssNewsItem)
Add an entry to the ArchiveItem that is connected to the feedurl of the given NewsItem. |
void |
addEntry(String feedurl,
String newstitle,
String newsurl,
String newsdate)
Add an entry to the ArchiveItem that is connected to the feedurl. |
void |
addItem(ArchiveItem item)
Add an archive item to the archive |
void |
cleanUpItem(String feedurl,
Hashtable newsItems)
Remove any archive entries from the archive item, that are not part of the given news items. |
ArchiveItem |
getItem(String feedurl)
Get an archive item from the archive |
Enumeration |
getKeys()
Get all feedurl's of the archive as Enumeration |
boolean |
isNewsRead(NewsItem rssNewsItem)
Check if the given newsitem is read or not. |
boolean |
isNewsRead(String feedurl,
String newstitle,
String newsurl,
String newsdate)
Check if the given newsitem is read or not. |
void |
removeEntry(NewsItem rssNewsItem)
Remove an archive entry from an archive item. |
void |
removeEntry(String feedurl,
String newstitle,
String newsurl,
String newsdate)
Remove an archive entry from an archive item. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ArchiveManager archiveManager
private Hashtable items
Constructor Detail |
public Archive(ArchiveManager archiveManager)
archiveManager
- The archive managerMethod Detail |
public void addEntry(NewsItem rssNewsItem)
rssNewsItem
- Get feedurl, newsurl, newstitle and newsdate from this
object to add a new entry.public void addEntry(String feedurl, String newstitle, String newsurl, String newsdate)
feedurl
- The url of the feednewstitle
- The title of the newsnewsurl
- The url of the newsnewsdate
- The publish date of the newspublic void addItem(ArchiveItem item)
item
- An archive itempublic void cleanUpItem(String feedurl, Hashtable newsItems)
feedurl
- The URL of the feednewsItems
- A Hashtable with all newsitemspublic ArchiveItem getItem(String feedurl)
feedurl
- The url of the feed
public Enumeration getKeys()
public boolean isNewsRead(NewsItem rssNewsItem)
rssNewsItem
- The selected news
public boolean isNewsRead(String feedurl, String newstitle, String newsurl, String newsdate)
feedurl
- URL of the feednewstitle
- Title of the newsnewsurl
- URL of the newsnewsdate
- The publish date of the news
public void removeEntry(NewsItem rssNewsItem)
rssNewsItem
- The selected newsitempublic void removeEntry(String feedurl, String newstitle, String newsurl, String newsdate)
feedurl
- URL of the feednewstitle
- Title of the newsnewsurl
- URL of the newsnewsdate
- The publish date of the newspublic String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |