Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 80659 invoked from network); 31 Jul 2006 18:42:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Jul 2006 18:42:49 -0000 Received: (qmail 76593 invoked by uid 500); 31 Jul 2006 18:42:49 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 76562 invoked by uid 500); 31 Jul 2006 18:42:49 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 76550 invoked by uid 99); 31 Jul 2006 18:42:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 11:42:49 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Jul 2006 11:42:48 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 514771A981D; Mon, 31 Jul 2006 11:42:28 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r427196 - in /directory/trunks/shared/ldap/src/main/antlr: ACIItem.g DnCommonTokenTypes.txt dnparser.g subtree-specification.g typelexer.g valuelexer.g valueparser.g Date: Mon, 31 Jul 2006 18:42:27 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060731184228.514771A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Mon Jul 31 11:42:27 2006 New Revision: 427196 URL: http://svn.apache.org/viewvc?rev=427196&view=rev Log: Merging changes form optimization branch of shared/ldap/src/main/antlr back into this 1.1 trunks branch. Here's the merge command used: svn merge -r 414084:427187 https://svn.apache.org/repos/asf/directory/branches/shared/optimization . Removed: directory/trunks/shared/ldap/src/main/antlr/DnCommonTokenTypes.txt directory/trunks/shared/ldap/src/main/antlr/dnparser.g directory/trunks/shared/ldap/src/main/antlr/typelexer.g directory/trunks/shared/ldap/src/main/antlr/valuelexer.g directory/trunks/shared/ldap/src/main/antlr/valueparser.g Modified: directory/trunks/shared/ldap/src/main/antlr/ACIItem.g directory/trunks/shared/ldap/src/main/antlr/subtree-specification.g Modified: directory/trunks/shared/ldap/src/main/antlr/ACIItem.g URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/antlr/ACIItem.g?rev=427196&r1=427195&r2=427196&view=diff ============================================================================== --- directory/trunks/shared/ldap/src/main/antlr/ACIItem.g (original) +++ directory/trunks/shared/ldap/src/main/antlr/ACIItem.g Mon Jul 31 11:42:27 2006 @@ -120,6 +120,7 @@ private int m_precedence; private Set m_grantsAndDenials; private Set m_userPermissions; + private Map oidsMap; private Set chopBeforeExclusions; private Set chopAfterExclusions; @@ -138,8 +139,9 @@ * * @return the DnParser to be used for parsing Names */ - public void init() + public void init( Map oidsMap ) { + this.oidsMap = oidsMap; } /** @@ -488,7 +490,7 @@ // A Dn can be considered as a set of attributeTypeAndValues // So, parse the set as a Dn and extract each attributeTypeAndValue LdapDN attributeTypeAndValueSetAsDn = new LdapDN( token.getText() ); - attributeTypeAndValueSetAsDn.normalize(); + attributeTypeAndValueSetAsDn.normalize( oidsMap ); Enumeration attributeTypeAndValueSet = attributeTypeAndValueSetAsDn.getAll(); while ( attributeTypeAndValueSet.hasMoreElements() ) { @@ -1153,7 +1155,7 @@ token:SAFEUTF8STRING { name = new LdapDN( token.getText() ); - name.normalize(); + name.normalize( oidsMap ); log.debug( "recognized a DistinguishedName: " + token.getText() ); } ; Modified: directory/trunks/shared/ldap/src/main/antlr/subtree-specification.g URL: http://svn.apache.org/viewvc/directory/trunks/shared/ldap/src/main/antlr/subtree-specification.g?rev=427196&r1=427195&r2=427196&view=diff ============================================================================== --- directory/trunks/shared/ldap/src/main/antlr/subtree-specification.g (original) +++ directory/trunks/shared/ldap/src/main/antlr/subtree-specification.g Mon Jul 31 11:42:27 2006 @@ -21,6 +21,7 @@ package org.apache.directory.shared.ldap.subtree; import java.util.Set; +import java.util.Map; import java.util.HashSet; import java.util.ArrayList; @@ -80,25 +81,28 @@ private SubtreeSpecificationModifier ssModifier = null; + private Map oidsMap; + private ComponentsMonitor subtreeSpecificationComponentsMonitor = null; /** * Does nothing. */ - public void init() + public void init( Map oidsMap ) { + this.oidsMap = oidsMap; } public void setNormalizerMappingResolver( NormalizerMappingResolver resolver ) { - this.resolver = resolver; + this.resolver = resolver; } public boolean isNormalizing() { - return this.resolver != null; + return this.resolver != null; } @@ -306,7 +310,7 @@ name = new LdapDN( token.getText() ); if ( isNormalizing() ) { - name.normalize(); + name.normalize( oidsMap ); } log.debug( "recognized a DistinguishedName: " + token.getText() ); }