Salvatore La Manna 4 anni fa
parent
commit
7260df26d1
  1. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java

9
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java

@ -407,6 +407,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
add("Avvisi"); add("Avvisi");
add("MailManager_EmailAttachments"); add("MailManager_EmailAttachments");
add("Report_Sorteggio"); add("Report_Sorteggio");
add("Report_Sorteggio_BO");
} }
}; };
@ -423,12 +424,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
parent = parent.getParentFolder(); parent = parent.getParentFolder();
} }
if (folderDaSvuotare.contains(parent.getName())) { if (folderDaSvuotare.contains(parent.getName())) {
if (0 != folder.getParentFolderId()) { if (0 == folder.getParentFolderId()) {
_log.info("Cancello la cartella " + folder.getName());
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
} else {
_log.info("Cancello il file " + fileEntry.getName()); _log.info("Cancello il file " + fileEntry.getName());
DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId());
} else {
_log.info("Cancello la cartella " + folder.getName());
DLAppLocalServiceUtil.deleteFolder(folder.getFolderId());
} }
start--; start--;
} else { } else {

Caricamento…
Annulla
Salva