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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSubscriptionManager
public AbstractSubscriptionManager()
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.