public class RssManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addDefaultListener(RssEventListener listener)
Add
RssEventListener |
void |
addDefaultListeners(java.util.List<RssEventListener> listeners)
Add
RssEventListener list to existing listeners |
void |
cleanRssTracker(Member member,
java.lang.String channelSource,
java.util.List<java.lang.String> itemIdList)
Clean rssTracker table
|
java.util.List<RssEventListener> |
getDefaultListeners()
returns the
RssEventListener list |
static RssManager |
getInstance() |
RssEventListener |
getRssTrackerListener()
Get Rss tracker listener
|
java.util.Set<RssTracker> |
getSessionRssTrackerSet(Member member)
Returns
RssTracker set for a member |
RssTracker |
isRead(Member member,
java.lang.String channelSource,
java.lang.String itemId,
java.util.Set<RssTracker> trackersSet)
Indicates if a rss is already read
|
void |
processRssTrackingEvent(Member currentLoggedMember,
java.lang.String channelSource,
java.lang.String itemId,
boolean articleRead)
Process tracking event
|
void |
removeDefaultListener(RssEventListener listener)
Remove
RssEventListener from existing listener |
void |
removeDefaultListeners(java.util.List<RssEventListener> listeners)
Remove
RssEventListener from listener list |
void |
setDefaultListeners(java.util.List<RssEventListener> listeners) |
public static RssManager getInstance()
public java.util.List<RssEventListener> getDefaultListeners()
RssEventListener
listpublic void setDefaultListeners(java.util.List<RssEventListener> listeners)
listeners
- the RssEventListener
list to setpublic void addDefaultListeners(java.util.List<RssEventListener> listeners)
RssEventListener
list to existing listenerslisteners
- the listpublic void removeDefaultListeners(java.util.List<RssEventListener> listeners)
RssEventListener
from listener listlisteners
- the RssEventListener
to removepublic void addDefaultListener(RssEventListener listener)
RssEventListener
listener
- the RssEventListener
public void removeDefaultListener(RssEventListener listener)
RssEventListener
from existing listenerlistener
- the RssEventListener
public RssEventListener getRssTrackerListener()
public void processRssTrackingEvent(Member currentLoggedMember, java.lang.String channelSource, java.lang.String itemId, boolean articleRead)
currentLoggedMember
- the current Member
channelSource
- the channel sourceitemId
- the item idpublic java.util.Set<RssTracker> getSessionRssTrackerSet(Member member)
RssTracker
set for a membermember
- the Member
Set
of RssTracker
public RssTracker isRead(Member member, java.lang.String channelSource, java.lang.String itemId, java.util.Set<RssTracker> trackersSet)
member
- the current Member
channelSource
- the channel sourceitemId
- the item idtrackersSet
- Set
of existing RssTracker
Copyright © 2001-2010 Jalios SA. All Rights Reserved.