红联Linux门户
Linux帮助

Spring LDAP 2.0.2发布

发布时间:2014-07-02 10:01:34来源:红联作者:empast
Spring LDAP 是一个用于操作 LDAP 的 Java 框架。它是基于 Spring 的 JdbcTemplate 模式。这个框架能够帮助开发人员简化 looking up,closing contexts,looping through NamingEnumerations,encoding/decoding values与 filters 等操作。

Spring LDAP 2.0.2 发布,此版本着重于确保先后兼容性,移除了废弃的方法和类,迁移到了心的方法,类和 API。

Spring LDAP 2.0 主要更新内容如下:

Java 6 is now required by Spring LDAP. Spring versions starting at 2.0 and up are still supported.

The central API has been updated with Java 5+ features such as generics and varargs.

The ODM (Object-Directory Mapping) functionality has been moved to core and there are new methods inLdapOperations/LdapTemplate that use this automatic translation to/from ODM-annotated classes. Object-Directory Mapping (ODM)

A custom XML namespace is now (finally) provided to simplify configuration of Spring LDAP. Configuration

Spring Data Repository and QueryDSL support is now provided in Spring LDAP. Spring LDAP Repositories

Name instances as attribute values are now handled properly with regards to distinguished name equality in DirContextAdapter and ODM. See DirContextAdapter and Distinguished Names as Attribute Values. and ODM and Distinguished Names as Attribute Values. for more information.

DistinguishedName and associated classes have been deprecated in favor of standard Java LdapName. See Dynamically Building Distinguished Names for information on how the library helps working with LdapNames.

Fluent LDAP query building support has been added. This makes for a more pleasant programming experience when working with LDAP searches in Spring LDAP. See Building LDAP Queries and Advanced LDAP Queries for more information about the LDAP query builder support.

The old authenticate methods in LdapTemplate have been deprecated in favor of a couple of new authenticate methods that work with LdapQuery objects and throw exceptions on authentication failure.

The samples have been polished and updated to make use of the features in 2.0. LDAP user management application

项目主页:http://projects.spring.io/spring-ldap/

来自:开源中国社区
文章评论

共有 0 条评论