Annotation Interface Query
Annotation for use in
LdapRepository
declarations to create
automatic query methods based on statically defined queries.
LDAP queries support parameter bindings (by-index using ?0, by-name using :someParam), SpEL expressions, and
Configuration Properties to create dynamic queries. All non-String arguments are converted to their
toString
representation to render the query.
- Author:
- Mattias Hellborg Arthursson
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSearch base, to be used as input toLdapQueryBuilder.base(javax.naming.Name)
.int
Count limit, to be used as input toLdapQueryBuilder.countLimit(int)
.org.springframework.ldap.query.SearchScope
Search scope, to be used as input toLdapQueryBuilder.searchScope(org.springframework.ldap.query.SearchScope)
.int
Time limit, to be used as input toLdapQueryBuilder.timeLimit(int)
.The filter format string, to be used as input toLdapQueryBuilder.filter(String, Object...)
.
-
Element Details
-
base
String baseSearch base, to be used as input toLdapQueryBuilder.base(javax.naming.Name)
. Supports parameter binding.- Returns:
- the search base, default is
LdapUtils.emptyLdapName()
- Default:
""
-
value
String valueThe filter format string, to be used as input toLdapQueryBuilder.filter(String, Object...)
. Supports parameter binding.- Returns:
- search filter, must be specified.
- Default:
""
-
searchScope
org.springframework.ldap.query.SearchScope searchScopeSearch scope, to be used as input toLdapQueryBuilder.searchScope(org.springframework.ldap.query.SearchScope)
.- Returns:
- the search scope.
- Default:
SUBTREE
-
timeLimit
int timeLimitTime limit, to be used as input toLdapQueryBuilder.timeLimit(int)
.- Returns:
- the time limit.
- Default:
0
-
countLimit
int countLimitCount limit, to be used as input toLdapQueryBuilder.countLimit(int)
.- Returns:
- the count limit.
- Default:
0
-