/** * Gets the SearchScope enumerated type for the corresponding * scope value of either base, one or sub. * * @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 scope ) { if ( "base".equalsIgnoreCase( scope ) ) { return OBJECT.getScope(); } else if ( "one".equalsIgnoreCase( scope ) ) { return ONELEVEL.getScope(); } else if ( "sub".equalsIgnoreCase( scope ) ) { return SUBTREE.getScope(); } else { throw new IllegalArgumentException( I18n.err( I18n.ERR_13502_UNKNOWN_LDAP_URL_SCOPE, scope ) ); } }
/** * Gets the SearchScope enumerated type for the corresponding * scope value of either base, one or sub. * * @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 scope ) { if ( "base".equalsIgnoreCase( scope ) ) { return OBJECT.getScope(); } else if ( "one".equalsIgnoreCase( scope ) ) { return ONELEVEL.getScope(); } else if ( "sub".equalsIgnoreCase( scope ) ) { return SUBTREE.getScope(); } else { throw new IllegalArgumentException( I18n.err( I18n.ERR_13502_UNKNOWN_LDAP_URL_SCOPE, scope ) ); } }
/** * Gets the SearchScope enumerated type for the corresponding * scope value of either base, one or sub. * * @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 scope ) { if ( "base".equalsIgnoreCase( scope ) ) { return OBJECT.getScope(); } else if ( "one".equalsIgnoreCase( scope ) ) { return ONELEVEL.getScope(); } else if ( "sub".equalsIgnoreCase( scope ) ) { return SUBTREE.getScope(); } else { throw new IllegalArgumentException( I18n.err( I18n.ERR_13502_UNKNOWN_LDAP_URL_SCOPE, scope ) ); } }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( aliasDerefAliases != null ? aliasDerefAliases.hashCode() : 0 ); h = h * 17 + ( baseDn != null ? baseDn.hashCode() : 0 ); h = h * 17 + scope.getScope(); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( aliasDerefAliases != null ? aliasDerefAliases.hashCode() : 0 ); h = h * 17 + ( baseDn != null ? baseDn.hashCode() : 0 ); h = h * 17 + scope.getScope(); return h; }
/** * @see Object#hashCode() * @return the instance's hash code */ @Override public int hashCode() { int h = 37; h = h * 17 + super.hashCode(); h = h * 17 + ( aliasDerefAliases != null ? aliasDerefAliases.hashCode() : 0 ); h = h * 17 + ( baseDn != null ? baseDn.hashCode() : 0 ); h = h * 17 + scope.getScope(); return h; }
matchingDns = bindJndiServices.getEntry(baseDn, urlInstance.getFilter().toString(), new SearchControls(), urlInstance.getScope().getScope()); } catch (SizeLimitExceededException e) {
BerValue.encodeEnumerated( buffer, getScope().getScope() );
BerValue.encodeEnumerated( buffer, getScope().getScope() );
BerValue.encodeEnumerated( buffer, getScope().getScope() );
ldapUrl.setScope( req.getScope().getScope() ); referral.addLdapUrl( ldapUrl.toString() );