Package org.bremersee.ldaptive.reactive
Class ReactiveLdaptiveTemplate
java.lang.Object
org.bremersee.ldaptive.reactive.ReactiveLdaptiveTemplate
- All Implemented Interfaces:
ReactiveLdaptiveOperations
The reactive ldaptive template.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionReactiveLdaptiveTemplate(org.ldaptive.ConnectionFactory connectionFactory) Instantiates a new Reactive ldaptive template. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.ldaptive.Result> add(org.ldaptive.AddRequest addRequest) Executes add operation.reactor.core.publisher.Mono<Boolean> bind(org.ldaptive.BindRequest bindRequest) Executes bind operation.reactor.core.publisher.Mono<Boolean> compare(org.ldaptive.CompareRequest compareRequest) Executes compare operation.copy()Returns a new instance of this ldap operations with the same connection factory and error handler.copy(LdaptiveErrorHandler errorHandler) Returns a new instance of this ldap operations with the same connection factory and the given error handler.reactor.core.publisher.Mono<org.ldaptive.Result> delete(org.ldaptive.DeleteRequest deleteRequest) Executes delete operation.reactor.core.publisher.Mono<org.ldaptive.extended.ExtendedResponse> executeExtension(org.ldaptive.extended.ExtendedRequest request) Executes extended request.reactor.core.publisher.Flux<org.ldaptive.LdapEntry> findAll(org.ldaptive.SearchRequest searchRequest) Find all.reactor.core.publisher.Mono<org.ldaptive.LdapEntry> findOne(org.ldaptive.SearchRequest searchRequest) Find one.org.ldaptive.ConnectionFactoryGets connection factory.reactor.core.publisher.Mono<org.ldaptive.Result> modify(org.ldaptive.ModifyRequest modifyRequest) Executes modify operation.reactor.core.publisher.Mono<org.ldaptive.Result> modifyDn(org.ldaptive.ModifyDnRequest modifyDnRequest) Executes modify DN operation.<T> reactor.core.publisher.Mono<T> save(T domainObject, LdaptiveEntryMapper<T> entryMapper) Save.voidsetErrorHandler(LdaptiveErrorHandler errorHandler) Sets error handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bremersee.ldaptive.reactive.ReactiveLdaptiveOperations
exists, exists, findAll, findOne, generateUserPassword, modifyUserPassword, remove, removeAll, saveAll
-
Constructor Details
-
ReactiveLdaptiveTemplate
public ReactiveLdaptiveTemplate(org.ldaptive.ConnectionFactory connectionFactory) Instantiates a new Reactive ldaptive template.- Parameters:
connectionFactory- the connection factory
-
-
Method Details
-
getConnectionFactory
public org.ldaptive.ConnectionFactory getConnectionFactory()Description copied from interface:ReactiveLdaptiveOperationsGets connection factory.- Specified by:
getConnectionFactoryin interfaceReactiveLdaptiveOperations- Returns:
- the connection factory
-
setErrorHandler
Sets error handler.- Parameters:
errorHandler- the error handler
-
copy
Description copied from interface:ReactiveLdaptiveOperationsReturns a new instance of this ldap operations with the same connection factory and error handler.- Specified by:
copyin interfaceReactiveLdaptiveOperations- Returns:
- a new instance of this ldap operations
-
copy
Description copied from interface:ReactiveLdaptiveOperationsReturns a new instance of this ldap operations with the same connection factory and the given error handler.- Specified by:
copyin interfaceReactiveLdaptiveOperations- Parameters:
errorHandler- the new error handler- Returns:
- the new instance of this ldap operations
-
add
public reactor.core.publisher.Mono<org.ldaptive.Result> add(org.ldaptive.AddRequest addRequest) Description copied from interface:ReactiveLdaptiveOperationsExecutes add operation.- Specified by:
addin interfaceReactiveLdaptiveOperations- Parameters:
addRequest- the add request- Returns:
- the mono
-
bind
Description copied from interface:ReactiveLdaptiveOperationsExecutes bind operation.- Specified by:
bindin interfaceReactiveLdaptiveOperations- Parameters:
bindRequest- the bind request- Returns:
- the mono
-
compare
Description copied from interface:ReactiveLdaptiveOperationsExecutes compare operation.- Specified by:
comparein interfaceReactiveLdaptiveOperations- Parameters:
compareRequest- the compare request- Returns:
- the mono
-
delete
public reactor.core.publisher.Mono<org.ldaptive.Result> delete(org.ldaptive.DeleteRequest deleteRequest) Description copied from interface:ReactiveLdaptiveOperationsExecutes delete operation.- Specified by:
deletein interfaceReactiveLdaptiveOperations- Parameters:
deleteRequest- the delete request- Returns:
- the mono
-
executeExtension
public reactor.core.publisher.Mono<org.ldaptive.extended.ExtendedResponse> executeExtension(org.ldaptive.extended.ExtendedRequest request) Description copied from interface:ReactiveLdaptiveOperationsExecutes extended request.- Specified by:
executeExtensionin interfaceReactiveLdaptiveOperations- Parameters:
request- the request- Returns:
- the mono
-
modify
public reactor.core.publisher.Mono<org.ldaptive.Result> modify(org.ldaptive.ModifyRequest modifyRequest) Description copied from interface:ReactiveLdaptiveOperationsExecutes modify operation.- Specified by:
modifyin interfaceReactiveLdaptiveOperations- Parameters:
modifyRequest- the modify request- Returns:
- the mono
-
modifyDn
public reactor.core.publisher.Mono<org.ldaptive.Result> modifyDn(org.ldaptive.ModifyDnRequest modifyDnRequest) Description copied from interface:ReactiveLdaptiveOperationsExecutes modify DN operation.- Specified by:
modifyDnin interfaceReactiveLdaptiveOperations- Parameters:
modifyDnRequest- the modify dn request- Returns:
- the mono
-
findOne
public reactor.core.publisher.Mono<org.ldaptive.LdapEntry> findOne(org.ldaptive.SearchRequest searchRequest) Description copied from interface:ReactiveLdaptiveOperationsFind one.- Specified by:
findOnein interfaceReactiveLdaptiveOperations- Parameters:
searchRequest- the search request- Returns:
- the mono
-
findAll
public reactor.core.publisher.Flux<org.ldaptive.LdapEntry> findAll(org.ldaptive.SearchRequest searchRequest) Description copied from interface:ReactiveLdaptiveOperationsFind all.- Specified by:
findAllin interfaceReactiveLdaptiveOperations- Parameters:
searchRequest- the search request- Returns:
- the flux
-
save
Description copied from interface:ReactiveLdaptiveOperationsSave.- Specified by:
savein interfaceReactiveLdaptiveOperations- Type Parameters:
T- the type parameter- Parameters:
domainObject- the domain objectentryMapper- the entry mapper- Returns:
- the mono
-