| | |
| | | @Override |
| | | public void deleteSubtree(LdapName dn) throws NamingException { |
| | | // Delete the children first. |
| | | for (LdapName child : listEntries(dn)) { |
| | | for (LdapName child : listEntries(dn, null)) { |
| | | deleteSubtree(child); |
| | | } |
| | | |
| | |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override |
| | | public Collection<LdapName> listEntries(LdapName dn) throws NamingException { |
| | | String filter = "(objectClass=*)"; |
| | | public Collection<LdapName> listEntries(LdapName dn, String filter) |
| | | throws NamingException { |
| | | if (filter == null) { |
| | | filter = "(objectClass=*)"; |
| | | } |
| | | |
| | | SearchControls controls = new SearchControls(); |
| | | controls.setSearchScope(SearchControls.ONELEVEL_SCOPE); |
| | | |