|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.rssowl.util.archive.Archive
public class 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 java.util.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(java.lang.String feedurl,
java.lang.String newstitle,
java.lang.String newsurl,
java.lang.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(java.lang.String feedurl,
java.util.Hashtable newsItems)
Remove any archive entries from the archive item, that are not part of the given news items. |
ArchiveItem |
getItem(java.lang.String feedurl)
Get an archive item from the archive |
java.util.Hashtable |
getItems()
Get the Archiveitems of this Archive. |
boolean |
isNewsRead(NewsItem rssNewsItem)
Check if the given newsitem is read or not. |
boolean |
isNewsRead(java.lang.String feedurl,
java.lang.String newstitle,
java.lang.String newsurl,
java.lang.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(java.lang.String feedurl,
java.lang.String newstitle,
java.lang.String newsurl,
java.lang.String newsdate)
Remove an archive entry from an archive item. |
java.lang.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 java.util.Hashtable items
| Constructor Detail |
|---|
public Archive(ArchiveManager archiveManager)
archiveManager - The archive manager| Method Detail |
|---|
public void addEntry(NewsItem rssNewsItem)
rssNewsItem - Get feedurl, newsurl, newstitle and newsdate from this
object to add a new entry.
public void addEntry(java.lang.String feedurl,
java.lang.String newstitle,
java.lang.String newsurl,
java.lang.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 item
public void cleanUpItem(java.lang.String feedurl,
java.util.Hashtable newsItems)
feedurl - The URL of the feednewsItems - A Hashtable with all newsitemspublic ArchiveItem getItem(java.lang.String feedurl)
feedurl - The url of the feed
public java.util.Hashtable getItems()
public boolean isNewsRead(NewsItem rssNewsItem)
rssNewsItem - The selected news
public boolean isNewsRead(java.lang.String feedurl,
java.lang.String newstitle,
java.lang.String newsurl,
java.lang.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 newsitem
public void removeEntry(java.lang.String feedurl,
java.lang.String newstitle,
java.lang.String newsurl,
java.lang.String newsdate)
feedurl - URL of the feednewstitle - Title of the newsnewsurl - URL of the newsnewsdate - The publish date of the newspublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||