User externalUser = userDao.getExternalUser(externalUserId, externalType);
LinkedHashMap<String, Object> hs = new LinkedHashMap<String, Object>();
hs.put("user", externalUser);
ConverterProcessResultList returnError = fileProcessor
.processFile(externalUser.getUser_id(), room_id,
isOwner, inputstream, parentFolderId,
fileSystemName,
externalFileId, externalType);
// Flash cannot read the response of an upload
// httpServletResponse.getWriter().print(returnError);
hs.put("message", "library");
hs.put("action", "newFile");
hs.put("fileExplorerItem", fileExplorerItemDao
.getFileExplorerItemsById(returnError.getFileExplorerItemId()));
hs.put("error", returnError.getLogMessage());
hs.put("fileName", returnError.getCompleteName());
//FIXME: Send event to UI that there is a new file
return returnError.convertToFileImportErrors();
}
} catch (Exception err) {
log.error("[importFile]", err);
}