From cc2ab95f310925d4bee41b5d0e3cb7a4bdb783db Mon Sep 17 00:00:00 2001 From: Salvatore La Manna Date: Tue, 24 Nov 2020 10:21:51 +0100 Subject: [PATCH] Cambio branch --- .../portos/bo/portlet/PortosAdministrationPortlet.java | 7 ++++++- .../docroot/html/sismica_administration/view.jsp | 7 ++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PortosAdministrationPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PortosAdministrationPortlet.java index 5dce959c..85c0abe3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PortosAdministrationPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PortosAdministrationPortlet.java @@ -96,7 +96,12 @@ public class PortosAdministrationPortlet extends MVCPortlet { actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } - public void svuotaDatabase(ActionRequest actionRequest, ActionResponse actionResponse) { + public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse) + throws PortalException, SystemException { + String mode = ParamUtil.getString(actionRequest, "mode"); + ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); + List esito = ManutenzioneDatabase.pulisci(serviceContext, mode); + actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } public void salvaDataProssimoSorteggio(ActionRequest actionRequest, ActionResponse actionResponse) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp index f4475683..8794d322 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp @@ -92,10 +92,11 @@ String dataProssimoSorteggio =
-
Test interno
- +
Manutenzione database
+
- + +