if (!datasetFile.exists()) {
continue;
}
String strXml = Utility.fileToString(datasetFile.getPath());
ImportResult myResult = myData.importDataFromXML((Client) OBDal.getInstance().get(
Client.class, strClient), (Organization) OBDal.getInstance().get(Organization.class,
"0"), strXml, (Module) OBDal.getInstance().get(Module.class, data[j].adModuleId));
m_info.append(SALTO_LINEA).append("File: ").append(datasetFile.getName()).append(":")
.append(SALTO_LINEA);
if (myResult.getLogMessages() != null && !myResult.getLogMessages().equals("")
&& !myResult.getLogMessages().equals("null")) {
m_info.append(SALTO_LINEA).append("LOG:").append(SALTO_LINEA);
m_info.append(SALTO_LINEA).append(myResult.getLogMessages()).append(SALTO_LINEA);
}
if (myResult.getWarningMessages() != null && !myResult.getWarningMessages().equals("")
&& !myResult.getWarningMessages().equals("null")) {
m_info.append(SALTO_LINEA).append("WARNINGS:").append(SALTO_LINEA);
m_info.append(SALTO_LINEA).append(myResult.getWarningMessages()).append(SALTO_LINEA);
}
if (myResult.getErrorMessages() != null && !myResult.getErrorMessages().equals("")
&& !myResult.getErrorMessages().equals("null")) {
m_info.append(SALTO_LINEA).append("ERRORS:").append(SALTO_LINEA);
if (myResult.getErrorMessages().startsWith("isBatchUpdateException:")) {
String messageKey = myResult.getErrorMessages().substring(
"isBatchUpdateException:".length()).trim();
m_info.append(SALTO_LINEA).append(
Utility.translateError(this, vars, vars.getLanguage(), messageKey).getMessage())
.append(SALTO_LINEA);
strError = strError.append(Utility.translateError(this, vars, vars.getLanguage(),
messageKey).getMessage());
} else {
m_info.append(SALTO_LINEA).append(myResult.getErrorMessages()).append(SALTO_LINEA);
strError = strError.append(myResult.getErrorMessages());
}
}
if (!strError.toString().equals(""))
return strError.toString();