portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r702151 - /portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/mapping/ldap/dao/DefaultEntityContextMapper.java
Date Mon, 06 Oct 2008 14:11:19 GMT
Author: ddam
Date: Mon Oct  6 07:11:19 2008
New Revision: 702151

URL: http://svn.apache.org/viewvc?rev=702151&view=rev
Log:
revert changes; use Spring LDAP's AbstractContextMapper as base class

Modified:
    portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/mapping/ldap/dao/DefaultEntityContextMapper.java

Modified: portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/mapping/ldap/dao/DefaultEntityContextMapper.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/mapping/ldap/dao/DefaultEntityContextMapper.java?rev=702151&r1=702150&r2=702151&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/mapping/ldap/dao/DefaultEntityContextMapper.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/components/jetspeed-security/src/main/java/org/apache/jetspeed/security/mapping/ldap/dao/DefaultEntityContextMapper.java
Mon Oct  6 07:11:19 2008
@@ -16,31 +16,27 @@
  */
 package org.apache.jetspeed.security.mapping.ldap.dao;
 
-import javax.naming.directory.DirContext;
-
 import org.apache.jetspeed.security.mapping.EntityFactory;
-import org.springframework.ldap.core.ContextMapper;
+import org.springframework.ldap.core.DirContextOperations;
+import org.springframework.ldap.core.support.AbstractContextMapper;
 
 /**
  * @author <a href="mailto:ddam@apache.org">Dennis Dam</a>
  * @version $Id$
  */
-public class DefaultEntityContextMapper implements ContextMapper
+public class DefaultEntityContextMapper extends AbstractContextMapper
 {
 
     EntityFactory entityFactory;
 
-    
-    
     public DefaultEntityContextMapper(EntityFactory entityFactory)
     {
         this.entityFactory = entityFactory;
     }
 
-    public Object mapFromContext(Object ctx)
+    public Object doMapFromContext(DirContextOperations ctx)
     {
-        DirContext context = (DirContext)ctx;
-        return entityFactory.createEntity(context);
+        return entityFactory.createEntity(ctx);
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message