|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdekoh.portal.syndication.aggregator.core.PersistentSubscriptionList
public abstract class PersistentSubscriptionList
A PersistentSubscriptionList is list of RSS/Atom feed subscriptions of a user, which is saved to a
persistent store. These saved subscriptions can be recreated on Dekoh process's restart.
PersistentSubscriptionList can be obtained by using SubscriptionListManager.createSubscriptionList().
Saved subscriptions can be retrieved by calling SubscriptionListManager.loadPersistentSubscriptionList(String)
If a PersistentSubscriptionList is created with a PasswordStore the passwords on the constituent
SubscriptionItems will be encrypted before saving to file, otherwise these passwords are written in
plain text
SubscriptionListManager| Field Summary | |
|---|---|
protected InMemorySubscriptionList |
inMemorySubscriptionList
|
protected PasswordStore |
passwordStore
|
| Constructor Summary | |
|---|---|
PersistentSubscriptionList()
|
|
PersistentSubscriptionList(PasswordStore passwordStore)
|
|
| Method Summary | |
|---|---|
SubscriptionItem |
add(SubscriptionItem subscriptionItem)
|
void |
add(URI feedUri)
|
void |
addAll(List subscriptionItems)
|
boolean |
addListener(SubscriptionListListener subscriptionListListener)
|
abstract void |
delete()
|
String |
getAuthor()
|
String |
getDescripton()
|
String |
getId()
|
String |
getProperty(String name)
|
Set |
getSubscribedItems()
Gets the list Feed items from this subscription list |
String |
getTitle()
Gets the current subscription list title |
long |
lastModifiedTime()
Gets the last updated time for subscription list |
abstract void |
load()
|
boolean |
remove(SubscriptionItem subscriptionItem)
|
boolean |
remove(URI feedURI)
Removes the given feed from the subscription List |
void |
removeAll(List subscriptionItems)
|
boolean |
removeListener(SubscriptionListListener subscriptionListListener)
|
abstract void |
save()
|
void |
setAuthor(String author)
|
void |
setDescripton(String description)
|
protected void |
setId(String id)
|
void |
setProperty(String name,
String value)
|
void |
setTitle(String title)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected InMemorySubscriptionList inMemorySubscriptionList
protected PasswordStore passwordStore
| Constructor Detail |
|---|
public PersistentSubscriptionList()
public PersistentSubscriptionList(PasswordStore passwordStore)
passwordStore - will encrypt the passwords if any using this password store instance| Method Detail |
|---|
public long lastModifiedTime()
SubscriptionList
lastModifiedTime in interface SubscriptionList
public abstract void save()
throws PersistentSubscriptionListOperationsException
PersistentSubscriptionListOperationsException
public abstract void delete()
throws PersistentSubscriptionListOperationsException
PersistentSubscriptionListOperationsException
public abstract void load()
throws PersistentSubscriptionListOperationsException,
NoSuchSubscriptionListException,
InvalidKeyException
PersistentSubscriptionListOperationsException - wrapping problems in reading the persistent store and recreating elements of this
list.
NoSuchSubscriptionListException - no record of this list in the persistent storage. For a file based persistent store,
this exception may be wrapping a FileNotFoundExcepion
InvalidKeyException - if any of the encrypted password keys saved to persistent store, could not be
decrypted using the password store instance provided to this listprotected void setId(String id)
public void setAuthor(String author)
setAuthor in interface SubscriptionListpublic void setDescripton(String description)
setDescripton in interface SubscriptionListpublic void setTitle(String title)
setTitle in interface SubscriptionListpublic String getId()
public void add(URI feedUri)
throws MalformedURLException
add in interface SubscriptionListMalformedURLExceptionpublic SubscriptionItem add(SubscriptionItem subscriptionItem)
add in interface SubscriptionListpublic void addAll(List subscriptionItems)
addAll in interface SubscriptionListpublic Set getSubscribedItems()
SubscriptionList
getSubscribedItems in interface SubscriptionListpublic String getTitle()
SubscriptionList
getTitle in interface SubscriptionListpublic String getDescripton()
getDescripton in interface SubscriptionListpublic String getAuthor()
getAuthor in interface SubscriptionListpublic boolean remove(URI feedURI)
SubscriptionList
remove in interface SubscriptionListpublic boolean remove(SubscriptionItem subscriptionItem)
remove in interface SubscriptionListpublic void removeAll(List subscriptionItems)
removeAll in interface SubscriptionListpublic boolean addListener(SubscriptionListListener subscriptionListListener)
addListener in interface SubscriptionListsubscriptionListListener - to be added cannot be null
public boolean removeListener(SubscriptionListListener subscriptionListListener)
removeListener in interface SubscriptionListpublic String getProperty(String name)
getProperty in interface SubscriptionList
public void setProperty(String name,
String value)
setProperty in interface SubscriptionList
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers