From 7260df26d1a54fcfd2809f2d8cd0547aeb1eda48 Mon Sep 17 00:00:00 2001 From: Salvatore La Manna Date: Mon, 24 Aug 2020 12:33:49 +0200 Subject: [PATCH] Svuota Database --- .../bo/service/impl/IntPraticaLocalServiceImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index eb19fb98..cc1249a7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/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("MailManager_EmailAttachments"); add("Report_Sorteggio"); + add("Report_Sorteggio_BO"); } }; @@ -423,12 +424,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { parent = parent.getParentFolder(); } if (folderDaSvuotare.contains(parent.getName())) { - if (0 != folder.getParentFolderId()) { - _log.info("Cancello la cartella " + folder.getName()); - DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); - } else { + if (0 == folder.getParentFolderId()) { _log.info("Cancello il file " + fileEntry.getName()); DLAppLocalServiceUtil.deleteFileEntry(fileEntry.getFileEntryId()); + } else { + _log.info("Cancello la cartella " + folder.getName()); + DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); } start--; } else {