if (createSuffix)
{
Message arg2;
NewSuffixOptions options = userInstallData.getNewSuffixOptions();
switch (options.getType())
{
case CREATE_BASE_ENTRY:
arg2 = INFO_REVIEW_CREATE_BASE_ENTRY_LABEL.get(
options.getBaseDns().getFirst());
break;
case LEAVE_DATABASE_EMPTY:
arg2 = INFO_REVIEW_LEAVE_DATABASE_EMPTY_LABEL.get();
break;
case IMPORT_FROM_LDIF_FILE:
arg2 = INFO_REVIEW_IMPORT_LDIF.get(options.getLDIFPaths().getFirst());
break;
case IMPORT_AUTOMATICALLY_GENERATED_DATA:
arg2 = INFO_REVIEW_IMPORT_AUTOMATICALLY_GENERATED.get(
String.valueOf(options.getNumberEntries()));
break;
default:
throw new IllegalArgumentException("Unknown type: "+options.getType());
}
if (options.getBaseDns().isEmpty())
{
msg = INFO_REVIEW_CREATE_NO_SUFFIX.get();
}
else if (options.getBaseDns().size() > 1)
{
msg = INFO_REVIEW_CREATE_SUFFIX.get(
Utils.listToString(options.getBaseDns(), Constants.LINE_SEPARATOR),
arg2);
}
else
{
msg = INFO_REVIEW_CREATE_SUFFIX.get(options.getBaseDns().getFirst(),
arg2);
}
}
else
{