You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/09/10 16:09:07 UTC
svn commit: r1702257 -
/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/SearchScope.java
Author: elecharny
Date: Thu Sep 10 14:09:07 2015
New Revision: 1702257
URL: http://svn.apache.org/r1702257
Log:
Improved the Javadoc : LDAPUrlValue for scope does not make a lot of sense.
Modified:
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/SearchScope.java
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/SearchScope.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/SearchScope.java?rev=1702257&r1=1702256&r2=1702257&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/SearchScope.java (original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/message/SearchScope.java Thu Sep 10 14:09:07 2015
@@ -115,28 +115,28 @@ public enum SearchScope
/**
* Gets the SearchScope enumerated type for the corresponding
- * LDAP URL scope value of either base, one or sub.
+ * scope value of either base, one or sub.
*
- * @param ldapUrlValue the LDAP URL scope value to get SearchScope for
+ * @param scope the scope value to get SearchScope for
* @return the SearchScope enumerated type for the LDAP URL scope value
*/
- public static int getSearchScope( String ldapUrlValue )
+ public static int getSearchScope( String scope )
{
- if ( "base".equalsIgnoreCase( ldapUrlValue ) )
+ if ( "base".equalsIgnoreCase( scope ) )
{
return OBJECT.getScope();
}
- else if ( "one".equalsIgnoreCase( ldapUrlValue ) )
+ else if ( "one".equalsIgnoreCase( scope ) )
{
return ONELEVEL.getScope();
}
- else if ( "sub".equalsIgnoreCase( ldapUrlValue ) )
+ else if ( "sub".equalsIgnoreCase( scope ) )
{
return SUBTREE.getScope();
}
else
{
- throw new IllegalArgumentException( I18n.err( I18n.ERR_04161, ldapUrlValue ) );
+ throw new IllegalArgumentException( I18n.err( I18n.ERR_04161, scope ) );
}
}