Commit Graph

6 Commits

Author SHA1 Message Date
Mark Paluch
a0fca062dd DATALDAP-65 - Fix query execution without predicates using Querydsl.
Query execution without a predicate now no longer fails but falls back to LdapOperations.findAll(…). Previously, we did not initialize the filter of LdapQuery which caused an IllegalStateException in LdapOperations.find(…).
2018-03-29 13:40:09 +02:00
Mark Paluch
d594183e8d DATALDAP-7 - Migrate tests to AssertJ.
Switch remaining tests to AssertJ.
2016-12-06 11:27:10 +01:00
Mark Paluch
1e35b624b7 DATALDAP-2- Support repositoryBaseClass and considerNestedRepositories in @EnableLdapRepositories annotation.
We now support nested repository interfaces and customization via EnableLdapRepositories.repositoryBaseClass.

  @Configuration
  @EnableLdapRepositories(considerNestedRepositories = true, repositoryBaseClass = CustomizedLdapRepository.class)
  public class Config {
    // …
  }
2016-12-06 11:11:49 +01:00
Mark Paluch
ba9f653c95 DATALDAP-1 - Polishing.
Split XML configuration into infrastructure and test-specific parts. Add test logging configuration. Rename test classes to end with Tests suffix.
2016-12-06 10:18:38 +01:00
Mark Paluch
39b6b4d6af DATALDAP-1 - Create namespace handler and XML schema.
Spring Data LDAP now uses its own Namespace: http://www.springframework.org/schema/data/ldap. Using XML configuration for Spring LDAP and Spring Data LDAP requires both namespaces to be declared.

<beans xmlns="http://www.springframework.org/schema/beans"
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xmlns:ldap="http://www.springframework.org/schema/ldap"
		xmlns:data-ldap="http://www.springframework.org/schema/data/ldap"
		xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/ldap http://www.springframework.org/schema/ldap/spring-ldap.xsd
		http://www.springframework.org/schema/data/ldap http://www.springframework.org/schema/data/ldap/spring-ldap.xsd">

	<ldap:context-source password="apassword" url="ldap://localhost:389" username="uid=admin"/>

	<ldap:ldap-template/>

	<data-ldap:repositories base-package="org.springframework.data.ldap.config"/>

</beans>
2016-12-06 10:18:35 +01:00
Mark Paluch
9bbf0389e2 Initial import. 2016-11-21 15:53:45 +01:00