Dekoh platform API

dekoh.portal.syndication.aggregator.core
Class PersistentSubscriptionListWrapper

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

public class PersistentSubscriptionListWrapper
extends PersistentSubscriptionList

Since:
Oct 23, 2007

Field Summary
 
Fields inherited from class dekoh.portal.syndication.aggregator.core.PersistentSubscriptionList
inMemorySubscriptionList, passwordStore
 
Constructor Summary
PersistentSubscriptionListWrapper(PersistentSubscriptionList persistentSubscriptionList)
           
 
Method Summary
 SubscriptionItem add(SubscriptionItem subscriptionItem)
           
 void add(URI feedUri)
           
 void addAll(List subscriptionItems)
           
 boolean addListener(SubscriptionListListener subscriptionListListener)
           
 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
 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)
           
 void save()
           
 void setAuthor(String author)
           
 void setDescripton(String description)
           
 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
 

Constructor Detail

PersistentSubscriptionListWrapper

public PersistentSubscriptionListWrapper(PersistentSubscriptionList persistentSubscriptionList)
Method Detail

add

public void add(URI feedUri)
         throws MalformedURLException
Specified by:
add in interface SubscriptionList
Overrides:
add in class PersistentSubscriptionList
Throws:
MalformedURLException

add

public SubscriptionItem add(SubscriptionItem subscriptionItem)
Specified by:
add in interface SubscriptionList
Overrides:
add in class PersistentSubscriptionList

addAll

public void addAll(List subscriptionItems)
Specified by:
addAll in interface SubscriptionList
Overrides:
addAll in class PersistentSubscriptionList

delete

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

getAuthor

public String getAuthor()
Specified by:
getAuthor in interface SubscriptionList
Overrides:
getAuthor in class PersistentSubscriptionList

getDescripton

public String getDescripton()
Specified by:
getDescripton in interface SubscriptionList
Overrides:
getDescripton in class PersistentSubscriptionList

getId

public String getId()
Overrides:
getId in class PersistentSubscriptionList

getSubscribedItems

public Set getSubscribedItems()
Description copied from interface: SubscriptionList
Gets the list Feed items from this subscription list

Specified by:
getSubscribedItems in interface SubscriptionList
Overrides:
getSubscribedItems in class PersistentSubscriptionList
Returns:
List of subscription items

getTitle

public String getTitle()
Description copied from interface: SubscriptionList
Gets the current subscription list title

Specified by:
getTitle in interface SubscriptionList
Overrides:
getTitle in class PersistentSubscriptionList
Returns:
subscription title

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

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

remove

public boolean remove(URI feedURI)
Description copied from interface: SubscriptionList
Removes the given feed from the subscription List

Specified by:
remove in interface SubscriptionList
Overrides:
remove in class PersistentSubscriptionList

remove

public boolean remove(SubscriptionItem subscriptionItem)
Specified by:
remove in interface SubscriptionList
Overrides:
remove in class PersistentSubscriptionList

removeAll

public void removeAll(List subscriptionItems)
Specified by:
removeAll in interface SubscriptionList
Overrides:
removeAll in class PersistentSubscriptionList

save

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

setAuthor

public void setAuthor(String author)
Specified by:
setAuthor in interface SubscriptionList
Overrides:
setAuthor in class PersistentSubscriptionList

setDescripton

public void setDescripton(String description)
Specified by:
setDescripton in interface SubscriptionList
Overrides:
setDescripton in class PersistentSubscriptionList

setId

public void setId(String id)
Overrides:
setId in class PersistentSubscriptionList

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface SubscriptionList
Overrides:
setTitle in class PersistentSubscriptionList

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface SubscriptionList
Overrides:
getProperty in class PersistentSubscriptionList

setProperty

public void setProperty(String name,
                        String value)
Specified by:
setProperty in interface SubscriptionList
Overrides:
setProperty in class PersistentSubscriptionList

addListener

public boolean addListener(SubscriptionListListener subscriptionListListener)
Specified by:
addListener in interface SubscriptionList
Overrides:
addListener in class PersistentSubscriptionList
Parameters:
subscriptionListListener - to be added cannot be null
Returns:
true of add was successful

removeListener

public boolean removeListener(SubscriptionListListener subscriptionListListener)
Specified by:
removeListener in interface SubscriptionList
Overrides:
removeListener in class PersistentSubscriptionList

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers