mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
RM-2466 (Show the correct number of existing pages and make them available for navigation in the Security Clearance page)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@108542 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -56,8 +56,11 @@ public class PagingResultsPostMethodInvocationProcessor extends BasePostMethodIn
|
||||
{
|
||||
final PagingResults pagingResults = getClassName().cast(result);
|
||||
List page = pagingResults.getPage();
|
||||
int originalPageSize = page.size();
|
||||
final List processedPage = getPostMethodInvocationProcessor().process(page);
|
||||
|
||||
if (processedPage != null && processedPage.size() != originalPageSize)
|
||||
{
|
||||
result = (T) new PagingResults<T>()
|
||||
{
|
||||
@Override
|
||||
@@ -79,11 +82,12 @@ public class PagingResultsPostMethodInvocationProcessor extends BasePostMethodIn
|
||||
@Override
|
||||
public Pair<Integer, Integer> getTotalResultCount()
|
||||
{
|
||||
// getTotalResultCount may not be correct. We haven't checked how many other results will be filtered.
|
||||
return pagingResults.getTotalResultCount();
|
||||
int size = processedPage.size();
|
||||
return new Pair<Integer, Integer>(size, size);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user