Skip to content

Commit

Permalink
Micro-refactoring in CorrelationConfirmationEvaluator
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Mar 13, 2017
1 parent 32d5965 commit 4494079
Showing 1 changed file with 2 additions and 15 deletions.
Expand Up @@ -213,29 +213,16 @@ private <F extends FocusType> List<PrismObject<F>> findUsersByCorrelationRule(Cl
throw new ExpressionEvaluationException("Couldn't convert query.", ex);
}

List<PrismObject<F>> users = null;
List<PrismObject<F>> users;
try {
// query = new QueryType();
// query.setFilter(filter);
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("SYNCHRONIZATION: CORRELATION: expression for results in filter\n{}",
new Object[] {q.debugDump() });
}
PagingType paging = new PagingType();
// ObjectQuery q = QueryConvertor.createObjectQuery(UserType.class,
// query, prismContext);
LOGGER.trace("SYNCHRONIZATION: CORRELATION: expression for results in filter\n{}", q.debugDumpLazily());
users = repositoryService.searchObjects(focusType, q, null, result);

if (users == null) {
users = new ArrayList<PrismObject<F>>();
}
} catch (RuntimeException ex) {
LoggingUtils.logException(LOGGER,
"Couldn't search users in repository, based on filter (simplified)\n{}.", ex, q.debugDump());
throw new SystemException(
"Couldn't search users in repository, based on filter (See logs).", ex);
}

return users;
}

Expand Down

0 comments on commit 4494079

Please sign in to comment.