mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +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@108366 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -18,6 +18,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor;
|
package org.alfresco.module.org_alfresco_module_rm.classification.interceptor.processor;
|
||||||
|
|
||||||
|
import static org.apache.commons.collections.ListUtils.isEqualList;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.alfresco.query.PagingResults;
|
import org.alfresco.query.PagingResults;
|
||||||
@@ -58,6 +60,8 @@ public class PagingResultsPostMethodInvocationProcessor extends BasePostMethodIn
|
|||||||
List page = pagingResults.getPage();
|
List page = pagingResults.getPage();
|
||||||
final List processedPage = getPostMethodInvocationProcessor().process(page);
|
final List processedPage = getPostMethodInvocationProcessor().process(page);
|
||||||
|
|
||||||
|
if (!isEqualList(page, processedPage))
|
||||||
|
{
|
||||||
result = (T) new PagingResults<T>()
|
result = (T) new PagingResults<T>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
@@ -84,6 +88,7 @@ public class PagingResultsPostMethodInvocationProcessor extends BasePostMethodIn
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user