Dekoh platform API

dekoh.portal.syndication.aggregator.core
Class InMemorySubscriptionList

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

public class InMemorySubscriptionList
extends Object
implements SubscriptionList

Since:
Oct 8, 2007

Field Summary
static PLogger logger
           
protected  Set subscriptionItems
           
 
Constructor Summary
InMemorySubscriptionList()
           
InMemorySubscriptionList(String title)
           
 
Method Summary
 SubscriptionItem add(SubscriptionItem subscriptionItem)
           
 void add(URI feedUri)
          Add the given Feed item to the subscription List.
 void addAll(List subscriptionItems)
           
 boolean addListener(SubscriptionListListener subscriptionListListener)
           
 String getAuthor()
           
 String getDescripton()
           
protected  Properties getProperties()
           
 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
 boolean remove(SubscriptionItem subscriptionItem)
           
 boolean remove(URI feedURI)
          Remove an item with specified id from the list
 void removeAll(List subscriptionItems)
           
 boolean removeListener(SubscriptionListListener subscriptionListListener)
           
 void setAuthor(String author)
           
 void setDescripton(String description)
           
 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

logger

public static final PLogger logger

subscriptionItems

protected Set subscriptionItems
Constructor Detail

InMemorySubscriptionList

public InMemorySubscriptionList()

InMemorySubscriptionList

public InMemorySubscriptionList(String title)
Method Detail

getTitle

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

Specified by:
getTitle in interface SubscriptionList
Returns:
subscription title

getAuthor

public String getAuthor()
Specified by:
getAuthor in interface SubscriptionList

getDescripton

public String getDescripton()
Specified by:
getDescripton in interface SubscriptionList

setAuthor

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

getProperty

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

setProperty

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

setDescripton

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

setTitle

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

add

public void add(URI feedUri)
         throws MalformedURLException
Add the given Feed item to the subscription List. This item will also be individually cached while doing aggregation

Specified by:
add in interface SubscriptionList
Parameters:
feedUri - Feed URI
Throws:
MalformedURLException

add

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

addAll

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

remove

public boolean remove(URI feedURI)
Remove an item with specified id from the list

Specified by:
remove in interface SubscriptionList

remove

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

removeAll

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

getSubscribedItems

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

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

lastModifiedTime

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

Specified by:
lastModifiedTime in interface SubscriptionList
Returns:
last updated time

addListener

public boolean addListener(SubscriptionListListener subscriptionListListener)
Specified by:
addListener in interface SubscriptionList
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

getProperties

protected Properties getProperties()

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers