dekoh.portal.syndication
Class SyndicationService
java.lang.Object
java.util.Observable
dekoh.portal.syndication.SyndicationService
- All Implemented Interfaces:
- Iterable
public final class SyndicationService
- extends Observable
- implements Iterable
SyndicationService publishes the events from each of the Channel emitted by registered ChannelProviders to authenticated Dekoh network users.
Instance of SyndicationService can be obtained by calling method SyndicationService.getInstance().
Content applications intending to expose events note worthy to the users of Dekoh network are required to register
implementations of ChannelProvider, usually during their start-up.
SyndicationService is a Dekoh Portal Service.
- Since:
- Mar 2, 2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ourInstance
public static final SyndicationService ourInstance
getInstance
public static SyndicationService getInstance()
- Returns:
- instance of SyndicationService
registerChannelProvider
public SyndicationService registerChannelProvider(ChannelProvider channelProvider)
- Registers a
ChannelProvider that needs syndication.
- Parameters:
channelProvider - a ChannelProvider implementation. if this is null, or if ChannelProvider.getComponentId() returns null this method will not register the channel
provider.
- Returns:
- this instance
deregisterChannelProvider
public SyndicationService deregisterChannelProvider(ChannelProvider channelProvider)
deregisterChannelProviders
public SyndicationService deregisterChannelProviders(String componentId)
- Unregisters all the channels if any that were registered by the application with given component id. After
unregistration, the RSS/Atom feeds for that application will not be emitted.
This method is usually called when the application is being undeployed/stopped.
- Parameters:
componentId - as in the component.xml of an application, cannot be null.
- Returns:
- this instance
iterator
public Iterator iterator()
- Specified by:
iterator in interface Iterable
getChannelProviders
public Set getChannelProviders()
getChannelProviders
public Set getChannelProviders(Set accessLevels)
getChannelProvider
public ChannelProvider getChannelProvider(String byName)
throws NoSuchChannelProviderException
- Parameters:
byName -
- Returns:
- null if no provider by given name exists
- Throws:
NoSuchChannelProviderException
© 2009 Pramati Technologies - Dekoh - Portal for Developers