net.sf.flock.support
Class AbstractSubscriptionManager

java.lang.Object
  |
  +--net.sf.flock.support.AbstractSubscriptionManager
All Implemented Interfaces:
SubscriptionManagerI
Direct Known Subclasses:
HibernateSubscriptionManager, SimpleSubscriptionManager

public abstract class AbstractSubscriptionManager
extends java.lang.Object
implements SubscriptionManagerI


Constructor Summary
AbstractSubscriptionManager()
           
 
Method Summary
protected abstract  SubscriptionI createSubscription(SubscriptionInfoI subscriptionInfo)
           
protected  void doRefreshAll()
           
protected abstract  FeedFactoryI getFeedFactory()
           
protected  java.util.List refresh(SubscriptionI subscription)
           
protected  java.util.List refresh(SubscriptionI subscription, org.jdom.Document doc)
           
 boolean refreshAll()
          TODO: implement proper balking
 SubscriptionI[] subscribe(SubscriptionInfoI si, boolean loadFeed)
           
 SubscriptionI[] subscribe(java.net.URL location, MetaData metaData)
          Short version of subscribe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.flock.SubscriptionManagerI
findItems, getSubscription, getSubscriptionInfos, refresh, unsubscribe
 

Constructor Detail

AbstractSubscriptionManager

public AbstractSubscriptionManager()
Method Detail

subscribe

public SubscriptionI[] subscribe(java.net.URL location,
                                 MetaData metaData)
                          throws FlockResourceException
Description copied from interface: SubscriptionManagerI
Short version of subscribe.

Specified by:
subscribe in interface SubscriptionManagerI
Parameters:
location -
metaData -
Returns:
SubscriptionI[]
Throws:
FlockResourceException

createSubscription

protected abstract SubscriptionI createSubscription(SubscriptionInfoI subscriptionInfo)
                                             throws FlockResourceException
FlockResourceException

refresh

protected java.util.List refresh(SubscriptionI subscription)
                          throws FlockResourceException
Returns:
List of new ItemI objects
FlockResourceException

refresh

protected java.util.List refresh(SubscriptionI subscription,
                                 org.jdom.Document doc)
                          throws FlockResourceException
Returns:
List of new ItemI objects
FlockResourceException

getFeedFactory

protected abstract FeedFactoryI getFeedFactory()

subscribe

public SubscriptionI[] subscribe(SubscriptionInfoI si,
                                 boolean loadFeed)
                          throws FlockResourceException
Specified by:
subscribe in interface SubscriptionManagerI
FlockResourceException

refreshAll

public boolean refreshAll()
TODO: implement proper balking

Specified by:
refreshAll in interface SubscriptionManagerI
Returns:
boolean false if refresh cycle is already in progress

doRefreshAll

protected void doRefreshAll()
                     throws FlockResourceException
FlockResourceException


Copyright © 2002-2003 Presence Inc. All Rights Reserved.