Dekoh platform API

dekoh.portal.syndication.aggregator.core
Class XmlBasedPersistentSubscriptionList

java.lang.Object
  extended by dekoh.portal.syndication.aggregator.core.PersistentSubscriptionList
      extended by dekoh.portal.syndication.aggregator.core.XmlBasedPersistentSubscriptionList
All Implemented Interfaces:
SubscriptionList

public class XmlBasedPersistentSubscriptionList
extends PersistentSubscriptionList

Since:
Oct 8, 2007

Field Summary
 
Fields inherited from class dekoh.portal.syndication.aggregator.core.PersistentSubscriptionList
inMemorySubscriptionList, passwordStore
 
Constructor Summary
XmlBasedPersistentSubscriptionList(File xmlFile)
           
XmlBasedPersistentSubscriptionList(File xmlFile, PasswordStore passwordStore)
           
 
Method Summary
 void delete()
           
 File getXmlFile()
           
 long lastModifiedTime()
          Gets the last updated time for subscription list
 void load()
           
 void save()
           
 
Methods inherited from class dekoh.portal.syndication.aggregator.core.PersistentSubscriptionList
add, add, addAll, addListener, getAuthor, getDescripton, getId, getProperty, getSubscribedItems, getTitle, remove, remove, removeAll, removeListener, setAuthor, setDescripton, setId, setProperty, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlBasedPersistentSubscriptionList

public XmlBasedPersistentSubscriptionList(File xmlFile)

XmlBasedPersistentSubscriptionList

public XmlBasedPersistentSubscriptionList(File xmlFile,
                                          PasswordStore passwordStore)
Method Detail

getXmlFile

public File getXmlFile()

load

public void load()
          throws PersistentSubscriptionListOperationsException,
                 NoSuchSubscriptionListException,
                 InvalidKeyException
Specified by:
load in class PersistentSubscriptionList
Throws:
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 list

save

public void save()
          throws PersistentSubscriptionListOperationsException
Specified by:
save in class PersistentSubscriptionList
Throws:
PersistentSubscriptionListOperationsException

delete

public void delete()
            throws PersistentSubscriptionListOperationsException
Specified by:
delete in class PersistentSubscriptionList
Throws:
PersistentSubscriptionListOperationsException

lastModifiedTime

public long lastModifiedTime()
Description copied from interface: SubscriptionList
Gets the last updated time for subscription list

Specified by:
lastModifiedTime in interface SubscriptionList
Overrides:
lastModifiedTime in class PersistentSubscriptionList
Returns:
last updated time

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers