This removes all child elements (one level deep) with the given local name and belonging to no namespace. Returns true if any were removed.
473474475476477478479480481482483
if(IOUtils.saveDirectory(currdom, true, SchedulerDom.DIRECTORY, null, container)) { Element root = currdom.getRoot(); if(root != null) { Element config = root.getChild("config"); if(config != null) { config.removeChildren("jobs"); config.removeChildren("job_chains"); config.removeChildren("locks"); Utils.removeChildrensWithName(config, "process_classes"); config.removeChildren("schedules"); config.removeChildren("commands");
474475476477478479480481482483484
Element root = currdom.getRoot(); if(root != null) { Element config = root.getChild("config"); if(config != null) { config.removeChildren("jobs"); config.removeChildren("job_chains"); config.removeChildren("locks"); Utils.removeChildrensWithName(config, "process_classes"); config.removeChildren("schedules"); config.removeChildren("commands"); form.updateTree("main");
475476477478479480481482483484485
if(root != null) { Element config = root.getChild("config"); if(config != null) { config.removeChildren("jobs"); config.removeChildren("job_chains"); config.removeChildren("locks"); Utils.removeChildrensWithName(config, "process_classes"); config.removeChildren("schedules"); config.removeChildren("commands"); form.updateTree("main"); form.update();
477478479480481482483484485486487
if(config != null) { config.removeChildren("jobs"); config.removeChildren("job_chains"); config.removeChildren("locks"); Utils.removeChildrensWithName(config, "process_classes"); config.removeChildren("schedules"); config.removeChildren("commands"); form.updateTree("main"); form.update(); } }
478479480481482483484485486487488
config.removeChildren("jobs"); config.removeChildren("job_chains"); config.removeChildren("locks"); Utils.removeChildrensWithName(config, "process_classes"); config.removeChildren("schedules"); config.removeChildren("commands"); form.updateTree("main"); form.update(); } } }
106107108109110111112113114115116
} else { users = new Element("http.users"); auth.addContent(users); } } users.removeChildren("http.user"); } if (httpUser.length > 0) { if (_http_server == null && _config.getAttribute("http_server") == null) {
377378379380381382383384385386387
e.setName(cmd); if (cmd.equals("add_order")) { Utils.setAttribute("id", value, e, _dom); Utils.setAttribute("job", "", e, _dom); e.removeChildren("environment"); }else if (cmd.equals("order")) { Utils.setAttribute("id", value, e, _dom); Utils.setAttribute("job", "", e, _dom); e.removeChildren("environment"); } else {
381382383384385386387388389390391
Utils.setAttribute("job", "", e, _dom); e.removeChildren("environment"); }else if (cmd.equals("order")) { Utils.setAttribute("id", value, e, _dom); Utils.setAttribute("job", "", e, _dom); e.removeChildren("environment"); } else { Utils.setAttribute("id", "", e, _dom); Utils.setAttribute("job", value, e, _dom); }
367368369370371372373374375376377
371372373374375376377378379380381