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
+
- + +