| | |
| | | } |
| | | else |
| | | { |
| | | mb.append(getFormattedWithPoints( |
| | | mb.append(getFormattedProgress( |
| | | INFO_PROGRESS_IMPORTING_LDIFS_NON_VERBOSE.get( |
| | | getStringFromCollection(ldifPaths, ", ")))); |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | mb.append(getFormattedWithPoints( |
| | | mb.append(getFormattedProgress( |
| | | INFO_PROGRESS_IMPORTING_LDIF_NON_VERBOSE.get( |
| | | ldifPaths.getFirst()))); |
| | | } |
| | | } |
| | | notifyListeners(mb.toMessage()); |
| | | |
| | | final PointAdder pointAdder = new PointAdder(); |
| | | |
| | | if (!isVerbose()) |
| | | { |
| | | setNotifyListeners(false); |
| | | pointAdder.start(); |
| | | } |
| | | |
| | | ArrayList<String> argList = new ArrayList<String>(); |
| | |
| | | { |
| | | if (!isVerbose()) |
| | | { |
| | | pointAdder.stop(); |
| | | setNotifyListeners(true); |
| | | } |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | mb.append(getFormattedWithPoints( |
| | | mb.append(getFormattedProgress( |
| | | INFO_PROGRESS_IMPORT_AUTOMATICALLY_GENERATED_NON_VERBOSE.get( |
| | | String.valueOf(nEntries)))); |
| | | } |
| | | notifyListeners(mb.toMessage()); |
| | | |
| | | final PointAdder pointAdder = new PointAdder(); |
| | | if (!isVerbose()) |
| | | { |
| | | pointAdder.start(); |
| | | } |
| | | for (File templatePath : templatePaths) |
| | | { |
| | | if (!isVerbose()) |
| | | { |
| | | setNotifyListeners(false); |
| | | } |
| | | |
| | | final ArrayList<String> argList = new ArrayList<String>(); |
| | | argList.add("-C"); |
| | | argList.add(getConfigurationClassName()); |
| | |
| | | if (!isVerbose()) |
| | | { |
| | | setNotifyListeners(true); |
| | | if (ae != null) |
| | | { |
| | | pointAdder.stop(); |
| | | } |
| | | } |
| | | } |
| | | isOver = true; |
| | |
| | | invokeLongOperation(thread); |
| | | if (!isVerbose()) |
| | | { |
| | | pointAdder.stop(); |
| | | notifyListeners(getFormattedDoneWithLineBreak()); |
| | | } |
| | | } |
| | |
| | | boolean isSchema = areDnsEqual(dn, Constants.SCHEMA_DN); |
| | | if(isADS) |
| | | { |
| | | notifyListeners(getFormattedWithPoints( |
| | | if (isVerbose()) |
| | | { |
| | | notifyListeners(getFormattedWithPoints( |
| | | INFO_PROGRESS_INITIALIZING_ADS.get())); |
| | | } |
| | | } |
| | | else if (isSchema) |
| | | { |
| | | notifyListeners(getFormattedWithPoints( |
| | | if (isVerbose()) |
| | | { |
| | | notifyListeners(getFormattedWithPoints( |
| | | INFO_PROGRESS_INITIALIZING_SCHEMA.get())); |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | } |
| | | throw ae; |
| | | } |
| | | if (isADS || isSchema) |
| | | if ((isADS || isSchema) && isVerbose()) |
| | | { |
| | | notifyListeners(getFormattedDone()); |
| | | } |