use of org.alfresco.repo.search.impl.querymodel.QueryEngineResults 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);
}
Aggregations