public boolean performFinish() { try { log.debug("Mappings:"); Collection<ModuleMapping> moduleMappings = mappingsPage.getModuleMappings(); for (ModuleMapping moduleMapping : moduleMappings) { log.debug( " - " + moduleMapping.getBaseDn() + " " + moduleMapping.getScope() + " " + moduleMapping.getFilter()); moduleMapping.setModuleName(moduleConfig.getName()); } moduleConfig.setModuleMappings(moduleMappings); return true; } catch (Exception e) { log.error(e.getMessage(), e); ErrorDialog.open(e); return false; } }
public void addPages() { try { addPage(new ConnectionPropertiesPage(this)); addPage(new NISConnectionPropertiesPage(this)); ParametersPage parametersPage = new ConnectionParametersPage(this); parametersPage.setParameters(connectionConfig.getParameters()); addPage(parametersPage); } catch (Exception e) { log.error(e.getMessage(), e); ErrorDialog.open(e); } }