Sfoglia il codice sorgente

Cambio branch

master
Salvatore La Manna 4 anni fa
parent
commit
cc2ab95f31
  1. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PortosAdministrationPortlet.java
  2. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp

7
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()])); 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<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode);
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
} }
public void salvaDataProssimoSorteggio(ActionRequest actionRequest, ActionResponse actionResponse) public void salvaDataProssimoSorteggio(ActionRequest actionRequest, ActionResponse actionResponse)

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/sismica_administration/view.jsp

@ -92,10 +92,11 @@ String dataProssimoSorteggio =
<liferay-portlet:actionURL name="inviaComunicazione" var="inviaComunicazioneURL" /> <liferay-portlet:actionURL name="inviaComunicazione" var="inviaComunicazioneURL" />
<div class="row-fluid" style="margin-top: 10px;"> <div class="row-fluid" style="margin-top: 10px;">
<div class="span6"> <div class="span6">
<div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Test interno</div> <div style="font-weight: bold; font-size: 18px; margin-bottom: 10px;">Manutenzione database</div>
<aui:form action="<%=manutenzioneDatabaseURL%>" method="post" name="fmManutenzioneDatabase"> <aui:form action="<%=manutenzioneDatabaseURL%>" method="post" name="fmMD">
<div> <div>
<aui:button cssClass="btn-danger" type="submit" value="Manutenzione Database" /> <aui:input name="mode" label="Modalità" />
<aui:button cssClass="btn-danger" type="submit" value="Avvia manutenzione" />
</div> </div>
</aui:form> </aui:form>
</div> </div>

Caricamento…
Annulla
Salva