com.jalios.jcms.rss
Class RssManager

java.lang.Object
  extended by com.jalios.jcms.rss.RssManager

public class RssManager
extends Object

RSS manager

Since:
JCMS 6.3
Author:
Ludovic SMADJA

Method Summary
 void addDefaultListener(RssEventListener listener)
          Add RssEventListener
 void addDefaultListeners(List<RssEventListener> listeners)
          Add RssEventListener list to existing listeners
 void cleanRssTracker(Member member, String channelSource, List<String> itemIdList)
          Clean rssTracker table
 List<RssEventListener> getDefaultListeners()
          returns the RssEventListener list
static RssManager getInstance()
           
 RssEventListener getRssTrackerListener()
          Get Rss tracker listener
 Set<RssTracker> getSessionRssTrackerSet(Member member)
          Returns RssTracker set for a member
 RssTracker isRead(Member member, String channelSource, String itemId, Set<RssTracker> trackersSet)
          Indicates if a rss is already read
 void processRssTrackingEvent(Member currentLoggedMember, String channelSource, String itemId, boolean articleRead)
          Process tracking event
 void removeDefaultListener(RssEventListener listener)
          Remove RssEventListener from existing listener
 void removeDefaultListeners(List<RssEventListener> listeners)
          Remove RssEventListener from listener list
 void setDefaultListeners(List<RssEventListener> listeners)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RssManager getInstance()

getDefaultListeners

public List<RssEventListener> getDefaultListeners()
returns the RssEventListener list

Returns:
the list

setDefaultListeners

public void setDefaultListeners(List<RssEventListener> listeners)
Parameters:
listeners - the RssEventListener list to set

addDefaultListeners

public void addDefaultListeners(List<RssEventListener> listeners)
Add RssEventListener list to existing listeners

Parameters:
listeners - the list

removeDefaultListeners

public void removeDefaultListeners(List<RssEventListener> listeners)
Remove RssEventListener from listener list

Parameters:
listeners - the RssEventListener to remove

addDefaultListener

public void addDefaultListener(RssEventListener listener)
Add RssEventListener

Parameters:
listener - the RssEventListener

removeDefaultListener

public void removeDefaultListener(RssEventListener listener)
Remove RssEventListener from existing listener

Parameters:
listener - the RssEventListener

getRssTrackerListener

public RssEventListener getRssTrackerListener()
Get Rss tracker listener


processRssTrackingEvent

public void processRssTrackingEvent(Member currentLoggedMember,
                                    String channelSource,
                                    String itemId,
                                    boolean articleRead)
Process tracking event

Parameters:
currentLoggedMember - the current Member
channelSource - the channel source
itemId - the item id

getSessionRssTrackerSet

public Set<RssTracker> getSessionRssTrackerSet(Member member)
Returns RssTracker set for a member

Parameters:
member - the Member
Returns:
the Set of RssTracker

isRead

public RssTracker isRead(Member member,
                         String channelSource,
                         String itemId,
                         Set<RssTracker> trackersSet)
Indicates if a rss is already read

Parameters:
member - the current Member
channelSource - the channel source
itemId - the item id
trackersSet - Set of existing RssTracker
Returns:
the RssTracker instance if exists, null otherwise

cleanRssTracker

public void cleanRssTracker(Member member,
                            String channelSource,
                            List<String> itemIdList)
Clean rssTracker table

Parameters:
member - the Member object
channelSource - the channel source
itemIdList - List of item id to clean


Copyright © 2001-2010 Jalios SA. All Rights Reserved.