How to get all the site feeds from alfresco site?

320 views Asked by At

1.Below lines of codes returning max 30 feeds only

siteFeeds = activityService.getSiteFeedEntries("testSite");

2.Below lines of codes returning max 30 feeds only.

List<ActivityFeedEntity> activityFeedEntities = activityFeedDAO.selectSiteFeedEntries("testSite", 1000);
  1. I thought to get all feeds per user and then tried with "admin" but here also i am nont able to get more than 30 feeds

    int skipCount = 0; for(int i =0; i <10; i++) { PagingRequest pagingRequest = new PagingRequest(skipCount, 15); PagingResults<ActivityFeedEntity> activityFeedEntities = activityFeedDAO.selectPagedUserFeedEntries("admin", null, "testSite", false, false, i, pagingRequest); skipCount = skipCount + 15; }

following are the values set in repository.properties

# Feed max ID range to limit maximum number of entries
activities.feed.max.idRange=1000000
# Feed max size (number of entries)
activities.feed.max.size=200
# Feed max age (eg. 44640 mins => 31 days)
activities.feed.max.ageMins=44640

Could anyone please help me how can i get all site feeds for a particular alfresco site

1

There are 1 answers

0
Sanjay On BEST ANSWER

I have tested with this scenarion sdk2 and it is giving me more than 30 entry.

List<ActivityFeedEntity> feeds= activityFeedDAO.selectSiteFeedEntries("demo", 100);
System.out.println(feeds.size());