use of org.alfresco.repo.search.impl.lucene.PagingLuceneResultSet in project records-management by Alfresco.
the class RMAfterInvocationProvider method decide.
private QueryEngineResults decide(Authentication authentication, Object object, ConfigAttributeDefinition config, QueryEngineResults returnedObject) {
Map<Set<String>, ResultSet> map = returnedObject.getResults();
Map<Set<String>, ResultSet> answer = new HashMap<Set<String>, ResultSet>(map.size(), 1.0f);
for (Map.Entry<Set<String>, ResultSet> entry : map.entrySet()) {
ResultSet raw = entry.getValue();
ResultSet permed;
if (PagingLuceneResultSet.class.isAssignableFrom(raw.getClass())) {
permed = decide(authentication, object, config, (PagingLuceneResultSet) raw);
} else {
permed = decide(authentication, object, config, raw);
}
answer.put(entry.getKey(), permed);
}
return new QueryEngineResults(answer);
}
use of org.alfresco.repo.search.impl.lucene.PagingLuceneResultSet in project records-management by Alfresco.
the class RMAfterInvocationProvider method decide.
private ResultSet decide(Authentication authentication, Object object, ConfigAttributeDefinition config, PagingLuceneResultSet returnedObject) {
ResultSet raw = returnedObject.getWrapped();
ResultSet filteredForPermissions = decide(authentication, object, config, raw);
return new PagingLuceneResultSet(filteredForPermissions, returnedObject.getResultSetMetaData().getSearchParameters(), nodeService);
}
Aggregations