use of com.unboundid.ldap.sdk.DeleteRequest in project oxCore by GluuFederation.
the class LdapOperationsServiceImpl method deleteWithSubtree.
/*
* (non-Javadoc)
*
* @see org.gluu.site.ldap.PlatformOperationFacade#deleteWithSubtree(java.lang.
* String)
*/
@Override
public void deleteWithSubtree(String dn) throws ConnectionException {
try {
final DeleteRequest deleteRequest = new DeleteRequest(dn);
deleteRequest.addControl(new SubtreeDeleteRequestControl());
getConnectionPool().delete(deleteRequest);
} catch (Exception ex) {
throw new ConnectionException("Failed to delete entry", ex);
}
}
Aggregations