Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.directory.ldap.filter
Class FilterExpressionCorrector

java.lang.Object
  extended by org.nuxeo.ecm.directory.ldap.filter.FilterExpressionCorrector

public class FilterExpressionCorrector
extends Object

This class is used to apply corrections to a filter expression. It is mainly used for filters that come from an Active Directory.

You can apply the corrections you want, in the desired order. The available jobs are listed in the enum FilterJobs.

Example: FilterExpressionCorrector.correctFilter(filterValue, FilterJobs.JOB1, FilterJobs.JOB2);

Author:
Nicolas Ulrich

Nested Class Summary
static class FilterExpressionCorrector.FilterJobs
          Enumeration of the available jobs
 
Constructor Summary
FilterExpressionCorrector()
           
 
Method Summary
static String correctFilter(String filterExpression, FilterExpressionCorrector.FilterJobs... jobs)
          Apply the chosen Correctors to the filter expression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterExpressionCorrector

public FilterExpressionCorrector()
Method Detail

correctFilter

public static String correctFilter(String filterExpression,
                                   FilterExpressionCorrector.FilterJobs... jobs)
Apply the chosen Correctors to the filter expression

Parameters:
filterExpression - The filter expression to correct
jobs - List of the jobs you want to apply.

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.