如何从露天站点获取所有站点提要?
How to get all the site feeds from alfresco site?
1.Below 行代码仅返回最多 30 个提要
siteFeeds = activityService.getSiteFeedEntries("testSite");
2.Below 行代码仅返回最多 30 个提要。
List<ActivityFeedEntity> activityFeedEntities = activityFeedDAO.selectSiteFeedEntries("testSite", 1000);
我想获取每个用户的所有提要,然后尝试使用 "admin" 但在这里我也无法获得超过 30 个提要
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;
}
以下是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
任何人都可以帮助我如何获取特定露天网站的所有网站提要
我已经用这个场景 sdk 2 进行了测试,它给了我超过 30 个条目。
List<ActivityFeedEntity> feeds= activityFeedDAO.selectSiteFeedEntries("demo", 100);
System.out.println(feeds.size());
1.Below 行代码仅返回最多 30 个提要
siteFeeds = activityService.getSiteFeedEntries("testSite");
2.Below 行代码仅返回最多 30 个提要。
List<ActivityFeedEntity> activityFeedEntities = activityFeedDAO.selectSiteFeedEntries("testSite", 1000);
我想获取每个用户的所有提要,然后尝试使用 "admin" 但在这里我也无法获得超过 30 个提要
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; }
以下是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
任何人都可以帮助我如何获取特定露天网站的所有网站提要
我已经用这个场景 sdk 2 进行了测试,它给了我超过 30 个条目。
List<ActivityFeedEntity> feeds= activityFeedDAO.selectSiteFeedEntries("demo", 100);
System.out.println(feeds.size());