directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1088534 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/syntaxCheckers/SearchScopeSyntaxChecker.java
Date Mon, 04 Apr 2011 10:03:35 GMT
Author: kayyagari
Date: Mon Apr  4 10:03:35 2011
New Revision: 1088534

URL: http://svn.apache.org/viewvc?rev=1088534&view=rev
Log:
use the same string values that are used in SearchScope enum

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/syntaxCheckers/SearchScopeSyntaxChecker.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/syntaxCheckers/SearchScopeSyntaxChecker.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/syntaxCheckers/SearchScopeSyntaxChecker.java?rev=1088534&r1=1088533&r2=1088534&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/syntaxCheckers/SearchScopeSyntaxChecker.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/syntaxCheckers/SearchScopeSyntaxChecker.java
Mon Apr  4 10:03:35 2011
@@ -82,6 +82,6 @@ public class SearchScopeSyntaxChecker ex
 
         strValue = Strings.trim( Strings.toLowerCase( strValue ) );
         
-        return ( "object".equals( strValue ) || "one".equals(  strValue ) || "subtree".equals(
strValue ) );
+        return ( "base".equals( strValue ) || "one".equals(  strValue ) || "sub".equals(
strValue ) );
     }
 }



Mime
View raw message