use of org.identityconnectors.framework.common.objects.filter.CompositeFilter in project midpoint by Evolveum.
the class ConnIdUtil method dump.
private static void dump(Filter filter, StringBuilder sb, int indent) {
DebugUtil.indentDebugDump(sb, indent);
if (filter == null) {
sb.append("null");
return;
}
sb.append(filter.toString());
if (filter instanceof AttributeFilter) {
sb.append("(");
Attribute attribute = ((AttributeFilter) filter).getAttribute();
sb.append(attribute.getName());
sb.append(": ");
List<Object> value = attribute.getValue();
sb.append(value);
// if (value != null && !value.isEmpty()) {
// sb.append(" :").append(attribute.getValue().iterator().next().getClass().getSimpleName());
// }
sb.append(")");
}
if (filter instanceof CompositeFilter) {
for (Filter subfilter : ((CompositeFilter) filter).getFilters()) {
sb.append("\n");
dump(subfilter, sb, indent + 1);
}
}
}
Aggregations