Boolean isPresentation, String wmlFilePath,
Boolean isStoredWmlFile, Boolean isChart,
Long externalFileId, String externalType) {
log.debug(".add(): adding file " + fileName+ " roomID: "+room_id);
try {
FileExplorerItem fileItem = new FileExplorerItem();
fileItem.setFileName(fileName);
fileItem.setFileHash(fileHash);
fileItem.setDeleted(false);
fileItem.setParentFileExplorerItemId(parentFileExplorerItemId);
fileItem.setOwnerId(ownerId);
fileItem.setRoom_id(room_id);
fileItem.setInserted(new Date());
fileItem.setInsertedBy(insertedBy);
fileItem.setIsFolder(isFolder);
fileItem.setIsImage(isImage);
fileItem.setIsPresentation(isPresentation);
fileItem.setUpdated(new Date());
fileItem.setWmlFilePath(wmlFilePath);
fileItem.setIsStoredWmlFile(isStoredWmlFile);
fileItem.setIsChart(isChart);
fileItem.setExternalFileId(externalFileId);
fileItem.setExternalType(externalType);
fileItem = em.merge(fileItem);
Long fileItemId = fileItem.getFileExplorerItemId();
log.debug(".add(): file " + fileName + " added as " + fileItemId);
return fileItemId;
} catch (Exception ex2) {
log.error(".add(): ", ex2);