It's all about the answers!

Ask a question

receiving notification feeds info


rose cicinelli (2644) | asked Sep 08 '09, 3:34 p.m.
hi
i'm in the need for receiving notification (only) about new feed subscription.
this is the situation:
when i upload the rtc feedreader if new feeds are reiceved i should activate a specific method... how can i (my application) see if a new feed is arrived in the selected channel?

any examples?

thanks in advance
rose

3 answers



permanent link
Work Item & UI Commons Team (1.3k1) | answered Sep 09 '09, 6:08 a.m.
rose wrote:
You can use the com.ibm.team.feed.core.newsListener extension point
to
listen to events occuring when feeds are loaded and news received.
Alternatively if you dont mind using the FeedManager API you can
call
FeedManager.getDefault().addNewsListener().


i have used the second way, but i have diffucult to initialize
INewsListener listener...

i would do something like this:

FeedManager f=FeedManager.getDefault();
Channel[] c=f.getChannels();
for(int i=0;i<c.length;i++){
if
(!c.getCategory().equals("com.ibm.team.feed.core.SystemFeed")){
INewsListener listener=???;
f.addNewsListener(c
, listener);
}
}



hoping in a precious hint
rose


That looks good, it will work when you create your own implementing
class of INewsListener.

--
Benjamin Pasero
Work Item & UI Commons Team

permanent link
rose cicinelli (2644) | answered Sep 09 '09, 5:42 a.m.

You can use the com.ibm.team.feed.core.newsListener extension point to
listen to events occuring when feeds are loaded and news received.
Alternatively if you dont mind using the FeedManager API you can call
FeedManager.getDefault().addNewsListener().


i have used the second way, but i have diffucult to initialize INewsListener listener...

i would do something like this:

FeedManager f=FeedManager.getDefault();
Channel[] c=f.getChannels();
for(int i=0;i<c.length;i++){
if (!c[i].getCategory().equals("com.ibm.team.feed.core.SystemFeed")){
INewsListener listener=???;
f.addNewsListener(c[i], listener);
}
}



hoping in a precious hint
rose

permanent link
Work Item & UI Commons Team (1.3k1) | answered Sep 09 '09, 5:06 a.m.
rose wrote:
hi
i'm in the need for receiving notification (only) about new feed
subscription.
this is the situation:
when i upload the rtc feedreader if new feeds are reiceved i should
activate a specific method... how can i (my application) see if a new
feed is arrived in the selected channel?

any examples?

thanks in advance
rose


You can use the com.ibm.team.feed.core.newsListener extension point to
listen to events occuring when feeds are loaded and news received.
Alternatively if you dont mind using the FeedManager API you can call
FeedManager.getDefault().addNewsListener().

--
Benjamin Pasero
Work Item & UI Commons Team

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.