LDAP-266: Documentation
This commit is contained in:
@@ -44,6 +44,7 @@
|
||||
<xi:include href="odm.xml" />
|
||||
<xi:include href="advancedqueries.xml" />
|
||||
<xi:include href="configuration.xml" />
|
||||
<xi:include href="repositories.xml" />
|
||||
<xi:include href="pooling.xml" />
|
||||
<xi:include href="executors.xml" />
|
||||
<xi:include href="contextprocessor.xml" />
|
||||
|
||||
34
src/docbkx/repositories.xml
Normal file
34
src/docbkx/repositories.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<chapter id="repositories">
|
||||
<title>Spring LDAP Repositories</title>
|
||||
|
||||
<sect1 id="repositories-overview">
|
||||
<title>Overview</title>
|
||||
|
||||
<para>
|
||||
Spring LDAP has built-in support for Spring Data repositories. The basic functionality and configuration is described <ulink
|
||||
url="http://docs.spring.io/spring-data/data-commons/docs/1.6.1.RELEASE/reference/html/repositories.html">here</ulink>.
|
||||
When working with Spring LDAP repositories, please note the following:
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
Spring LDAP repositories can be enabled using an <literal><ldap:repositories></literal> tag in
|
||||
your XML configuration or using an <literal>@EnableLdapRepositories</literal> annotation on a
|
||||
configuration class.
|
||||
</listitem>
|
||||
<listitem>
|
||||
All Spring LDAP repositories must work with entities annotated with the ODM annotations, as described
|
||||
in <xref linkend="odm" />.
|
||||
</listitem>
|
||||
<listitem>
|
||||
Since all ODM managed classes must have a Distinguished Name as ID, all Spring LDAP repositories must
|
||||
have the ID type parameter set to <literal>javax.naming.Name</literal>. Indeed, the built-in
|
||||
<literal>SpringLdapRepository</literal> only takes one type parameter; the managed entity class, defaulting
|
||||
ID to <literal>javax.naming.Name</literal>.
|
||||
</listitem>
|
||||
<listitem>
|
||||
Due to specifics of the LDAP protocol, paging and sorting is not supported for Spring LDAP repositories.
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
</sect1>
|
||||
</chapter>
|
||||
Reference in New Issue
Block a user