Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

receiving notification feeds info

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

0 votes



3 answers

Permanent link
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

0 votes


Permanent link

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

0 votes


Permanent link
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

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Sep 08 '09, 3:34 p.m.

Question was seen: 5,330 times

Last updated: Sep 08 '09, 3:34 p.m.

Confirmation Cancel Confirm