18171818181918201821182218231824182518261827
Hashtable errorList = new Hashtable(); deleteCollection(req, resources, path, errorList); try { resources.unbind(path); } catch (NamingException e) { errorList.put(path, new Integer (WebdavStatus.SC_INTERNAL_SERVER_ERROR)); }
729730731732733734735736737738739
} if (exists) { boolean result = true; try { resources.unbind(path); } catch (NamingException e) { result = false; } if (result) { resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
748749750751752753754755756757758
317318319320321322323324325326327
DirContext ctx = new InitialDirContext(env); NamingEnumeration enm = ctx.listBindings(""); while (enm.hasMore()) { Binding b = (Binding) enm.next(); ctx.unbind(b.getName()); } insertLdapPerson(new PersonDAO().getAll()); } }
251252253254255256257258259260261
DirContext ctx = new InitialDirContext(env); NamingEnumeration enm = ctx.listBindings(""); while (enm.hasMore()) { Binding b = (Binding) enm.next(); ctx.unbind(b.getName()); } insertLdapCompany(new CompanyDAO().getAll()); } }
742743744745746747748749750751752
743744745746747748749750751752753
758759760761762763764765766767768
744745746747748749750751752753754
18011802180318041805180618071808180918101811
boolean collection = (object instanceof DirContext); if (!collection) { try { resources.unbind(path); } catch (NamingException e) { resp.sendError(WebdavStatus.SC_INTERNAL_SERVER_ERROR); return false; } } else {