| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.browser; |
| | |
| | | boolean isConfigurationNode) |
| | | throws NamingException { |
| | | InitialLdapContext result; |
| | | if (followReferrals && (node.getRemoteUrl() != null)) { |
| | | if (followReferrals && (node.getRemoteUrl() != null)) |
| | | { |
| | | result = connectionPool.getConnection(node.getRemoteUrl()); |
| | | } |
| | | else { |
| | |
| | | // Note: logically we should unconditionaly call: |
| | | // startRefreshNode(child, false, true); |
| | | // |
| | | // However doing that saturates _refreshQueue |
| | | // However doing that saturates refreshQueue |
| | | // with many nodes. And, by design, RefreshTask |
| | | // won't do anything on a node if: |
| | | // - this node has no subordinates |
| | |
| | | { |
| | | String[] result = null; |
| | | Set<String> values = ConnectionUtils.getValues(entry, "objectClass"); |
| | | if (values != null) { |
| | | if (values != null) |
| | | { |
| | | for (String value : values) |
| | | { |
| | | boolean isReferral = value.equalsIgnoreCase("referral"); |
| | |
| | | { |
| | | result = new String[refValues.size()]; |
| | | refValues.toArray(result); |
| | | break; |
| | | } |
| | | break; |
| | | } |
| | | break; |
| | | } |
| | | } |
| | | return result; |