net.sf.flock.hibernate
Class HibernateSubscriptionManager

java.lang.Object
  |
  +--net.sf.flock.support.AbstractSubscriptionManager
        |
        +--net.sf.flock.hibernate.HibernateSubscriptionManager
All Implemented Interfaces:
FeedFactoryI, SubscriptionManagerI

public class HibernateSubscriptionManager
extends AbstractSubscriptionManager
implements FeedFactoryI


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

Constructor Detail

HibernateSubscriptionManager

public HibernateSubscriptionManager(java.util.Properties properties)
                             throws FlockResourceException
Method Detail

storeSubscription

protected void storeSubscription(Subscription subscription)
                          throws java.lang.Exception
java.lang.Exception

loadSubscription

protected Subscription loadSubscription(java.net.URL url)
                                 throws java.lang.Exception
java.lang.Exception

createSubscription

protected SubscriptionI createSubscription(SubscriptionInfoI subscriptionInfo)
                                    throws FlockResourceException
Specified by:
createSubscription in class AbstractSubscriptionManager
FlockResourceException

getFeedFactory

protected FeedFactoryI getFeedFactory()
Specified by:
getFeedFactory in class AbstractSubscriptionManager

createFeed

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

unsubscribe

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

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

getSubscription

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

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

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

refresh

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

Specified by:
refresh in interface SubscriptionManagerI
Parameters:
url - 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


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