Community articleActivity Streams extensions to News repository feeds
Added by IBM contributorIBM | Edited by IBM contributordeveloperWorks Lotus Team on July 1, 2014
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Most of the News repository feeds are extended with Activity Streams formatted data. Use Activity Stream format and data to leverage News feeds in third-party clients.

Important note: The News Repository APIs were deprecated in the 4.0 release. These APIs are still functional for backward compatibility reasons - but no new feature is surfaced through these APIs. For any new development work, please refer to the OpenSocial Activity Stream APIs.




Most of the News repository feeds are extended with Activity Streams formatted data. Use Activity Stream format and data to leverage News feeds in third-party clients.

Attention: The event information provided here is specific to version 3.0.1 of IBM Connections. Changes to your application may be required to maintain equivalent functionality when integrating with a future release.

For details on Activity Streams, see the Activity Streams specificationexternal link.

The following News feeds are extended with Activity Streams data:

  • Public updates
  • Saved updates
  • Top updates
  • Person updates
  • Community updates
  • News Feed updates

Example

Here is an example of a feed with Activity Streams data:

<entry xmlns:activity="http://activitystrea.ms/spec/1.0/">
<title type="html">Joe Doe commented on their own board entry.</title>
<summary type="html">ccc </summary>
<link
href="http://homedev2.dyn.example.org:9080/profiles/html/profileView.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4&amp;entryId=52a5160f-9d74-49c4-8390-89bcc5b71490"
rel="alternate" type="text/html"></link>
<link
href="http://homedev2.dyn.example.org:9080/profiles/atom/profile.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4"
rel="related" type="application/atom+xml"></link>
<id>urn:lsid:ibm.com:news:story-36b03933-a208-4fa3-bdb7-d1f7720f51c1</id>
<updated>2010-12-03T17:48:28.065Z</updated>
<content type="html"><span class="vcard"&gt;<a class="fn url"
title="This is a link to the profile of Joe Doe."
href="http://homedev2.dyn.example.org:9080/profiles/html/profileView.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4"&gt;<span
class="photo"
src="http://homedev2.dyn.example.org:9080/profiles/photo.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4"
alt="This is a photo of Joe Doe." style="display :
none"&gt;</span&gt;Joe Doe</a&gt;<span
class="x-lconn-userid" style="display :
none"&gt;ec8a89c0-f41d-102c-9b60-f225bc6c4af4</span&gt;</span&gt;
commented on their own board entry.</content>
<author xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<name>Joe Doe</name>
<snx:userid xmlns:snx="http://www.ibm.com/xmlns/prod/sn">ec8a89c0-f41d-102c-9b60-f225bc6c4af4
</snx:userid>
<snx:userState xmlns:snx="http://www.ibm.com/xmlns/prod/sn">active</snx:userState>
<email>vincent.burckhardt@example.org</email>
<uri>http://homedev2.dyn.example.org:9080/profiles/html/profile.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4
</uri>
</author>
<category term="news" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
<activity:verb xmlns:activity="http://activitystrea.ms/spec/1.0/">http://activitystrea.ms/schema/1.0/post</activity:verb>
<activity:object xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type xmlns:activity="http://activitystrea.ms/spec/1.0/">http://activitystrea.ms/schema/1.0/comment</activity:object-type>
<id xmlns="">urn:lsid:ibm.com:news:story-profiles.wall.comment.added-36b03933-a208-4fa3-bdb7-d1f7720f51c1</id>
<title>ccc </title>
<link xmlns="http://www.w3.org/2005/Atom"
href="http://homedev2.dyn.example.org:9080/profiles/html/profileView.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4&amp;entryId=52a5160f-9d74-49c4-8390-89bcc5b71490"
rel="alternate" type="text/html"></link>
</activity:object>
<activity:target xmlns:activity="http://activitystrea.ms/spec/1.0/">
<activity:object-type xmlns:activity="http://activitystrea.ms/spec/1.0/">http://activitystrea.ms/schema/1.0/person</activity:object-type>
<id xmlns="">urn:lsid:ibm.com:news:story-target-36b03933-a208-4fa3-bdb7-d1f7720f51c1</id>
<title></title>
<link xmlns="http://www.w3.org/2005/Atom"
href="http://homedev2.dyn.example.org:9080/profiles/html/profileView.do?userid=ec8a89c0-f41d-102c-9b60-f225bc6c4af4"
rel="alternate" type="text/html"></link>
</activity:target>
</entry>


Activity Streams mapping to IBM Connections events
Mapping of IBM Connections events to Activity Streams formatting.

Supported Activity Stream object properties
IBM Connections supports some, but not all, Activity Stream object properties.