- Enclosing interface:
LDAPOperations
public static interface LDAPOperations.SearchBuilder
A search builder is used to build complex search operations.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionExecutes a search operation in the specified base context using the specified filter.Executes a search operation in the specified base context using the specified filter returning the specified list of attributes.Executes a search operation in the specified base context using the specified filter and arguments returning the specified list of attributes.Executes a search operation in the specified base context using the specified filter and arguments.Specifies whether aliases should be dereferenced.scope
(LDAPOperations.SearchScope scope) Specifies the search scope.sizeLimit
(int sizeLimit) Specified the size limit.timeLimit
(int timeLimit) specifies the time limit.Specifies whether only types should be returned.
-
Method Details
-
scope
Specifies the search scope.
- Parameters:
scope
- a scope- Returns:
- this builder
-
derefAliases
LDAPOperations.SearchBuilder derefAliases()Specifies whether aliases should be dereferenced.
- Returns:
- this builder
-
sizeLimit
Specified the size limit.
- Parameters:
sizeLimit
- the size limit- Returns:
- this builder
-
timeLimit
specifies the time limit.
- Parameters:
timeLimit
- the time limit- Returns:
- this builder
-
typesOnly
LDAPOperations.SearchBuilder typesOnly()Specifies whether only types should be returned.
- Returns:
- this builder
-
build
Executes a search operation in the specified base context using the specified filter.
- Parameters:
base
- the base contextfilter
- a filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
build
Executes a search operation in the specified base context using the specified filter and arguments.
- Parameters:
base
- the base contextfilter
- a filterfilterArgs
- the arguments to use to format the filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
build
Executes a search operation in the specified base context using the specified filter returning the specified list of attributes.
- Parameters:
base
- the base contextattributes
- the list of attributes to queryfilter
- a filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-
build
Flux<LDAPEntry> build(String base, String[] attributes, String filter, Object... filterArgs) throws LDAPException Executes a search operation in the specified base context using the specified filter and arguments returning the specified list of attributes.
- Parameters:
base
- the base contextattributes
- the list of attributes to queryfilter
- a filterfilterArgs
- the arguments to use to format the filter- Returns:
- a publisher of entries
- Throws:
LDAPException
- if there was an error during the search operation
-