public void configure(Ui ui) { ui.configuring(this); LdapObject entry = findEntry(); if (entry == null) env.warn("target " + parent + " should have unknown entry "); // TODO: +entry.getVarName()); else if (parent.contains(entry)) env.info("target " + parent + " already has entry " + entry.getVarName()); else parent.add(entry); ui.readyWith(this); }
public int check(Ui ui) { ui.checking(this); LdapObject entry = findEntry(); if (parent.contains(entry)) { ui.info(this, "target " + parent + " has entry " + this); message = null; status = OK; } else { message = "target " + parent + " should have entry " + this; ui.error(this, message); status = ERROR; } ui.readyWith(this); return status; }