mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N-AUDIT-API (5.2.2) to 5.2.N (5.2.2)
137947 anechifor: add total items git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@137977 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -213,7 +213,7 @@ public class AuditImpl implements Audit
|
|||||||
if(skipCount >= totalItems)
|
if(skipCount >= totalItems)
|
||||||
{
|
{
|
||||||
List<AuditEntry> empty = Collections.emptyList();
|
List<AuditEntry> empty = Collections.emptyList();
|
||||||
return CollectionWithPagingInfo.asPaged(paging, empty, false, 0);
|
return CollectionWithPagingInfo.asPaged(paging, empty, false, totalItems);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -221,7 +221,7 @@ public class AuditImpl implements Audit
|
|||||||
boolean hasMoreItems = totalItems > end;
|
boolean hasMoreItems = totalItems > end;
|
||||||
|
|
||||||
entriesAudit = entriesAudit.subList(skipCount, end);
|
entriesAudit = entriesAudit.subList(skipCount, end);
|
||||||
return CollectionWithPagingInfo.asPaged(paging, entriesAudit, hasMoreItems, entriesAudit.size());
|
return CollectionWithPagingInfo.asPaged(paging, entriesAudit, hasMoreItems, totalItems);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user