Class ReactiveLdaptiveTemplate
- java.lang.Object
-
- org.bremersee.data.ldaptive.reactive.ReactiveLdaptiveTemplate
-
- All Implemented Interfaces:
Cloneable,ReactiveLdaptiveOperations
public class ReactiveLdaptiveTemplate extends Object implements ReactiveLdaptiveOperations, Cloneable
The reactive ldaptive template.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ReactiveLdaptiveTemplate(org.ldaptive.ConnectionFactory connectionFactory)Instantiates a new Reactive ldaptive template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.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.ReactiveLdaptiveTemplateclone()Returns a new instance of this ldaptive template with the same connection factory and error handler.ReactiveLdaptiveTemplateclone(LdaptiveErrorHandler errorHandler)Returns a new instance of this ldaptive template with the same connection factory and the given error handler.reactor.core.publisher.Mono<Boolean>compare(org.ldaptive.CompareRequest compareRequest)Executes compare operation.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.ConnectionFactorygetConnectionFactory()Gets 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bremersee.data.ldaptive.reactive.ReactiveLdaptiveOperations
exists, exists, findAll, findOne, generateUserPassword, modifyUserPassword, remove, removeAll, saveAll
-
-
-
-
Method Detail
-
getConnectionFactory
public org.ldaptive.ConnectionFactory getConnectionFactory()
Description copied from interface:ReactiveLdaptiveOperationsGets connection factory.- Specified by:
getConnectionFactoryin interfaceReactiveLdaptiveOperations- Returns:
- the connection factory
-
setErrorHandler
public void setErrorHandler(LdaptiveErrorHandler errorHandler)
Sets error handler.- Parameters:
errorHandler- the error handler
-
clone
public ReactiveLdaptiveTemplate clone()
Returns a new instance of this ldaptive template with the same connection factory and error handler.
-
clone
public ReactiveLdaptiveTemplate clone(LdaptiveErrorHandler errorHandler)
Returns a new instance of this ldaptive template with the same connection factory and the given error handler.- Parameters:
errorHandler- the new error handler- Returns:
- the new instance of the ldaptive template
-
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
public reactor.core.publisher.Mono<Boolean> bind(org.ldaptive.BindRequest bindRequest)
Description copied from interface:ReactiveLdaptiveOperationsExecutes bind operation.- Specified by:
bindin interfaceReactiveLdaptiveOperations- Parameters:
bindRequest- the bind request- Returns:
- the mono
-
compare
public reactor.core.publisher.Mono<Boolean> compare(org.ldaptive.CompareRequest compareRequest)
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
public <T> reactor.core.publisher.Mono<T> save(T domainObject, LdaptiveEntryMapper<T> entryMapper)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
-
-