|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.rss.RssManager
public class RssManager
RSS manager
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 |
---|
public static RssManager getInstance()
public List<RssEventListener> getDefaultListeners()
RssEventListener
list
public void setDefaultListeners(List<RssEventListener> listeners)
listeners
- the RssEventListener
list to setpublic void addDefaultListeners(List<RssEventListener> listeners)
RssEventListener
list to existing listeners
listeners
- the listpublic void removeDefaultListeners(List<RssEventListener> listeners)
RssEventListener
from listener list
listeners
- the RssEventListener
to removepublic void addDefaultListener(RssEventListener listener)
RssEventListener
listener
- the RssEventListener
public void removeDefaultListener(RssEventListener listener)
RssEventListener
from existing listener
listener
- the RssEventListener
public RssEventListener getRssTrackerListener()
public void processRssTrackingEvent(Member currentLoggedMember, String channelSource, String itemId, boolean articleRead)
currentLoggedMember
- the current Member
channelSource
- the channel sourceitemId
- the item idpublic Set<RssTracker> getSessionRssTrackerSet(Member member)
RssTracker
set for a member
member
- the Member
Set
of RssTracker
public RssTracker isRead(Member member, String channelSource, String itemId, Set<RssTracker> trackersSet)
member
- the current Member
channelSource
- the channel sourceitemId
- the item idtrackersSet
- Set
of existing RssTracker
public void cleanRssTracker(Member member, String channelSource, List<String> itemIdList)
member
- the Member
objectchannelSource
- the channel sourceitemIdList
- List
of item id to clean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |