Nuxeo Enterprise Platform 5.4

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

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

public class FilterExpressionCorrector
extends java.lang.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 java.lang.String correctFilter(java.lang.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 java.lang.String correctFilter(java.lang.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 Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.