mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-19173 pagination in cmis change log feed broken
1. In CMISConnector#getContentChanges() was changed newChangeLogToken formation. 2. In CMISTest was added testGetContentChanges() test. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@55173 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -3336,7 +3336,9 @@ public class CMISConnector implements ApplicationContextAware, ApplicationListen
|
||||
{
|
||||
if (result.getObjects().size() >= maxResults)
|
||||
{
|
||||
newChangeLogToken = result.getObjects().remove(result.getObjects().size() - 1).getId();
|
||||
StringBuilder clt = new StringBuilder();
|
||||
newChangeLogToken = (from == null ? clt.append(maxItems.intValue() + 1).toString() : clt.append(from.longValue() + maxItems.intValue()).toString());
|
||||
result.getObjects().remove(result.getObjects().size() - 1).getId();
|
||||
result.setHasMoreItems(true);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user