net.sf.flock.impl
Class SimpleSubscriptionManager

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

public class SimpleSubscriptionManager
extends AbstractSubscriptionManager
implements FeedFactoryI

Version:
$Revision: 1.4 $
Author:
$Author: phraktle $

Constructor Summary
SimpleSubscriptionManager()
           
 
Method Summary
protected  void addSubscription(SubscriptionI subscription)
           
 FeedI createFeed(SubscriptionInfoI subscriptionInfoI)
           
protected  SubscriptionI createSubscription(SubscriptionInfoI subscriptionInfo)
           
 java.util.Collection findItems(FilterI[] filters)
           
protected  FeedFactoryI getFeedFactory()
           
 SubscriptionI getSubscription(java.net.URL location)
          Get a given a subscription.
 java.util.Collection getSubscriptionInfos()
          Get lightweight information about all subscriptions.
protected  java.util.Collection getSubscriptions()
           
 void refresh(java.net.URL location)
          Refresh a subscription (synchronously).
 SubscriptionI[] subscribe(SubscriptionInfoI subscriptionInfo, boolean load)
           
 void unsubscribe(java.net.URL location)
          Remove a subscription.
 
Methods inherited from class net.sf.flock.support.AbstractSubscriptionManager
doRefreshAll, refresh, refresh, refreshAll, subscribe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSubscriptionManager

public SimpleSubscriptionManager()
Method Detail

createFeed

public FeedI createFeed(SubscriptionInfoI subscriptionInfoI)
Specified by:
createFeed in interface FeedFactoryI

addSubscription

protected void addSubscription(SubscriptionI subscription)
                        throws FlockResourceException
FlockResourceException

getSubscription

public SubscriptionI getSubscription(java.net.URL location)
                              throws FlockResourceException
Description copied from interface: SubscriptionManagerI
Get a given a subscription.

Specified by:
getSubscription in interface SubscriptionManagerI
Parameters:
location - subscription location
Returns:
SubscriptionI
Throws:
FlockResourceException

getSubscriptions

protected java.util.Collection getSubscriptions()

getSubscriptionInfos

public java.util.Collection getSubscriptionInfos()
                                          throws FlockResourceException
Description copied from interface: SubscriptionManagerI
Get lightweight information about all subscriptions.

Specified by:
getSubscriptionInfos in interface SubscriptionManagerI
Returns:
Collection of SubscriptionInfoI objects
Throws:
FlockResourceException

unsubscribe

public void unsubscribe(java.net.URL location)
                 throws FlockResourceException
Description copied from interface: SubscriptionManagerI
Remove a subscription.

Specified by:
unsubscribe in interface SubscriptionManagerI
Parameters:
location - subscription location
Throws:
FlockResourceException

refresh

public void refresh(java.net.URL location)
             throws FlockResourceException
Description copied from interface: SubscriptionManagerI
Refresh a subscription (synchronously).

Specified by:
refresh in interface SubscriptionManagerI
Parameters:
location - subscription location
Throws:
FlockResourceException

findItems

public java.util.Collection findItems(FilterI[] filters)
                               throws FlockResourceException
Specified by:
findItems in interface SubscriptionManagerI
Parameters:
filters -
Returns:
Collection
Throws:
FlockResourceException

createSubscription

protected SubscriptionI createSubscription(SubscriptionInfoI subscriptionInfo)
                                    throws FlockResourceException
Specified by:
createSubscription in class AbstractSubscriptionManager
FlockResourceException
See Also:
AbstractSubscriptionManager.createSubscription(net.sf.flock.SubscriptionInfoI)

subscribe

public SubscriptionI[] subscribe(SubscriptionInfoI subscriptionInfo,
                                 boolean load)
                          throws FlockResourceException
Specified by:
subscribe in interface SubscriptionManagerI
Overrides:
subscribe in class AbstractSubscriptionManager
FlockResourceException
See Also:
SubscriptionManagerI.subscribe(net.sf.flock.SubscriptionInfoI, boolean)

getFeedFactory

protected FeedFactoryI getFeedFactory()
Specified by:
getFeedFactory in class AbstractSubscriptionManager
See Also:
AbstractSubscriptionManager.getFeedFactory()


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