Search in sources :

Example 1 with FilterInterpreter

use of com.evolveum.midpoint.provisioning.ucf.impl.connid.query.FilterInterpreter in project midpoint by Evolveum.

the class ConnectorInstanceConnIdImpl method convertFilterToIcf.

private Filter convertFilterToIcf(ObjectQuery query, ObjectClassComplexTypeDefinition objectClassDefinition) throws SchemaException {
    Filter filter = null;
    if (query != null && query.getFilter() != null) {
        FilterInterpreter interpreter = new FilterInterpreter(objectClassDefinition);
        LOGGER.trace("Start to convert filter: {}", query.getFilter().debugDump());
        filter = interpreter.interpret(query.getFilter(), connIdNameMapper);
        if (LOGGER.isTraceEnabled()) {
            LOGGER.trace("ICF filter: {}", ConnIdUtil.dump(filter));
        }
    }
    return filter;
}
Also used : Filter(org.identityconnectors.framework.common.objects.filter.Filter) FilterInterpreter(com.evolveum.midpoint.provisioning.ucf.impl.connid.query.FilterInterpreter)

Aggregations

FilterInterpreter (com.evolveum.midpoint.provisioning.ucf.impl.connid.query.FilterInterpreter)1 Filter (org.identityconnectors.framework.common.objects.filter.Filter)1