Interface ContainerCriteria
- All Superinterfaces:
LdapQuery
And/or filter builder support for LdapQuery.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionAppend a logical And condition to the currently built filter.and(ContainerCriteria nested) Append an And condition for a nested criterion.Append a logical Or condition to the currently built filter.or(ContainerCriteria nested) Append an Or condition for a nested criterion.Methods inherited from interface LdapQuery
attributes, base, countLimit, filter, searchScope, timeLimit
-
Method Details
-
and
Append a logical And condition to the currently built filter.- Parameters:
attribute- Name of the attribute to specify a condition for. Values are escaped, but the attribute name is only validated as an RFC 4512 attribute description, so it should not come from untrusted input.- Returns:
- A ConditionCriteria instance for specifying the compare operation.
- Throws:
IllegalStateException- ifor(String)has previously been called on this instance.IllegalArgumentException- when the condition is specified, if the attribute is not a valid attribute description.
-
or
Append a logical Or condition to the currently built filter.- Parameters:
attribute- Name of the attribute to specify a condition for. Values are escaped, but the attribute name is only validated as an RFC 4512 attribute description, so it should not come from untrusted input.- Returns:
- A ConditionCriteria instance for specifying the compare operation.
- Throws:
IllegalStateException- ifand(String)has previously been called on this instance.IllegalArgumentException- when the condition is specified, if the attribute is not a valid attribute description.
-
and
Append an And condition for a nested criterion. UseLdapQueryBuilder.query()to start the nested condition. Any base query information on the nested builder instance will not be considered.- Parameters:
nested- the nested criterion.- Returns:
- A ConditionCriteria instance for specifying the compare operation.
-
or
Append an Or condition for a nested criterion. UseLdapQueryBuilder.query()to start the nested condition. Any base query information on the nested builder instance will not be considered.- Parameters:
nested- the nested criterion.- Returns:
- A ConditionCriteria instance for specifying the compare operation.
-