directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r291569 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/ACDFEngine.java
Date Mon, 26 Sep 2005 06:37:29 GMT
Author: trustin
Date: Sun Sep 25 23:37:25 2005
New Revision: 291569

URL: http://svn.apache.org/viewcvs?rev=291569&view=rev
Log:
Used PresenceNode instead of FilterParser.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/ACDFEngine.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/ACDFEngine.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/ACDFEngine.java?rev=291569&r1=291568&r2=291569&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/ACDFEngine.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authz/ACDFEngine.java
Sun Sep 25 23:37:25 2005
@@ -38,7 +38,7 @@
 import org.apache.ldap.common.aci.ProtectedItem.RestrictedByItem;
 import org.apache.ldap.common.exception.LdapNoPermissionException;
 import org.apache.ldap.common.filter.ExprNode;
-import org.apache.ldap.common.filter.FilterParserImpl;
+import org.apache.ldap.common.filter.PresenceNode;
 import org.apache.ldap.common.name.LdapName;
 import org.apache.ldap.common.subtree.SubtreeSpecification;
 import org.apache.ldap.server.event.Evaluator;
@@ -67,16 +67,8 @@
         refinementEvaluator = new RefinementEvaluator(
                 new RefinementLeafEvaluator( oidRegistry ) );
 
-        try
-        {
-            childrenFilter = new FilterParserImpl().parse( "(objectClass=*)" );
-        }
-        catch( Exception e )
-        {
-            throw ( NamingException ) new NamingException(
-                    "Failed to initialize a children filter." ).initCause( e );
-        }
         
+        childrenFilter = new PresenceNode( "objectClass" );
         childrenSearchControls = new SearchControls();
         childrenSearchControls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
     }



Mime
View raw message