| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.guitools.controlpanel.util; |
| | |
| | | public CustomSearchResult processBackgroundTask() throws Throwable |
| | | { |
| | | isOver = false; |
| | | NamingEnumeration<SearchResult> en = null; |
| | | try |
| | | { |
| | | SearchControls controls = new SearchControls(); |
| | |
| | | controls.setSearchScope(SearchControls.OBJECT_SCOPE); |
| | | final String filter = "(|(objectclass=*)(objectclass=ldapsubentry))"; |
| | | |
| | | NamingEnumeration<SearchResult> en = |
| | | ctx.search(Utilities.getJNDIName(dn), filter, controls); |
| | | en = ctx.search(Utilities.getJNDIName(dn), filter, controls); |
| | | |
| | | SearchResult sr = en.next(); |
| | | |
| | |
| | | { |
| | | isOver = true; |
| | | } |
| | | if (en != null) |
| | | { |
| | | en.close(); |
| | | } |
| | | } |
| | | } |
| | | |