Package org.springframework.ldap.query
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 org.springframework.ldap.query.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.- Returns:
- A ConditionCriteria instance for specifying the compare operation.
- Throws:
IllegalStateException
- ifor(String)
has previously been called on this instance.
-
or
Append a logical Or condition to the currently built filter.- Parameters:
attribute
- Name of the attribute to specify a condition for.- Returns:
- A ConditionCriteria instance for specifying the compare operation.
- Throws:
IllegalStateException
- ifand(String)
has previously been called on this instance.
-
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.
-