Have a look at bundles/activity/api and bundles/activity/impl. In OAE 
1.4.0 most activity creation goes through ActivityUtils.postActivity() 
and trickles down to ActivityServiceImpl via several layers of events 
that make creation asynchronous. (And hard to debug.)

Activities are posted from server side code when content is created, 
modified, commented on, and several other cases. The UI also creates 
some activities directly using the Activity Create Servlet.

Activities attach to the node on which they occur -- eg if I comment on 
piece of content /p/abcdef then I can find its activities by getting 
/p/abcdef/activityFeed.tidy.infinity.json. When an activity is posted it 
is "delivered" to all the user's contacts who have permission to read 
the source node. Delivery happens by writing the sakai:routes property 
to Solr.

/var/search/activity/all.json is the feed of all activities that are 
public (for anonymous uses) or public/shared to everyone (for logged-in 
users).

In 1.5.0 there will be more types of activities posted from server-side 
code. There will also be a cleaned up API and less asynchrony in 
activity creation. There will also be more feeds like all.json that 
deliver activities just for a particular user, or for a particular 
content item, or for a world.

-chris


On 7/25/12 10:54 PM, Qi Feng wrote:
> Hi,
>
> I am trying to figure out what kind of information sakai captures when
> there is an activity, what kind of activity it captures, and also what
> structure it uses to link those events. I can find
> this /var/search/activity/all.json file and open it with my browser. I
> cannot find any file called all.json. And that is all I know about this
> so far. I would love to know where this all.json file comes from, and
> also if there is any other file I could look at to find information on
> activities. Thank you.
> Angela Feng
>
>
> _______________________________________________
> oae-dev mailing list
> [email protected]
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev
>
_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to