Dekoh platform API

dekoh.portal.syndication.aggregator
Class PortalSubscriptionManager

java.lang.Object
  extended by dekoh.portal.syndication.aggregator.PortalSubscriptionManager

public class PortalSubscriptionManager
extends Object

PortalSubscriptionManager manages portal subscriptions for a desktopUser. Applications can add SubscriptionItems, Aggregators or ChannelProvider s to portal's tray aggregator and home page aggregator

Since:
Oct 26, 2007

Method Summary
 void addAggregatorToPortalPage(Aggregator aggregator, PortalApplicationContext portalApplicationContext)
          Creates a local subscription item for the supplied aggregator and add it to portal's home aggregator
 void addAggregatorToTrayIcon(Aggregator aggregator, PortalApplicationContext portalApplicationContext)
          Creates a local subscription item for the supplied aggregator and add it to portal's tray aggregator
 void addLocalChannelProviderToPortalPage(ChannelProvider channelProvider)
           
 void addLocalChannelProviderToTrayIcon(ChannelProvider channelProvider)
           
 void addSubscriptionItemToPortalPage(SubscriptionItem subscriptionItem)
          Adds the supplied subscriptionitem to portal's home aggregator.
 void addSubscriptionItemToTrayIcon(SubscriptionItem subscriptionItem)
          Adds the supplied subscriptionitem to portal's tray aggregator.
 Aggregator getBuddyNewsAggregator(HttpServletRequest request)
           
 Aggregator getPortalAggregator(HttpServletRequest request)
           
static PortalSubscriptionManager getPortalSubscriptionManager(DesktopUser desktopUser)
           
static PortalSubscriptionManager getPortalSubscriptionManager(HttpServletRequest request)
           
 boolean isAggregatedInTray(SubscriptionItem subscriptionItem)
           
 boolean isPortalHomeActive()
           
 boolean isTrayActive()
           
 void removeAggregatorFromPortal(Aggregator aggregator, PortalApplicationContext aggregatorPortalAppContext)
           
 void removeAggregatorFromTrayIcon(Aggregator aggregator, PortalApplicationContext portalApplicationContext)
           
 void removeLocalChannelProviderFromPortalPage(ChannelProvider channelProvider)
           
 void removeLocalChannelProviderToTrayIcon(ChannelProvider channelProvider)
           
 void removeSubscriptionFromPortalPage(SubscriptionItem subscriptionItem)
           
 void removeSubscriptionFromTrayIcon(SubscriptionItem subscriptionItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPortalSubscriptionManager

public static PortalSubscriptionManager getPortalSubscriptionManager(DesktopUser desktopUser)

getPortalSubscriptionManager

public static PortalSubscriptionManager getPortalSubscriptionManager(HttpServletRequest request)

getPortalAggregator

public Aggregator getPortalAggregator(HttpServletRequest request)

getBuddyNewsAggregator

public Aggregator getBuddyNewsAggregator(HttpServletRequest request)

addSubscriptionItemToTrayIcon

public void addSubscriptionItemToTrayIcon(SubscriptionItem subscriptionItem)
Adds the supplied subscriptionitem to portal's tray aggregator. If the subscription item is a local url it will be sampled every minute. But if its a remote feed url the subscriptionItem will be sampled every 15 minute.

Parameters:
subscriptionItem - Item that will be shown in tray

addSubscriptionItemToPortalPage

public void addSubscriptionItemToPortalPage(SubscriptionItem subscriptionItem)
Adds the supplied subscriptionitem to portal's home aggregator. If the subscription item is a local url it will be sampled every minute. But if its a remote feed url the subscriptionItem will be sampled every 15 minute.

Parameters:
subscriptionItem - Item that will be shown in portalHome page

addAggregatorToTrayIcon

public void addAggregatorToTrayIcon(Aggregator aggregator,
                                    PortalApplicationContext portalApplicationContext)
Creates a local subscription item for the supplied aggregator and add it to portal's tray aggregator

Parameters:
aggregator - this will be shown in tray
portalApplicationContext - portalApplicationContext of the calling application

addAggregatorToPortalPage

public void addAggregatorToPortalPage(Aggregator aggregator,
                                      PortalApplicationContext portalApplicationContext)
Creates a local subscription item for the supplied aggregator and add it to portal's home aggregator

Parameters:
aggregator - this will be shown in portalHome Page
portalApplicationContext - portalApplicationContext of the calling application

removeAggregatorFromPortal

public void removeAggregatorFromPortal(Aggregator aggregator,
                                       PortalApplicationContext aggregatorPortalAppContext)

removeAggregatorFromTrayIcon

public void removeAggregatorFromTrayIcon(Aggregator aggregator,
                                         PortalApplicationContext portalApplicationContext)

removeSubscriptionFromTrayIcon

public void removeSubscriptionFromTrayIcon(SubscriptionItem subscriptionItem)

removeSubscriptionFromPortalPage

public void removeSubscriptionFromPortalPage(SubscriptionItem subscriptionItem)

addLocalChannelProviderToPortalPage

public void addLocalChannelProviderToPortalPage(ChannelProvider channelProvider)

addLocalChannelProviderToTrayIcon

public void addLocalChannelProviderToTrayIcon(ChannelProvider channelProvider)

removeLocalChannelProviderToTrayIcon

public void removeLocalChannelProviderToTrayIcon(ChannelProvider channelProvider)

removeLocalChannelProviderFromPortalPage

public void removeLocalChannelProviderFromPortalPage(ChannelProvider channelProvider)

isAggregatedInTray

public boolean isAggregatedInTray(SubscriptionItem subscriptionItem)

isPortalHomeActive

public boolean isPortalHomeActive()

isTrayActive

public boolean isTrayActive()

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers