AnsweredAssumed Answered

How does the 'site activities' dashlet work?

Question asked by daforce93 on Aug 3, 2016
Latest reply on Sep 22, 2016 by janv
Hi everyone,

I know that the "site activities" dashlet in Share works by first doing a GET request to share/service/components/dashlets/activities/list, which then sends a GET request to the webscript at api/activities/feed/user.

I think (though I'm not 100% sure on this) that the executeImpl method of the UserFeedRetrieverWebScript class (see: https://github.com/Alfresco/community-edition/blob/70f90384d2745fbc0c1d1be2aaa01cab40c47f34/projects/remote-api/source/java/org/alfresco/repo/web/scripts/activities/feed/UserFeedRetrieverWebScript.java) is then called. Then, the getUserFeedEntries method of ActivityServiceImpl is called (see: https://github.com/Alfresco/community-edition/blob/70f90384d2745fbc0c1d1be2aaa01cab40c47f34/projects/repository/source/java/org/alfresco/repo/activities/ActivityServiceImpl.java), which then calls feedDAO.selectUserFeedEntries, which does some SQL Queries using MyBatis.

My question is this: Is there a table that holds the activities themselves? If that is the case, then wouldn't each action (that could show up in an Activities feed) need to insert into this table?

Thanks,

Jordan

Outcomes