LDAP-258: Reverted use of AbstractContextMapper from core in order to avoid package tangle.

This commit is contained in:
Mattias Hellborg Arthursson
2013-09-09 11:27:51 +02:00
parent d6f8f6e488
commit 858dfd02e6

View File

@@ -15,7 +15,6 @@
*/
package org.springframework.ldap.core;
import org.springframework.ldap.core.support.AbstractContextMapper;
import org.springframework.ldap.support.LdapUtils;
/**
@@ -25,10 +24,10 @@ import org.springframework.ldap.support.LdapUtils;
* @author Mattias Hellborg Arthursson
* @since 1.3
*/
public class LdapEntryIdentificationContextMapper extends AbstractContextMapper<LdapEntryIdentification> {
public class LdapEntryIdentificationContextMapper implements ContextMapper<LdapEntryIdentification> {
@Override
public LdapEntryIdentification doMapFromContext(DirContextOperations adapter) {
public LdapEntryIdentification mapFromContext(Object ctx) {
DirContextOperations adapter = (DirContextOperations) ctx;
return new LdapEntryIdentification(
LdapUtils.newLdapName(adapter.getNameInNamespace()),
LdapUtils.newLdapName(adapter.getDn()));