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