Fixed LDAP-213, Javadoc for PresentFilter and NotPresentFilter is incorrect
This commit is contained in:
@@ -20,7 +20,7 @@ import org.apache.commons.lang.builder.HashCodeBuilder;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* Allows hardcoded parts to be included in a search filter. Particularly useful
|
||||
* Allows hard coded parts to be included in a search filter. Particularly useful
|
||||
* if some filters are specified in configuration files and these should be
|
||||
* combined with other ones.
|
||||
*
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springframework.ldap.filter;
|
||||
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.apache.commons.lang.builder.EqualsBuilder;
|
||||
import org.apache.commons.lang.builder.HashCodeBuilder;
|
||||
|
||||
/**
|
||||
* A filter for 'not'. The following code:
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.springframework.ldap.filter.AbstractFilter;
|
||||
* filter on attributes at are {@code present} use the {@link PresentFilter}.
|
||||
*
|
||||
* <pre>
|
||||
* NotPresentFilter filter = new NotPresentFilter("foo*");
|
||||
* NotPresentFilter filter = new NotPresentFilter("foo");
|
||||
* System.out.println(filter.encode());
|
||||
* </pre>
|
||||
*
|
||||
|
||||
@@ -20,10 +20,10 @@ package org.springframework.ldap.filter;
|
||||
* Filter for logical OR.
|
||||
*
|
||||
* <pre>
|
||||
* OrFilter filter = new OrFilter();
|
||||
* filter.or(new EqualsFilter("objectclass", "person");
|
||||
* filter.or(new EqualsFilter("objectclass", "organizationalUnit");
|
||||
* System.out.println(filter.encode());
|
||||
* OrFilter filter = new OrFilter();
|
||||
* filter.or(new EqualsFilter("objectclass", "person");
|
||||
* filter.or(new EqualsFilter("objectclass", "organizationalUnit");
|
||||
* System.out.println(filter.encode());
|
||||
* </pre>
|
||||
*
|
||||
* would result in:
|
||||
|
||||
@@ -26,7 +26,7 @@ import org.apache.commons.lang.builder.HashCodeBuilder;
|
||||
* in combination with a {@link NotFilter} .
|
||||
*
|
||||
* <pre>
|
||||
* PresentFilter filter = new PresentFilter("foo*");
|
||||
* PresentFilter filter = new PresentFilter("foo");
|
||||
* System.out.println(filter.encode());
|
||||
* </pre>
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user