directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1445291 - /directory/apacheds/trunk/interceptors/admin/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
Date Tue, 12 Feb 2013 18:06:38 GMT
Author: elecharny
Date: Tue Feb 12 18:06:38 2013
New Revision: 1445291

URL: http://svn.apache.org/r1445291
Log:
Rmoved dead code

Modified:
    directory/apacheds/trunk/interceptors/admin/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java

Modified: directory/apacheds/trunk/interceptors/admin/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/admin/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java?rev=1445291&r1=1445290&r2=1445291&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/admin/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
(original)
+++ directory/apacheds/trunk/interceptors/admin/src/main/java/org/apache/directory/server/core/admin/AdministrativePointInterceptor.java
Tue Feb 12 18:06:38 2013
@@ -20,6 +20,7 @@
 package org.apache.directory.server.core.admin;
 
 
+import java.net.Authenticator;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -1144,16 +1145,11 @@ public class AdministrativePointIntercep
         // administrative point, finally the Inner administrative Point
         Dn adminDn = new Dn( schemaManager, ServerDNConstants.ADMIN_SYSTEM_DN );
 
-        SearchControls controls = new SearchControls();
-        controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
-        controls.setReturningAttributes( new String[]
-            { SchemaConstants.ADMINISTRATIVE_ROLE_AT } );
-
         // get the list of all the AAPs
         List<Entry> administrativePoints = getAdministrativePoints();
 
         lockWrite();
-        
+
         try
         {
             addAdminPointCache( administrativePoints );
@@ -1226,12 +1222,12 @@ public class AdministrativePointIntercep
             {
                 checkAddRole( role, adminPoint, dn );
             }
-    
+
             // Ok, we are golden.
             next( addContext );
-    
+
             String apUuid = entry.get( ENTRY_UUID_AT ).getString();
-    
+
             // Now, update the AdminPoint cache
             createAdministrativePoints( adminPoint, dn, apUuid );
         }
@@ -1292,10 +1288,10 @@ public class AdministrativePointIntercep
                     throw new LdapUnwillingToPerformException( message );
                 }
             }
-    
+
             // Ok, we can remove the AP
             next( deleteContext );
-    
+
             // Now, update the AdminPoint cache
             deleteAdminPointCache( adminPoint, deleteContext );
         }



Mime
View raw message