コード例 #1
0
  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;
    }
  }
コード例 #2
0
  public void addPages() {
    try {
      mappingsPage = new ModuleMappingsWizardPage();

      mappingsPage.setServer(server);
      mappingsPage.setPartitionName(partitionName);
      mappingsPage.setModuleName(moduleConfig.getName());
      mappingsPage.setModuleMappings(moduleConfig.getModuleMappings());

      addPage(mappingsPage);

    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }