diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml index 2c67f18b..e8f13d5c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml @@ -404,7 +404,7 @@ portos-administration - Amministrazione Sismica + Amministrazione Paesaggistica it.tref.liferay.portos.bo.portlet.PortosAdministrationPortlet @@ -418,8 +418,8 @@ view - Amministrazione Sismica - Amministrazione Sismica + Amministrazione Paesaggistica + Amministrazione Paesaggistica diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java index a8035643..7dcac012 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalService.java @@ -355,9 +355,6 @@ public interface IntPraticaLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public java.util.List svuotaDatabase( - com.liferay.portal.service.ServiceContext serviceContext); - public java.util.List svuotaDatabase2( com.liferay.portal.service.ServiceContext serviceContext); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java index 42c4fec8..ede69503 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceClp.java @@ -155,319 +155,313 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { "com.liferay.portal.service.ServiceContext" }; - _methodName27 = "svuotaDatabase"; + _methodName27 = "svuotaDatabase2"; _methodParameterTypes27 = new String[] { "com.liferay.portal.service.ServiceContext" }; - _methodName28 = "svuotaDatabase2"; + _methodName28 = "clearDb"; - _methodParameterTypes28 = new String[] { - "com.liferay.portal.service.ServiceContext" - }; - - _methodName29 = "clearDb"; + _methodParameterTypes28 = new String[] { }; - _methodParameterTypes29 = new String[] { }; + _methodName29 = "deleteIntPratica"; - _methodName30 = "deleteIntPratica"; - - _methodParameterTypes30 = new String[] { + _methodParameterTypes29 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName31 = "cloneIntPratica"; + _methodName30 = "cloneIntPratica"; - _methodParameterTypes31 = new String[] { + _methodParameterTypes30 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName32 = "updateDelegati"; + _methodName31 = "updateDelegati"; - _methodParameterTypes32 = new String[] { + _methodParameterTypes31 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName33 = "findFascicoliNotProgetto"; + _methodName32 = "findFascicoliNotProgetto"; - _methodParameterTypes33 = new String[] { "int", "int" }; + _methodParameterTypes32 = new String[] { "int", "int" }; - _methodName34 = "countFascicoliNotProgetto"; + _methodName33 = "countFascicoliNotProgetto"; - _methodParameterTypes34 = new String[] { }; + _methodParameterTypes33 = new String[] { }; - _methodName35 = "addNumeroProgetto"; + _methodName34 = "addNumeroProgetto"; - _methodParameterTypes35 = new String[] { "long" }; + _methodParameterTypes34 = new String[] { "long" }; - _methodName36 = "sospendiPratica"; + _methodName35 = "sospendiPratica"; - _methodParameterTypes36 = new String[] { "long", "boolean" }; + _methodParameterTypes35 = new String[] { "long", "boolean" }; - _methodName37 = "cambiaTitolare"; + _methodName36 = "cambiaTitolare"; - _methodParameterTypes37 = new String[] { + _methodParameterTypes36 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName38 = "updateStatoPratica"; + _methodName37 = "updateStatoPratica"; - _methodParameterTypes38 = new String[] { + _methodParameterTypes37 = new String[] { "long", "long", "java.lang.String" }; - _methodName39 = "updateIntPraticaSorteggio"; + _methodName38 = "updateIntPraticaSorteggio"; - _methodParameterTypes39 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes38 = new String[] { "long", "java.util.Date" }; - _methodName40 = "updateIntPraticaSorteggio"; + _methodName39 = "updateIntPraticaSorteggio"; - _methodParameterTypes40 = new String[] { + _methodParameterTypes39 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName41 = "findByC_UserId"; + _methodName40 = "findByC_UserId"; + + _methodParameterTypes40 = new String[] { "long", "long", "int", "int" }; - _methodParameterTypes41 = new String[] { "long", "long", "int", "int" }; + _methodName41 = "countByC_UserId"; - _methodName42 = "countByC_UserId"; + _methodParameterTypes41 = new String[] { "long", "long" }; - _methodParameterTypes42 = new String[] { "long", "long" }; + _methodName42 = "fetchByOldIntPraticaId"; - _methodName43 = "fetchByOldIntPraticaId"; + _methodParameterTypes42 = new String[] { "long" }; - _methodParameterTypes43 = new String[] { "long" }; + _methodName43 = "updateStatus"; - _methodName44 = "updateStatus"; + _methodParameterTypes43 = new String[] { "long", "int" }; - _methodParameterTypes44 = new String[] { "long", "int" }; + _methodName44 = "findByCompanyIdSoggettoProgetti"; - _methodName45 = "findByCompanyIdSoggettoProgetti"; + _methodParameterTypes44 = new String[] { "long", "long" }; + + _methodName45 = "countByCompanyIdSoggettoProgetti"; _methodParameterTypes45 = new String[] { "long", "long" }; - _methodName46 = "countByCompanyIdSoggettoProgetti"; + _methodName46 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes46 = new String[] { "long", "long" }; - _methodName47 = "findByCompanyIdSoggettoArchivio"; + _methodName47 = "countByCompanyIdSoggettoArchivio"; _methodParameterTypes47 = new String[] { "long", "long" }; - _methodName48 = "countByCompanyIdSoggettoArchivio"; - - _methodParameterTypes48 = new String[] { "long", "long" }; + _methodName48 = "findByCompanyIdSoggettoAltriProgetti"; - _methodName49 = "findByCompanyIdSoggettoAltriProgetti"; + _methodParameterTypes48 = new String[] { "long", "long", "int", "int" }; - _methodParameterTypes49 = new String[] { "long", "long", "int", "int" }; + _methodName49 = "countByCompanyIdSoggettoAltriProgetti"; - _methodName50 = "countByCompanyIdSoggettoAltriProgetti"; + _methodParameterTypes49 = new String[] { "long", "long" }; - _methodParameterTypes50 = new String[] { "long", "long" }; + _methodName50 = "findByCanAddFineLavori"; - _methodName51 = "findByCanAddFineLavori"; - - _methodParameterTypes51 = new String[] { + _methodParameterTypes50 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName52 = "countByCanAddFineLavori"; + _methodName51 = "countByCanAddFineLavori"; - _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes51 = new String[] { "long", "java.lang.String" }; - _methodName53 = "findByCanAddCollaudo"; + _methodName52 = "findByCanAddCollaudo"; - _methodParameterTypes53 = new String[] { + _methodParameterTypes52 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName54 = "countByCanAddCollaudo"; + _methodName53 = "countByCanAddCollaudo"; - _methodParameterTypes54 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes53 = new String[] { "long", "java.lang.String" }; - _methodName55 = "search"; + _methodName54 = "search"; - _methodParameterTypes55 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes54 = new String[] { "java.util.List", "int", "int" }; - _methodName56 = "countSearch"; + _methodName55 = "countSearch"; - _methodParameterTypes56 = new String[] { "java.util.List" }; + _methodParameterTypes55 = new String[] { "java.util.List" }; - _methodName57 = "searchWithIntPraticaId"; + _methodName56 = "searchWithIntPraticaId"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes56 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName58 = "countSearchWithIntPraticaId"; + _methodName57 = "countSearchWithIntPraticaId"; - _methodParameterTypes58 = new String[] { "java.util.List", "long" }; + _methodParameterTypes57 = new String[] { "java.util.List", "long" }; - _methodName59 = "allegaFileAnnullamento"; + _methodName58 = "allegaFileAnnullamento"; - _methodParameterTypes59 = new String[] { + _methodParameterTypes58 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName60 = "generateFileAnnullamento"; + _methodName59 = "generateFileAnnullamento"; - _methodParameterTypes60 = new String[] { + _methodParameterTypes59 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName61 = "deleteFileAnnullamento"; + _methodName60 = "deleteFileAnnullamento"; - _methodParameterTypes61 = new String[] { "long" }; + _methodParameterTypes60 = new String[] { "long" }; - _methodName62 = "completeAnnullamento"; + _methodName61 = "completeAnnullamento"; - _methodParameterTypes62 = new String[] { "long" }; + _methodParameterTypes61 = new String[] { "long" }; - _methodName63 = "cambiaIstruttore"; + _methodName62 = "cambiaIstruttore"; - _methodParameterTypes63 = new String[] { "long", "long", "long" }; + _methodParameterTypes62 = new String[] { "long", "long", "long" }; - _methodName64 = "countCaricoLavoroCF"; + _methodName63 = "countCaricoLavoroCF"; - _methodParameterTypes64 = new String[] { + _methodParameterTypes63 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName65 = "countCaricoLavoroIstruttore"; + _methodName64 = "countCaricoLavoroIstruttore"; - _methodParameterTypes65 = new String[] { + _methodParameterTypes64 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName66 = "generateReportPratica"; + _methodName65 = "generateReportPratica"; - _methodParameterTypes66 = new String[] { + _methodParameterTypes65 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName67 = "updateModifiedDate"; + _methodName66 = "updateModifiedDate"; - _methodParameterTypes67 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes66 = new String[] { "long", "java.util.Date" }; - _methodName68 = "countAutorizzazione"; + _methodName67 = "countAutorizzazione"; - _methodParameterTypes68 = new String[] { + _methodParameterTypes67 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName69 = "countSanatorie"; + _methodName68 = "countSanatorie"; - _methodParameterTypes69 = new String[] { + _methodParameterTypes68 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName70 = "countOpereMinoreImportanza"; + _methodName69 = "countOpereMinoreImportanza"; - _methodParameterTypes70 = new String[] { + _methodParameterTypes69 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName71 = "countDeposito"; + _methodName70 = "countDeposito"; - _methodParameterTypes71 = new String[] { + _methodParameterTypes70 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName72 = "countVidimate"; + _methodName71 = "countVidimate"; - _methodParameterTypes72 = new String[] { + _methodParameterTypes71 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName73 = "countControllo"; + _methodName72 = "countControllo"; - _methodParameterTypes73 = new String[] { + _methodParameterTypes72 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName74 = "importaVecchiFilesFascicolo"; + _methodName73 = "importaVecchiFilesFascicolo"; - _methodParameterTypes74 = new String[] { "long", "int", "int" }; + _methodParameterTypes73 = new String[] { "long", "int", "int" }; - _methodName75 = "findIntPraticaNotExist"; + _methodName74 = "findIntPraticaNotExist"; - _methodParameterTypes75 = new String[] { }; + _methodParameterTypes74 = new String[] { }; - _methodName76 = "riparaWorkflow"; + _methodName75 = "riparaWorkflow"; - _methodParameterTypes76 = new String[] { }; + _methodParameterTypes75 = new String[] { }; - _methodName77 = "reIndexFascicolo"; + _methodName76 = "reIndexFascicolo"; - _methodParameterTypes77 = new String[] { + _methodParameterTypes76 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName78 = "reIndexFasciolo"; + _methodName77 = "reIndexFasciolo"; - _methodParameterTypes78 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes77 = new String[] { "java.lang.String", "long" }; - _methodName79 = "reIndexFasciolo"; + _methodName78 = "reIndexFasciolo"; - _methodParameterTypes79 = new String[] { "long", "long" }; + _methodParameterTypes78 = new String[] { "long", "long" }; - _methodName80 = "trovaDoppioni"; + _methodName79 = "trovaDoppioni"; - _methodParameterTypes80 = new String[] { }; + _methodParameterTypes79 = new String[] { }; - _methodName81 = "findByNumeroProgetto"; + _methodName80 = "findByNumeroProgetto"; - _methodParameterTypes81 = new String[] { "java.lang.String" }; + _methodParameterTypes80 = new String[] { "java.lang.String" }; - _methodName82 = "findByTerritorioId"; + _methodName81 = "findByTerritorioId"; - _methodParameterTypes82 = new String[] { "long" }; + _methodParameterTypes81 = new String[] { "long" }; - _methodName83 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName82 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodParameterTypes83 = new String[] { + _methodParameterTypes82 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName84 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName83 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - _methodParameterTypes84 = new String[] { + _methodParameterTypes83 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName85 = "reportPraticheVidimate"; + _methodName84 = "reportPraticheVidimate"; - _methodParameterTypes85 = new String[] { + _methodParameterTypes84 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName86 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName85 = "reportPraticheVidimateCalcolaDataSorteggio"; - _methodParameterTypes86 = new String[] { + _methodParameterTypes85 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName87 = "countIngressiAutorizzazioni"; + _methodName86 = "countIngressiAutorizzazioni"; - _methodParameterTypes87 = new String[] { + _methodParameterTypes86 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName88 = "countIngressiDepositi"; + _methodName87 = "countIngressiDepositi"; - _methodParameterTypes88 = new String[] { + _methodParameterTypes87 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName89 = "countIngressiCO"; + _methodName88 = "countIngressiCO"; - _methodParameterTypes89 = new String[] { + _methodParameterTypes88 = new String[] { "java.util.Date", "java.util.Date", "long" }; } @@ -1359,7 +1353,7 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { } @Override - public java.util.List svuotaDatabase( + public java.util.List svuotaDatabase2( com.liferay.portal.service.ServiceContext serviceContext) { Object returnObj = null; @@ -1383,36 +1377,11 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List svuotaDatabase2( - com.liferay.portal.service.ServiceContext serviceContext) { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, - new Object[] { ClpSerializer.translateInput(serviceContext) }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(t); - - if (t instanceof RuntimeException) { - throw (RuntimeException)t; - } - else { - throw new RuntimeException(t.getClass().getName() + - " is not a valid exception"); - } - } - - return (java.util.List)ClpSerializer.translateOutput(returnObj); - } - @Override public void clearDb() throws java.lang.Exception { try { - _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, new Object[] { }); + _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1439,8 +1408,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1479,8 +1448,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { intPraticaId, @@ -1520,8 +1489,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { intPraticaId, @@ -1563,8 +1532,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1591,8 +1560,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1621,8 +1590,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1655,8 +1624,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1691,8 +1660,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, @@ -1732,8 +1701,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -1772,8 +1741,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId, @@ -1807,8 +1776,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { intPraticaId, @@ -1843,8 +1812,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1872,8 +1841,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1901,8 +1870,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, new Object[] { oldIntPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { oldIntPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1928,8 +1897,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1960,8 +1929,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1994,8 +1963,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2029,8 +1998,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2063,8 +2032,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2098,8 +2067,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2133,8 +2102,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2168,8 +2137,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { companyId, @@ -2211,8 +2180,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { companyId, @@ -2250,8 +2219,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { companyId, @@ -2293,8 +2262,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { companyId, @@ -2331,8 +2300,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2366,8 +2335,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2396,8 +2365,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2434,8 +2403,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2472,8 +2441,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId, @@ -2523,8 +2492,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + returnObj = _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { intPraticaId, @@ -2563,8 +2532,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2593,8 +2562,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2623,8 +2592,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2657,8 +2626,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ispettoreId, @@ -2699,8 +2668,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ispettoreId, @@ -2736,8 +2705,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2775,8 +2744,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { intPraticaId, @@ -2813,8 +2782,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2849,8 +2818,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2885,8 +2854,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2921,8 +2890,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2959,8 +2928,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3000,8 +2969,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3040,8 +3009,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName74, - _methodParameterTypes74, + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { companyId, start, end }); } catch (Throwable t) { @@ -3069,8 +3038,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3097,8 +3066,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3123,8 +3092,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFascicolo( it.tref.liferay.portos.bo.model.IntPratica intPratica, long companyId) { try { - _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { ClpSerializer.translateInput(intPratica), companyId }); } catch (Throwable t) { @@ -3144,8 +3113,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { public void reIndexFasciolo(java.lang.String numeroProgetto, long companyId) throws com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, + _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3174,8 +3143,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3205,8 +3174,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3234,8 +3203,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3264,8 +3233,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3294,8 +3263,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3332,8 +3301,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3369,8 +3338,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3407,8 +3376,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName86, - _methodParameterTypes86, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3443,8 +3412,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName87, - _methodParameterTypes87, + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3479,8 +3448,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName88, - _methodParameterTypes88, + returnObj = _invokableLocalService.invokeMethod(_methodName87, + _methodParameterTypes87, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3515,8 +3484,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName89, - _methodParameterTypes89, + returnObj = _invokableLocalService.invokeMethod(_methodName88, + _methodParameterTypes88, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3721,6 +3690,4 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes87; private String _methodName88; private String[] _methodParameterTypes88; - private String _methodName89; - private String[] _methodParameterTypes89; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java index 88fc18b8..c37ab4d7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceUtil.java @@ -392,11 +392,6 @@ public class IntPraticaLocalServiceUtil { esitoControllo, dtPratica, oldIntPraticaId, serviceContext); } - public static java.util.List svuotaDatabase( - com.liferay.portal.service.ServiceContext serviceContext) { - return getService().svuotaDatabase(serviceContext); - } - public static java.util.List svuotaDatabase2( com.liferay.portal.service.ServiceContext serviceContext) { return getService().svuotaDatabase2(serviceContext); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java index 106f2d1c..61d4b8b6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/IntPraticaLocalServiceWrapper.java @@ -417,12 +417,6 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, oldIntPraticaId, serviceContext); } - @Override - public java.util.List svuotaDatabase( - com.liferay.portal.service.ServiceContext serviceContext) { - return _intPraticaLocalService.svuotaDatabase(serviceContext); - } - @Override public java.util.List svuotaDatabase2( com.liferay.portal.service.ServiceContext serviceContext) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java index 0eb749f6..ada678cd 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java @@ -18,6 +18,7 @@ import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.bean.FirmeBean; +import it.tref.liferay.portos.bo.shared.bean.FirmeDetail; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; @@ -990,23 +991,26 @@ public class ValidazionePraticaUtil { long intPraticaId = dettPratica.getIntPraticaId(); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - List obbligatori = DocumentiPraticaUtil.getDocObbligatoriDomanda(intPratica, dettPratica); - for (String obbligatorio : obbligatori) { + List docObbligatori = DocumentiPraticaUtil.getDocObbligatoriDomanda(intPratica, dettPratica); + for (String docObbligatorio : docObbligatori) { List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia( - intPraticaId, obbligatorio, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + intPraticaId, docObbligatorio, QueryUtil.ALL_POS, QueryUtil.ALL_POS); if (docs.isEmpty()) { notCompleted.add("Nessun Allegato per " + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" - + obbligatorio)); + + docObbligatorio)); } else { for (DocPratica doc : docs) { FirmeBean firmeBean = FirmeUtil.deserialize(doc.getJsonFirmatari()); List firme = firmeBean.allSignatures(); + List firmeObbligatorie = getFirmeObbligatorie(docObbligatorio); _log.info("Per l'allegato " + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" - + obbligatorio) + " servono le firme di:"); - for (String firma : firme) { - _log.info(" " + LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + firma)); + + docObbligatorio) + " servono le firme di:"); + for (String firmaObbligatoria : firmeObbligatorie) { + _log.info(" " + + LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + + firmaObbligatoria)); } } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java new file mode 100644 index 00000000..a145a009 --- /dev/null +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/PuliziaDatabase.java @@ -0,0 +1,311 @@ +/** + * + * @author Salvatore La Manna, Manifattura Web Group per Regione Siciliana + * + */ +package it.mwg.sismica.bo.util; + +import it.tref.liferay.portos.bo.model.ControlloPratica; +import it.tref.liferay.portos.bo.model.DettPratica; +import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; +import java.sql.Connection; +import java.sql.SQLException; +import java.sql.Statement; +import java.util.ArrayList; +import java.util.List; + +import com.liferay.portal.kernel.cache.CacheRegistryUtil; +import com.liferay.portal.kernel.cache.MultiVMPoolUtil; +import com.liferay.portal.kernel.cache.SingleVMPoolUtil; +import com.liferay.portal.kernel.dao.jdbc.DataAccess; +import com.liferay.portal.kernel.exception.PortalException; +import com.liferay.portal.kernel.exception.SystemException; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; +import com.liferay.portal.kernel.servlet.DirectServletRegistryUtil; +import com.liferay.portal.kernel.util.StringUtil; +import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.model.Group; +import com.liferay.portal.model.Organization; +import com.liferay.portal.model.User; +import com.liferay.portal.service.ClassNameLocalServiceUtil; +import com.liferay.portal.service.ServiceContext; +import com.liferay.portlet.documentlibrary.model.DLFileEntry; +import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata; +import com.liferay.portlet.documentlibrary.model.DLFolder; +import com.liferay.portlet.documentlibrary.model.DLSyncConstants; +import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; +import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil; +import com.liferay.portlet.dynamicdatamapping.model.DDMContent; +import com.liferay.portlet.dynamicdatamapping.model.DDMStorageLink; +import com.liferay.portlet.messageboards.model.MBDiscussion; + +public class PuliziaDatabase { + private static final Log _log = LogFactoryUtil.getLog(PuliziaDatabase.class); + private static final int SLICE = 1000; + + public static List pulisci(ServiceContext serviceContext) { + List esito = new ArrayList<>(); + esito.addAll(puliziaDocumentLibrary()); + esito.addAll(svuotaDatabase(serviceContext)); + + try { + SingleVMPoolUtil.clear(); + MultiVMPoolUtil.clear(); + CacheRegistryUtil.clear(); + DirectServletRegistryUtil.clearServlets(); + } catch (IllegalStateException e) { + } + + return esito; + } + + private static List svuotaDatabase(ServiceContext serviceContext) { + List esito = new ArrayList<>(); + int rows = 0; + try { + Connection connection = DataAccess.getUpgradeOptimizedConnection(); + Statement s = connection.createStatement(); + + long controlloPraticaClassNameId = ClassNameLocalServiceUtil.getClassName( + ControlloPratica.class.getName()).getClassNameId(); + long dettPraticaClassNameId = ClassNameLocalServiceUtil.getClassName(DettPratica.class.getName()) + .getClassNameId(); + long ddmContentClassNameId = ClassNameLocalServiceUtil.getClassName(DDMContent.class.getName()) + .getClassNameId(); + long dlFileEntryClassNameId = ClassNameLocalServiceUtil.getClassName(DLFileEntry.class.getName()) + .getClassNameId(); + long dlFileEntryMetadataClassNameId = ClassNameLocalServiceUtil.getClassName( + DLFileEntryMetadata.class.getName()).getClassNameId(); + long dlFolderClassNameId = ClassNameLocalServiceUtil.getClassName(DLFolder.class.getName()) + .getClassNameId(); + long groupClassNameId = ClassNameLocalServiceUtil.getClassName(Group.class.getName()) + .getClassNameId(); + long mbDiscussionClassNameId = ClassNameLocalServiceUtil.getClassName( + MBDiscussion.class.getName()).getClassNameId(); + long organizationClassNameId = ClassNameLocalServiceUtil.getClassName( + Organization.class.getName()).getClassNameId(); + long userClassNameId = ClassNameLocalServiceUtil.getClassName(User.class.getName()) + .getClassNameId(); + + rows = s.executeUpdate("DELETE FROM portos_bo_avviso WHERE avvisoid IN (" + + "SELECT avvisoid FROM portos_bo_avviso a LEFT JOIN portos_bo_dettpratica d " + + "ON a.classpk=d.dettpraticaid WHERE classname='" + DettPratica.class.getName() + + "' AND d.dettpraticaid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da portos_bo_avviso"); + + rows = s.executeUpdate("DELETE FROM group_ WHERE groupid IN (SELECT groupid FROM group_ " + + "LEFT JOIN user_ ON group_.classpk=user_.userid WHERE classnameid=" + userClassNameId + + " AND user_.userid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da group_"); + + rows = s.executeUpdate("DELETE FROM contact_ WHERE contactid IN (" + + "SELECT c.contactid FROM contact_ c LEFT JOIN user_ u " + + "ON c.contactid=u.contactid WHERE u.userid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da contact_"); + + rows = s.executeUpdate("DELETE FROM usergroup WHERE usergroupid IN (" + + "SELECT usergroupid FROM usergroup g LEFT JOIN user_ u ON g.userid=u.userid " + + "WHERE u.userid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da usergroup"); + + rows = s.executeUpdate("DELETE FROM usergrouprole WHERE userid IN (" + + "SELECT DISTINCT x.userid FROM usergrouprole x " + + "LEFT JOIN user_ u ON x.userid=u.userid " + "WHERE u.userid IS NULL) OR groupid IN (" + + "SELECT DISTINCT x.groupid FROM usergrouprole x " + + "LEFT JOIN group_ g ON x.groupid=g.groupid " + + "WHERE g.groupid IS NULL) OR roleid IN (" + + "SELECT DISTINCT x.roleid FROM usergrouprole x " + + "LEFT JOIN role_ r ON x.roleid=r.roleid " + "WHERE r.roleid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da usergrouprole"); + + rows = s.executeUpdate("DELETE FROM ddmcontent WHERE contentid IN (" + + "SELECT contentid FROM ddmcontent LEFT JOIN dlfileentrymetadata " + + "ON ddmcontent.contentid=dlfileentrymetadata.ddmstorageid WHERE name='" + + DDMStorageLink.class.getName() + + "' AND dlfileentrymetadata.fileentrymetadataid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da ddmcontent"); + + rows = s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN dlfileentry b " + + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId + + " AND b.fileentryid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN dlfolder b ON a.classpk=b.folderid " + + "WHERE a.classnameid=" + dlFolderClassNameId + " AND b.folderid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN group_ b ON a.classpk=b.groupid " + + "WHERE a.classnameid=" + groupClassNameId + " AND b.groupid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN mbdiscussion b " + + "ON a.classpk=b.discussionid WHERE a.classnameid=" + mbDiscussionClassNameId + + " AND b.discussionid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN organization_ b " + + "ON a.classpk=b.organizationid WHERE a.classnameid=" + organizationClassNameId + + " AND b.organizationid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN portos_bo_controllopratica b " + + "ON a.classpk=b.controllopraticaid WHERE a.classnameid=" + controlloPraticaClassNameId + + " AND b.controllopraticaid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN portos_bo_dettpratica b " + + "ON a.classpk=b.dettpraticaid WHERE a.classnameid=" + dettPraticaClassNameId + + " AND b.dettpraticaid IS NULL)"); + rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" + + "SELECT entryid FROM assetentry a LEFT JOIN user_ b ON a.classpk=b.userid " + + "WHERE a.classnameid=" + userClassNameId + " AND b.userid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da assetentry"); + + rows = s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" + + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN dlfileentry b " + + "ON a.primkey=b.fileentryid::TEXT WHERE a.name='" + DLFileEntry.class.getName() + + "' AND b.fileentryid IS NULL)"); + rows += s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" + + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN dlfolder b " + + "ON a.primkey=b.folderid::TEXT WHERE a.name='" + DLFolder.class.getName() + + "' AND b.folderid IS NULL)"); + rows += s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" + + "SELECT resourcepermissionid FROM resourcepermission a " + + "LEFT JOIN portos_bo_controllopratica b " + + "ON a.primkey=b.controllopraticaid::TEXT WHERE a.name='" + + ControlloPratica.class.getName() + "' AND b.controllopraticaid IS NULL)"); + rows += s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" + + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN user_ b " + + "ON a.primkey=b.userid::TEXT WHERE a.name='" + User.class.getName() + + "' AND b.userid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da resourcepermission"); + + rows = s.executeUpdate("DELETE FROM syncdlobject WHERE syncdlobjectid IN (" + + "SELECT syncdlobjectid FROM syncdlobject LEFT JOIN dlfileentry " + + "ON syncdlobject.typepk=dlfileentry.fileentryid WHERE type_='" + + DLSyncConstants.TYPE_FILE + "' AND dlfileentry.fileentryid IS NULL)"); + rows += s.executeUpdate("DELETE FROM syncdlobject WHERE syncdlobjectid IN (" + + "SELECT syncdlobjectid FROM syncdlobject LEFT JOIN dlfolder " + + "ON syncdlobject.typepk=dlfolder.folderid WHERE type_='" + DLSyncConstants.TYPE_FOLDER + + "' AND dlfolder.folderid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da syncdlobject"); + + rows = s.executeUpdate("DELETE FROM ratingsstats WHERE statsid IN (" + + "SELECT statsid FROM ratingsstats a LEFT JOIN dlfileentry b " + + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId + + " AND b.fileentryid IS NULL)"); + rows += s.executeUpdate("DELETE FROM ratingsstats WHERE statsid IN (" + + "SELECT statsid FROM ratingsstats a LEFT JOIN dlfolder b " + + "ON a.classpk=b.folderid WHERE a.classnameid=" + dlFolderClassNameId + + " AND b.folderid IS NULL)"); + rows += s.executeUpdate("DELETE FROM ratingsstats WHERE statsid IN (" + + "SELECT statsid FROM ratingsstats a LEFT JOIN portos_bo_controllopratica b " + + "ON a.classpk=b.controllopraticaid WHERE a.classnameid=" + controlloPraticaClassNameId + + " AND b.controllopraticaid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da ratingsstats"); + + rows = s.executeUpdate("DELETE FROM mbmessage WHERE messageid IN (" + + "SELECT messageid FROM mbmessage a LEFT JOIN dlfileentry b " + + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId + + " AND b.fileentryid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da mbmessage"); + + rows = s.executeUpdate("DELETE FROM mbdiscussion WHERE discussionid IN (" + + "SELECT discussionid FROM mbdiscussion a LEFT JOIN dlfileentry b " + + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId + + " AND b.fileentryid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da mbdiscussion"); + + rows = s.executeUpdate("DELETE FROM mbthread WHERE threadid IN (" + + "SELECT DISTINCT mbthread.threadid FROM mbthread LEFT JOIN mbmessage " + + "ON mbthread.threadid=mbmessage.threadid WHERE mbmessage.messageid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da mbthread"); + + rows = s.executeUpdate("DELETE FROM dlfileentrymetadata WHERE fileentrymetadataid IN (" + + "SELECT fileentrymetadataid FROM dlfileentrymetadata a LEFT JOIN dlfileentry b " + + "ON a.fileentryid=b.fileentryid WHERE b.fileentryid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da dlfileentrymetadata"); + + rows = s.executeUpdate("DELETE FROM ddmstructurelink WHERE structurelinkid IN (" + + "SELECT structurelinkid FROM ddmstructurelink a LEFT JOIN dlfileentrymetadata b " + + "ON a.classpk=b.fileentrymetadataid WHERE a.classnameid=" + + dlFileEntryMetadataClassNameId + " AND b.fileentrymetadataid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da ddmstructurelink"); + + rows = s.executeUpdate("DELETE FROM ddmstoragelink WHERE storagelinkid IN (" + + "SELECT storagelinkid FROM ddmstoragelink a LEFT JOIN ddmcontent b " + + "ON a.classpk=b.contentid WHERE a.classnameid=" + ddmContentClassNameId + + " AND b.contentid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da ddmstoragelink"); + + rows = s.executeUpdate("DELETE FROM socialactivity WHERE activityid IN (" + + "SELECT activityid FROM socialactivity a LEFT JOIN dlfileentry b " + + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId + + " AND b.fileentryid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da socialactivity"); + + rows = s.executeUpdate("DELETE FROM systemevent WHERE systemeventid IN (" + + "SELECT systemeventid FROM systemevent a LEFT JOIN dlfileentry b " + + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId + + " AND b.fileentryid IS NULL)"); + rows += s.executeUpdate("DELETE FROM systemevent WHERE systemeventid IN (" + + "SELECT systemeventid FROM systemevent a LEFT JOIN dlfolder b " + + "ON a.classpk=b.folderid WHERE a.classnameid=" + dlFolderClassNameId + + " AND b.folderid IS NULL)"); + rows += s.executeUpdate("DELETE FROM systemevent WHERE systemeventid IN (" + + "SELECT systemeventid FROM systemevent a LEFT JOIN portos_bo_controllopratica b " + + "ON a.classpk=b.controllopraticaid WHERE a.classnameid=" + controlloPraticaClassNameId + + " AND b.controllopraticaid IS NULL)"); + rows += s.executeUpdate("DELETE FROM systemevent WHERE systemeventid IN (" + + "SELECT systemeventid FROM systemevent a LEFT JOIN portos_bo_dettpratica b " + + "ON a.classpk=b.dettpraticaid WHERE a.classnameid=" + dettPraticaClassNameId + + " AND b.dettpraticaid IS NULL)"); + esitoLog(esito, "Cancellate " + rows + " righe da systemevent"); + } catch (SQLException | SystemException e) { + esitoLog(esito, "Interrotto per errore: " + e.getMessage()); + } + return esito; + } + + private static List puliziaDocumentLibrary() { + List esito = new ArrayList<>(); + + try { + int cancellati = 0; + int start = 0; + int totali = 0; + List folders; + do { + folders = DLFolderLocalServiceUtil.getDLFolders(start, start + SLICE); + int rimossi = 0; + totali += folders.size(); + for (DLFolder folder : folders) { + DLFolder parent = folder.getParentFolder(); + if (Validator.isNotNull(parent)) { + switch (parent.getName()) { + case "Allegati": + long[] ids = StringUtil.split(folder.getName(), "_", 0L); + if ((ids.length == 2) && (ids[0] == ids[1])) { + try { + DettPraticaLocalServiceUtil.getDettPratica(ids[0]); + } catch (PortalException e) { + _log.info("Cancello la cartella " + folder.getName()); + cancellati++; + rimossi++; + DLAppLocalServiceUtil.deleteFolder(folder.getFolderId()); + } + } + break; + } + } + } + start += folders.size() - rimossi; + } while (folders.size() > 0); + esitoLog(esito, "Analizzate " + totali + " cartelle, cancellate " + cancellati); + } catch (PortalException | SystemException e) { + esitoLog(esito, "Errore durante l'elaborazione. " + e.getMessage()); + } + return esito; + } + + private static void esitoLog(List esito, String msg) { + _log.info(msg); + esito.add(msg); + } +} 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 d871fd15..5e1f07e1 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 @@ -1,11 +1,13 @@ package it.tref.liferay.portos.bo.portlet; +import it.mwg.sismica.bo.util.PuliziaDatabase; import it.mwg.sismica.bo.util.SismicaUtil; import it.mwg.sismica.bo.util.SorteggioPraticaUtil; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.service.ConfigurazioneServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; + import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; @@ -98,7 +100,7 @@ public class PortosAdministrationPortlet extends MVCPortlet { public void svuotaDatabase(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException, SystemException { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); - List esito = IntPraticaLocalServiceUtil.svuotaDatabase(serviceContext); + List esito = PuliziaDatabase.pulisci(serviceContext); actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()])); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java index 08042ce5..5f0ac1d7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/IntPraticaLocalServiceClpInvoker.java @@ -154,329 +154,323 @@ public class IntPraticaLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName208 = "svuotaDatabase"; + _methodName208 = "svuotaDatabase2"; _methodParameterTypes208 = new String[] { "com.liferay.portal.service.ServiceContext" }; - _methodName209 = "svuotaDatabase2"; + _methodName210 = "clearDb"; - _methodParameterTypes209 = new String[] { - "com.liferay.portal.service.ServiceContext" - }; - - _methodName211 = "clearDb"; + _methodParameterTypes210 = new String[] { }; - _methodParameterTypes211 = new String[] { }; - - _methodName212 = "deleteIntPratica"; + _methodName211 = "deleteIntPratica"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes211 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName213 = "deleteIntPratica"; + _methodName212 = "deleteIntPratica"; - _methodParameterTypes213 = new String[] { + _methodParameterTypes212 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName214 = "cloneIntPratica"; + _methodName213 = "cloneIntPratica"; - _methodParameterTypes214 = new String[] { + _methodParameterTypes213 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName216 = "updateDelegati"; + _methodName215 = "updateDelegati"; - _methodParameterTypes216 = new String[] { + _methodParameterTypes215 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName217 = "fetchIntPratica"; + _methodName216 = "fetchIntPratica"; - _methodParameterTypes217 = new String[] { "long" }; + _methodParameterTypes216 = new String[] { "long" }; - _methodName218 = "findFascicoliNotProgetto"; + _methodName217 = "findFascicoliNotProgetto"; - _methodParameterTypes218 = new String[] { "int", "int" }; + _methodParameterTypes217 = new String[] { "int", "int" }; - _methodName219 = "countFascicoliNotProgetto"; + _methodName218 = "countFascicoliNotProgetto"; - _methodParameterTypes219 = new String[] { }; + _methodParameterTypes218 = new String[] { }; - _methodName221 = "addNumeroProgetto"; + _methodName220 = "addNumeroProgetto"; - _methodParameterTypes221 = new String[] { "long" }; + _methodParameterTypes220 = new String[] { "long" }; - _methodName223 = "sospendiPratica"; + _methodName222 = "sospendiPratica"; - _methodParameterTypes223 = new String[] { "long", "boolean" }; + _methodParameterTypes222 = new String[] { "long", "boolean" }; - _methodName224 = "cambiaTitolare"; + _methodName223 = "cambiaTitolare"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes223 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName225 = "updateStatoPratica"; + _methodName224 = "updateStatoPratica"; - _methodParameterTypes225 = new String[] { + _methodParameterTypes224 = new String[] { "long", "long", "java.lang.String" }; - _methodName227 = "updateIntPraticaSorteggio"; + _methodName226 = "updateIntPraticaSorteggio"; - _methodParameterTypes227 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes226 = new String[] { "long", "java.util.Date" }; - _methodName228 = "updateIntPraticaSorteggio"; + _methodName227 = "updateIntPraticaSorteggio"; - _methodParameterTypes228 = new String[] { + _methodParameterTypes227 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName229 = "findByC_UserId"; + _methodName228 = "findByC_UserId"; - _methodParameterTypes229 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes228 = new String[] { "long", "long", "int", "int" }; - _methodName230 = "countByC_UserId"; + _methodName229 = "countByC_UserId"; - _methodParameterTypes230 = new String[] { "long", "long" }; + _methodParameterTypes229 = new String[] { "long", "long" }; - _methodName231 = "fetchByOldIntPraticaId"; + _methodName230 = "fetchByOldIntPraticaId"; - _methodParameterTypes231 = new String[] { "long" }; + _methodParameterTypes230 = new String[] { "long" }; - _methodName232 = "updateStatus"; + _methodName231 = "updateStatus"; - _methodParameterTypes232 = new String[] { "long", "int" }; + _methodParameterTypes231 = new String[] { "long", "int" }; - _methodName233 = "findByCompanyIdSoggettoProgetti"; + _methodName232 = "findByCompanyIdSoggettoProgetti"; - _methodParameterTypes233 = new String[] { "long", "long" }; + _methodParameterTypes232 = new String[] { "long", "long" }; - _methodName234 = "countByCompanyIdSoggettoProgetti"; + _methodName233 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes234 = new String[] { "long", "long" }; + _methodParameterTypes233 = new String[] { "long", "long" }; - _methodName236 = "findByCompanyIdSoggettoArchivio"; + _methodName235 = "findByCompanyIdSoggettoArchivio"; - _methodParameterTypes236 = new String[] { "long", "long" }; + _methodParameterTypes235 = new String[] { "long", "long" }; - _methodName237 = "countByCompanyIdSoggettoArchivio"; + _methodName236 = "countByCompanyIdSoggettoArchivio"; - _methodParameterTypes237 = new String[] { "long", "long" }; + _methodParameterTypes236 = new String[] { "long", "long" }; - _methodName239 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName238 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes239 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes238 = new String[] { "long", "long", "int", "int" }; - _methodName240 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName239 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes240 = new String[] { "long", "long" }; + _methodParameterTypes239 = new String[] { "long", "long" }; - _methodName242 = "findByCanAddFineLavori"; + _methodName241 = "findByCanAddFineLavori"; - _methodParameterTypes242 = new String[] { + _methodParameterTypes241 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName243 = "countByCanAddFineLavori"; + _methodName242 = "countByCanAddFineLavori"; - _methodParameterTypes243 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; - _methodName245 = "findByCanAddCollaudo"; + _methodName244 = "findByCanAddCollaudo"; - _methodParameterTypes245 = new String[] { + _methodParameterTypes244 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName246 = "countByCanAddCollaudo"; + _methodName245 = "countByCanAddCollaudo"; - _methodParameterTypes246 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes245 = new String[] { "long", "java.lang.String" }; - _methodName248 = "search"; + _methodName247 = "search"; - _methodParameterTypes248 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes247 = new String[] { "java.util.List", "int", "int" }; - _methodName249 = "countSearch"; + _methodName248 = "countSearch"; - _methodParameterTypes249 = new String[] { "java.util.List" }; + _methodParameterTypes248 = new String[] { "java.util.List" }; - _methodName250 = "searchWithIntPraticaId"; + _methodName249 = "searchWithIntPraticaId"; - _methodParameterTypes250 = new String[] { + _methodParameterTypes249 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName251 = "countSearchWithIntPraticaId"; + _methodName250 = "countSearchWithIntPraticaId"; - _methodParameterTypes251 = new String[] { "java.util.List", "long" }; + _methodParameterTypes250 = new String[] { "java.util.List", "long" }; - _methodName252 = "allegaFileAnnullamento"; + _methodName251 = "allegaFileAnnullamento"; - _methodParameterTypes252 = new String[] { + _methodParameterTypes251 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName253 = "generateFileAnnullamento"; + _methodName252 = "generateFileAnnullamento"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes252 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName254 = "deleteFileAnnullamento"; + _methodName253 = "deleteFileAnnullamento"; - _methodParameterTypes254 = new String[] { "long" }; + _methodParameterTypes253 = new String[] { "long" }; - _methodName255 = "completeAnnullamento"; + _methodName254 = "completeAnnullamento"; - _methodParameterTypes255 = new String[] { "long" }; + _methodParameterTypes254 = new String[] { "long" }; - _methodName256 = "cambiaIstruttore"; + _methodName255 = "cambiaIstruttore"; - _methodParameterTypes256 = new String[] { "long", "long", "long" }; + _methodParameterTypes255 = new String[] { "long", "long", "long" }; - _methodName257 = "countCaricoLavoroCF"; + _methodName256 = "countCaricoLavoroCF"; - _methodParameterTypes257 = new String[] { + _methodParameterTypes256 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName258 = "countCaricoLavoroIstruttore"; + _methodName257 = "countCaricoLavoroIstruttore"; - _methodParameterTypes258 = new String[] { + _methodParameterTypes257 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName259 = "generateReportPratica"; + _methodName258 = "generateReportPratica"; - _methodParameterTypes259 = new String[] { + _methodParameterTypes258 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName260 = "updateModifiedDate"; + _methodName259 = "updateModifiedDate"; - _methodParameterTypes260 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes259 = new String[] { "long", "java.util.Date" }; - _methodName261 = "countAutorizzazione"; + _methodName260 = "countAutorizzazione"; - _methodParameterTypes261 = new String[] { + _methodParameterTypes260 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName262 = "countSanatorie"; + _methodName261 = "countSanatorie"; - _methodParameterTypes262 = new String[] { + _methodParameterTypes261 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName263 = "countOpereMinoreImportanza"; + _methodName262 = "countOpereMinoreImportanza"; - _methodParameterTypes263 = new String[] { + _methodParameterTypes262 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName264 = "countDeposito"; + _methodName263 = "countDeposito"; - _methodParameterTypes264 = new String[] { + _methodParameterTypes263 = new String[] { "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName265 = "countVidimate"; + _methodName264 = "countVidimate"; - _methodParameterTypes265 = new String[] { + _methodParameterTypes264 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName266 = "countControllo"; + _methodName265 = "countControllo"; - _methodParameterTypes266 = new String[] { + _methodParameterTypes265 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName267 = "importaVecchiFilesFascicolo"; + _methodName266 = "importaVecchiFilesFascicolo"; - _methodParameterTypes267 = new String[] { "long", "int", "int" }; + _methodParameterTypes266 = new String[] { "long", "int", "int" }; - _methodName268 = "findIntPraticaNotExist"; + _methodName267 = "findIntPraticaNotExist"; - _methodParameterTypes268 = new String[] { }; + _methodParameterTypes267 = new String[] { }; - _methodName269 = "riparaWorkflow"; + _methodName268 = "riparaWorkflow"; - _methodParameterTypes269 = new String[] { }; + _methodParameterTypes268 = new String[] { }; - _methodName270 = "reIndexFascicolo"; + _methodName269 = "reIndexFascicolo"; - _methodParameterTypes270 = new String[] { + _methodParameterTypes269 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName271 = "reIndexFasciolo"; + _methodName270 = "reIndexFasciolo"; - _methodParameterTypes271 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes270 = new String[] { "java.lang.String", "long" }; - _methodName272 = "reIndexFasciolo"; + _methodName271 = "reIndexFasciolo"; - _methodParameterTypes272 = new String[] { "long", "long" }; + _methodParameterTypes271 = new String[] { "long", "long" }; - _methodName273 = "trovaDoppioni"; + _methodName272 = "trovaDoppioni"; - _methodParameterTypes273 = new String[] { }; + _methodParameterTypes272 = new String[] { }; - _methodName274 = "findByNumeroProgetto"; + _methodName273 = "findByNumeroProgetto"; - _methodParameterTypes274 = new String[] { "java.lang.String" }; + _methodParameterTypes273 = new String[] { "java.lang.String" }; - _methodName275 = "findByTerritorioId"; + _methodName274 = "findByTerritorioId"; - _methodParameterTypes275 = new String[] { "long" }; + _methodParameterTypes274 = new String[] { "long" }; - _methodName276 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName275 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; - _methodParameterTypes276 = new String[] { + _methodParameterTypes275 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName277 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName276 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; - _methodParameterTypes277 = new String[] { + _methodParameterTypes276 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName278 = "reportPraticheVidimate"; + _methodName277 = "reportPraticheVidimate"; - _methodParameterTypes278 = new String[] { + _methodParameterTypes277 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName279 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName278 = "reportPraticheVidimateCalcolaDataSorteggio"; - _methodParameterTypes279 = new String[] { + _methodParameterTypes278 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName280 = "countIngressiAutorizzazioni"; + _methodName279 = "countIngressiAutorizzazioni"; - _methodParameterTypes280 = new String[] { + _methodParameterTypes279 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName281 = "countIngressiDepositi"; + _methodName280 = "countIngressiDepositi"; - _methodParameterTypes281 = new String[] { + _methodParameterTypes280 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName282 = "countIngressiCO"; + _methodName281 = "countIngressiCO"; - _methodParameterTypes282 = new String[] { + _methodParameterTypes281 = new String[] { "java.util.Date", "java.util.Date", "long" }; } @@ -641,246 +635,241 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName208.equals(name) && Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { - return IntPraticaLocalServiceUtil.svuotaDatabase((com.liferay.portal.service.ServiceContext)arguments[0]); - } - - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.svuotaDatabase2((com.liferay.portal.service.ServiceContext)arguments[0]); } - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { IntPraticaLocalServiceUtil.clearDb(); return null; } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName212.equals(name) && + Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName216.equals(name) && - Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName218.equals(name) && - Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { + if (_methodName217.equals(name) && + Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName223.equals(name) && + Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName231.equals(name) && - Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchByOldIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName232.equals(name) && + Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName234.equals(name) && - Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName235.equals(name) && + Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName237.equals(name) && - Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName238.equals(name) && + Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName240.equals(name) && - Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName241.equals(name) && + Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName243.equals(name) && - Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName244.equals(name) && + Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { return IntPraticaLocalServiceUtil.allegaFileAnnullamento(((Long)arguments[0]).longValue(), (byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[3], (com.liferay.portal.service.ServiceContext)arguments[4]); } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName255.equals(name) && - Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName256.equals(name) && - Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { + if (_methodName255.equals(name) && + Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -888,92 +877,100 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName257.equals(name) && - Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { + if (_methodName256.equals(name) && + Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); } - if (_methodName258.equals(name) && - Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { + if (_methodName257.equals(name) && + Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); } - if (_methodName259.equals(name) && - Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { + if (_methodName258.equals(name) && + Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName260.equals(name) && - Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { + if (_methodName259.equals(name) && + Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName261.equals(name) && - Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { + if (_methodName260.equals(name) && + Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName262.equals(name) && - Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { + if (_methodName261.equals(name) && + Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName263.equals(name) && - Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { + if (_methodName262.equals(name) && + Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName264.equals(name) && - Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { + if (_methodName263.equals(name) && + Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), ((Boolean)arguments[3]).booleanValue()); } - if (_methodName265.equals(name) && - Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { + if (_methodName264.equals(name) && + Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); } - if (_methodName266.equals(name) && - Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + if (_methodName265.equals(name) && + Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3], ((Boolean)arguments[4]).booleanValue()); } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName266.equals(name) && + Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { return IntPraticaLocalServiceUtil.importaVecchiFilesFascicolo(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + } + if (_methodName268.equals(name) && Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + return IntPraticaLocalServiceUtil.riparaWorkflow(); } if (_methodName269.equals(name) && Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { - return IntPraticaLocalServiceUtil.riparaWorkflow(); + IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + ((Long)arguments[1]).longValue()); + + return null; } if (_methodName270.equals(name) && Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFascicolo((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; @@ -981,7 +978,7 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName271.equals(name) && Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], + IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; @@ -989,67 +986,59 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName272.equals(name) && Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { - IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), - ((Long)arguments[1]).longValue()); - - return null; + return IntPraticaLocalServiceUtil.trovaDoppioni(); } if (_methodName273.equals(name) && Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); + return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } if (_methodName274.equals(name) && Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); + return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } if (_methodName275.equals(name) && Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); - } - - if (_methodName276.equals(name) && - Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName277.equals(name) && - Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { + if (_methodName276.equals(name) && + Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName278.equals(name) && - Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + if (_methodName277.equals(name) && + Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), (java.lang.String)arguments[3]); } - if (_methodName279.equals(name) && - Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { + if (_methodName278.equals(name) && + Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName280.equals(name) && - Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { + if (_methodName279.equals(name) && + Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName281.equals(name) && - Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { + if (_methodName280.equals(name) && + Arrays.deepEquals(_methodParameterTypes280, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } - if (_methodName282.equals(name) && - Arrays.deepEquals(_methodParameterTypes282, parameterTypes)) { + if (_methodName281.equals(name) && + Arrays.deepEquals(_methodParameterTypes281, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } @@ -1111,32 +1100,32 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes207; private String _methodName208; private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; + private String _methodName210; + private String[] _methodParameterTypes210; private String _methodName211; private String[] _methodParameterTypes211; private String _methodName212; private String[] _methodParameterTypes212; private String _methodName213; private String[] _methodParameterTypes213; - private String _methodName214; - private String[] _methodParameterTypes214; + private String _methodName215; + private String[] _methodParameterTypes215; private String _methodName216; private String[] _methodParameterTypes216; private String _methodName217; private String[] _methodParameterTypes217; private String _methodName218; private String[] _methodParameterTypes218; - private String _methodName219; - private String[] _methodParameterTypes219; - private String _methodName221; - private String[] _methodParameterTypes221; + private String _methodName220; + private String[] _methodParameterTypes220; + private String _methodName222; + private String[] _methodParameterTypes222; private String _methodName223; private String[] _methodParameterTypes223; private String _methodName224; private String[] _methodParameterTypes224; - private String _methodName225; - private String[] _methodParameterTypes225; + private String _methodName226; + private String[] _methodParameterTypes226; private String _methodName227; private String[] _methodParameterTypes227; private String _methodName228; @@ -1151,24 +1140,24 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes232; private String _methodName233; private String[] _methodParameterTypes233; - private String _methodName234; - private String[] _methodParameterTypes234; + private String _methodName235; + private String[] _methodParameterTypes235; private String _methodName236; private String[] _methodParameterTypes236; - private String _methodName237; - private String[] _methodParameterTypes237; + private String _methodName238; + private String[] _methodParameterTypes238; private String _methodName239; private String[] _methodParameterTypes239; - private String _methodName240; - private String[] _methodParameterTypes240; + private String _methodName241; + private String[] _methodParameterTypes241; private String _methodName242; private String[] _methodParameterTypes242; - private String _methodName243; - private String[] _methodParameterTypes243; + private String _methodName244; + private String[] _methodParameterTypes244; private String _methodName245; private String[] _methodParameterTypes245; - private String _methodName246; - private String[] _methodParameterTypes246; + private String _methodName247; + private String[] _methodParameterTypes247; private String _methodName248; private String[] _methodParameterTypes248; private String _methodName249; @@ -1237,6 +1226,4 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes280; private String _methodName281; private String[] _methodParameterTypes281; - private String _methodName282; - private String[] _methodParameterTypes282; } \ No newline at end of file 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 bf9de53f..dfd9e8e9 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 @@ -354,164 +354,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return intPratica; } - public List svuotaDatabase(ServiceContext serviceContext) { - List esito = new ArrayList<>(); - int rows = 0; - try { - Connection connection = DataAccess.getUpgradeOptimizedConnection(); - Statement s = connection.createStatement(); - - long controlloPraticaClassNameId = ClassNameLocalServiceUtil.getClassName( - ControlloPratica.class.getName()).getClassNameId(); - long dettPraticaClassNameId = ClassNameLocalServiceUtil.getClassName(DettPratica.class.getName()) - .getClassNameId(); - long dlFileEntryClassNameId = ClassNameLocalServiceUtil.getClassName(DLFileEntry.class.getName()) - .getClassNameId(); - long dlFolderClassNameId = ClassNameLocalServiceUtil.getClassName(DLFolder.class.getName()) - .getClassNameId(); - long groupClassNameId = ClassNameLocalServiceUtil.getClassName(Group.class.getName()) - .getClassNameId(); - long mbDiscussionClassNameId = ClassNameLocalServiceUtil.getClassName( - MBDiscussion.class.getName()).getClassNameId(); - long organizationClassNameId = ClassNameLocalServiceUtil.getClassName( - Organization.class.getName()).getClassNameId(); - long userClassNameId = ClassNameLocalServiceUtil.getClassName(User.class.getName()) - .getClassNameId(); - - rows = s.executeUpdate("DELETE FROM portos_bo_avviso WHERE avvisoid IN (" - + "SELECT avvisoid FROM portos_bo_avviso a LEFT JOIN portos_bo_dettpratica d " - + "ON a.classpk=d.dettpraticaid WHERE classname='" + DettPratica.class.getName() - + "' AND d.dettpraticaid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da portos_bo_avviso"); - - rows = s.executeUpdate("DELETE FROM group_ WHERE groupid IN (SELECT groupid FROM group_ " - + "LEFT JOIN user_ ON group_.classpk=user_.userid WHERE classnameid=" + userClassNameId - + " AND user_.userid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da group_"); - - rows = s.executeUpdate("DELETE FROM contact_ WHERE contactid IN (" - + "SELECT c.contactid FROM contact_ c LEFT JOIN user_ u " - + "ON c.contactid=u.contactid WHERE u.userid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da contact_"); - - rows = s.executeUpdate("DELETE FROM usergroup WHERE usergroupid IN (" - + "SELECT usergroupid FROM usergroup g LEFT JOIN user_ u ON g.userid=u.userid " - + "WHERE u.userid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da usergroup"); - - rows = s.executeUpdate("DELETE FROM usergrouprole WHERE userid IN (" - + "SELECT DISTINCT x.userid FROM usergrouprole x " - + "LEFT JOIN user_ u ON x.userid=u.userid " + "WHERE u.userid IS NULL) OR groupid IN (" - + "SELECT DISTINCT x.groupid FROM usergrouprole x " - + "LEFT JOIN group_ g ON x.groupid=g.groupid " - + "WHERE g.groupid IS NULL) OR roleid IN (" - + "SELECT DISTINCT x.roleid FROM usergrouprole x " - + "LEFT JOIN role_ r ON x.roleid=r.roleid " + "WHERE r.roleid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da usergrouprole"); - - rows = s.executeUpdate("DELETE FROM ddmcontent WHERE contentid IN (" - + "SELECT contentid FROM ddmcontent LEFT JOIN dlfileentrymetadata " - + "ON ddmcontent.contentid=dlfileentrymetadata.ddmstorageid WHERE name='" - + DDMStorageLink.class.getName() - + "' AND dlfileentrymetadata.fileentrymetadataid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da ddmcontent"); - - rows = s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN dlfileentry b " - + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId - + " AND b.fileentryid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN dlfolder b ON a.classpk=b.folderid " - + "WHERE a.classnameid=" + dlFolderClassNameId + " AND b.folderid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN group_ b ON a.classpk=b.groupid " - + "WHERE a.classnameid=" + groupClassNameId + " AND b.groupid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN mbdiscussion b " - + "ON a.classpk=b.discussionid WHERE a.classnameid=" + mbDiscussionClassNameId - + " AND b.discussionid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN organization_ b " - + "ON a.classpk=b.organizationid WHERE a.classnameid=" + organizationClassNameId - + " AND b.organizationid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN portos_bo_controllopratica b " - + "ON a.classpk=b.controllopraticaid WHERE a.classnameid=" + controlloPraticaClassNameId - + " AND b.controllopraticaid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN portos_bo_dettpratica b " - + "ON a.classpk=b.dettpraticaid WHERE a.classnameid=" + dettPraticaClassNameId - + " AND b.dettpraticaid IS NULL)"); - rows += s.executeUpdate("DELETE FROM assetentry WHERE entryid IN (" - + "SELECT entryid FROM assetentry a LEFT JOIN user_ b ON a.classpk=b.userid " - + "WHERE a.classnameid=" + userClassNameId + " AND b.userid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da assetentry"); - - rows = s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" - + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN dlfileentry b " - + "ON a.primkey=b.fileentryid::TEXT WHERE a.name='" + DLFileEntry.class.getName() - + "' AND b.fileentryid IS NULL)"); - rows += s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" - + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN dlfolder b " - + "ON a.primkey=b.folderid::TEXT WHERE a.name='" + DLFolder.class.getName() - + "' AND b.folderid IS NULL)"); - rows += s - .executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" - + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN portos_bo_controllopratica b " - + "ON a.primkey=b.controllopraticaid::TEXT WHERE a.name='" - + ControlloPratica.class.getName() + "' AND b.controllopraticaid IS NULL)"); - rows += s.executeUpdate("DELETE FROM resourcepermission WHERE resourcepermissionid IN (" - + "SELECT resourcepermissionid FROM resourcepermission a LEFT JOIN user_ b " - + "ON a.primkey=b.userid::TEXT WHERE a.name='" + User.class.getName() - + "' AND b.userid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da resourcepermission"); - - rows = s.executeUpdate("DELETE FROM syncdlobject WHERE syncdlobjectid IN (" - + "SELECT syncdlobjectid FROM syncdlobject LEFT JOIN dlfileentry " - + "ON syncdlobject.typepk=dlfileentry.fileentryid WHERE type_='" - + DLSyncConstants.TYPE_FILE + "' AND dlfileentry.fileentryid IS NULL)"); - rows += s.executeUpdate("DELETE FROM syncdlobject WHERE syncdlobjectid IN (" - + "SELECT syncdlobjectid FROM syncdlobject LEFT JOIN dlfolder " - + "ON syncdlobject.typepk=dlfolder.folderid WHERE type_='" + DLSyncConstants.TYPE_FOLDER - + "' AND dlfolder.folderid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da syncdlobject"); - - rows = s.executeUpdate("DELETE FROM ratingsstats WHERE statsid IN (" - + "SELECT statsid FROM ratingsstats a LEFT JOIN dlfileentry b " - + "ON a.classpk=b.fileentryid WHERE a.classnameid=" + dlFileEntryClassNameId - + " AND b.fileentryid IS NULL)"); - rows += s.executeUpdate("DELETE FROM ratingsstats WHERE statsid IN (" - + "SELECT statsid FROM ratingsstats a LEFT JOIN dlfolder b " - + "ON a.classpk=b.folderid WHERE a.classnameid=" + dlFolderClassNameId - + " AND b.folderid IS NULL)"); - rows += s.executeUpdate("DELETE FROM ratingsstats WHERE statsid IN (" - + "SELECT statsid FROM ratingsstats a LEFT JOIN portos_bo_controllopratica b " - + "ON a.classpk=b.controllopraticaid WHERE a.classnameid=" + controlloPraticaClassNameId - + " AND b.controllopraticaid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da ratingsstats"); - - rows = s.executeUpdate("DELETE FROM mbmessage WHERE messageid IN (" - + "SELECT messageid FROM mbmessage a LEFT JOIN dlfileentry b " - + "ON a.classpk=b.fileentryid WHERE a.classnameid=" - + dlFileEntryClassNameId + " AND b.fileentryid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da mbmessage"); - - rows = s.executeUpdate("DELETE FROM mbdiscussion WHERE discussionid IN (" - + "SELECT discussionid FROM mbdiscussion a LEFT JOIN dlfileentry b " - + "ON a.classpk=b.fileentryid WHERE a.classnameid=" - + dlFileEntryClassNameId + " AND b.fileentryid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da mbdiscussion"); - - rows = s.executeUpdate("DELETE FROM mbthread WHERE threadid IN (" - + "SELECT DISTINCT mbthread.threadid FROM mbthread LEFT JOIN mbmessage " - + "ON mbthread.threadid=mbmessage.threadid WHERE mbmessage.messageid IS NULL)"); - esitoLog(esito, "Cancellate " + rows + " righe da mbthread"); - } catch (SQLException | SystemException e) { - esitoLog(esito, "Interrotto per errore: " + e.getMessage()); - } - return esito; - } - public List svuotaDatabase2(ServiceContext serviceContext) { List esito = new ArrayList<>(); try { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties index f3a9f0ee..f3c5d31a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_bo - build.number=2536 - build.date=1599139129864 + build.number=2539 + build.date=1599216162979 build.auto.upgrade=true ## 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 2f1be1e7..25c56e27 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 @@ -95,7 +95,7 @@ String dataProssimoSorteggio =
Test interno
- +
diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java index 041b1874..58a2b997 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/bean/FirmeBean.java @@ -8,87 +8,87 @@ import java.util.List; public class FirmeBean implements Serializable { - private static final long serialVersionUID = 1L; + private static final long serialVersionUID = 1L; - private List firmeDigitali = new UniqueList(); - private List firmeApplicativo = new UniqueList(); + private List firmeDigitali = new UniqueList(); + private List firmeApplicativo = new UniqueList(); - public List getFirmeDigitali() { - return new UnmodifiableList<>(firmeDigitali); - } + public List getFirmeDigitali() { + return new UnmodifiableList<>(firmeDigitali); + } - public void setFirmeDigitali(List firmeDigitali) { - this.firmeDigitali = new UniqueList(); - for (FirmeDetail firmaDigitale : firmeDigitali) { - this.firmeDigitali.add(firmaDigitale); - } - } + public void setFirmeDigitali(List firmeDigitali) { + this.firmeDigitali = new UniqueList(); + for (FirmeDetail firmaDigitale : firmeDigitali) { + this.firmeDigitali.add(firmaDigitale); + } + } - public List getFirmeApplicativo() { - return new UnmodifiableList<>(firmeApplicativo); - } + public List getFirmeApplicativo() { + return new UnmodifiableList<>(firmeApplicativo); + } - public void setFirmeApplicativo(List firmeApplicativo) { - this.firmeApplicativo = new UniqueList(); - for (FirmeDetail firmaApplicativo : firmeApplicativo) { - this.firmeApplicativo.add(firmaApplicativo); - } - } + public void setFirmeApplicativo(List firmeApplicativo) { + this.firmeApplicativo = new UniqueList(); + for (FirmeDetail firmaApplicativo : firmeApplicativo) { + this.firmeApplicativo.add(firmaApplicativo); + } + } - public boolean firmaIsPresent(String codiceFiscale) { - for (FirmeDetail firmaDigitale : firmeDigitali) { - if (firmaDigitale.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { - return true; - } - } - for (FirmeDetail firmaApplicativo : firmeApplicativo) { - if (firmaApplicativo.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { - return true; - } - } - return false; - } + public boolean firmaIsPresent(String codiceFiscale) { + for (FirmeDetail firmaDigitale : firmeDigitali) { + if (firmaDigitale.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { + return true; + } + } + for (FirmeDetail firmaApplicativo : firmeApplicativo) { + if (firmaApplicativo.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { + return true; + } + } + return false; + } - public boolean firmaIsAnnullabile(String codiceFiscale) { - for (FirmeDetail firmaApplicativo : firmeApplicativo) { - if (firmaApplicativo.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { - return true; - } - } - return false; - } + public boolean firmaIsAnnullabile(String codiceFiscale) { + for (FirmeDetail firmaApplicativo : firmeApplicativo) { + if (firmaApplicativo.getCfFirmatario().equalsIgnoreCase(codiceFiscale)) { + return true; + } + } + return false; + } - public int numeroFirme() { - List allSignatures = allSignatures(); - return allSignatures.size(); - } + public int numeroFirme() { + List allSignatures = allSignatures(); + return allSignatures.size(); + } - public List allSignatures() { - List all = new UniqueList(); - for (FirmeDetail firmaDigitale : firmeDigitali) { - all.add(firmaDigitale.getCfFirmatario().toLowerCase()); - } - for (FirmeDetail firmaApplicativo : firmeApplicativo) { - all.add(firmaApplicativo.getCfFirmatario().toLowerCase()); - } - return all; - } + public List allSignatures() { + List all = new UniqueList(); + for (FirmeDetail firmaDigitale : firmeDigitali) { + all.add(firmaDigitale.getCfFirmatario().toLowerCase()); + } + for (FirmeDetail firmaApplicativo : firmeApplicativo) { + all.add(firmaApplicativo.getCfFirmatario().toLowerCase()); + } + return all; + } - public List allFirmeDetails() { - List all = new UniqueList(); - all.addAll(firmeDigitali); - all.addAll(firmeApplicativo); - return all; - } + public List allFirmeDetails() { + List all = new UniqueList(); + all.addAll(firmeDigitali); + all.addAll(firmeApplicativo); + return all; + } - public void removeFirmeApplicativo(String codiceFiscale) { - FirmeDetail firmeDetailToRemove = null; - for (FirmeDetail firmeDetail : firmeApplicativo) { - if (codiceFiscale.equalsIgnoreCase(firmeDetail.getCfFirmatario())) { - firmeDetailToRemove = firmeDetail; - break; - } - } - firmeApplicativo.remove(firmeDetailToRemove); - } + public void removeFirmeApplicativo(String codiceFiscale) { + FirmeDetail firmeDetailToRemove = null; + for (FirmeDetail firmeDetail : firmeApplicativo) { + if (codiceFiscale.equalsIgnoreCase(firmeDetail.getCfFirmatario())) { + firmeDetailToRemove = firmeDetail; + break; + } + } + firmeApplicativo.remove(firmeDetailToRemove); + } } diff --git a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/FirmeUtil.java b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/FirmeUtil.java index 9d5edb97..4d81d9f9 100644 --- a/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/FirmeUtil.java +++ b/liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/FirmeUtil.java @@ -3,11 +3,11 @@ package it.tref.liferay.portos.bo.shared.util; import com.liferay.portal.kernel.json.JSONDeserializer; import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONSerializer; +import com.liferay.portal.kernel.log.Log; +import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.util.UniqueList; import it.tref.liferay.portos.bo.shared.bean.FirmeBean; - - import it.tref.liferay.portos.bo.shared.bean.FirmeDetail; import java.util.Date; @@ -15,59 +15,58 @@ import java.util.List; import java.util.Map; public class FirmeUtil { + public static String addFirma(FirmeBean firmeBean, String codiceFiscale) { + Date now = new Date(); + List firme = new UniqueList(); + firme.addAll(firmeBean.getFirmeApplicativo()); + firme.add(new FirmeDetail(codiceFiscale.toLowerCase(), now)); + firmeBean.setFirmeApplicativo(firme); + return serialize(firmeBean); + } - public static String addFirma(FirmeBean firmeBean, String codiceFiscale) { - Date now = new Date(); - List firme = new UniqueList(); - firme.addAll(firmeBean.getFirmeApplicativo()); - firme.add(new FirmeDetail(codiceFiscale.toLowerCase(), now)); - firmeBean.setFirmeApplicativo(firme); - return serialize(firmeBean); - } - - public static String addFirmaDigitale(FirmeBean firmeBean, String codiceFiscale) { - Date now = null; - List firme = new UniqueList(); - firme.addAll(firmeBean.getFirmeDigitali()); - firme.add(new FirmeDetail(codiceFiscale.toLowerCase(), now)); - firmeBean.setFirmeDigitali(firme); - return serialize(firmeBean); - } + public static String addFirmaDigitale(FirmeBean firmeBean, String codiceFiscale) { + Date now = null; + List firme = new UniqueList(); + firme.addAll(firmeBean.getFirmeDigitali()); + firme.add(new FirmeDetail(codiceFiscale.toLowerCase(), now)); + firmeBean.setFirmeDigitali(firme); + return serialize(firmeBean); + } - public static String addFirma(String jsonFirmatari, String codiceFiscale) { - FirmeBean firmeBean = deserialize(jsonFirmatari); - return addFirma(firmeBean, codiceFiscale); - } + public static String addFirma(String jsonFirmatari, String codiceFiscale) { + FirmeBean firmeBean = deserialize(jsonFirmatari); + return addFirma(firmeBean, codiceFiscale); + } - public static String addFirmaDigitale(String jsonFirmatari, String codiceFiscale) { - FirmeBean firmeBean = deserialize(jsonFirmatari); - return addFirmaDigitale(firmeBean, codiceFiscale); + public static String addFirmaDigitale(String jsonFirmatari, String codiceFiscale) { + FirmeBean firmeBean = deserialize(jsonFirmatari); + return addFirmaDigitale(firmeBean, codiceFiscale); - } + } - public static String removeFirma(FirmeBean firmeBean, String codiceFiscale) { - firmeBean.removeFirmeApplicativo(codiceFiscale); - JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer().exclude("class"); - return jsonSerializer.serializeDeep(firmeBean); - } + public static String removeFirma(FirmeBean firmeBean, String codiceFiscale) { + firmeBean.removeFirmeApplicativo(codiceFiscale); + JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer().exclude("class"); + return jsonSerializer.serializeDeep(firmeBean); + } - public static String removeFirma(String jsonFirmatari, String codiceFiscale) { - FirmeBean firmeBean = deserialize(jsonFirmatari); - return removeFirma(firmeBean, codiceFiscale); - } + public static String removeFirma(String jsonFirmatari, String codiceFiscale) { + FirmeBean firmeBean = deserialize(jsonFirmatari); + return removeFirma(firmeBean, codiceFiscale); + } - public static String serialize(FirmeBean firmeBean) { - JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer().exclude("class"); - return jsonSerializer.serializeDeep(firmeBean); - } + public static String serialize(FirmeBean firmeBean) { + JSONSerializer jsonSerializer = JSONFactoryUtil.createJSONSerializer().exclude("class"); + return jsonSerializer.serializeDeep(firmeBean); + } - public static FirmeBean deserialize(String jsonFirmatari) { - JSONDeserializer jsonSerializer = JSONFactoryUtil.createJSONDeserializer(); - Map> deserialized = - (Map>) jsonSerializer.deserialize(jsonFirmatari); - FirmeBean firmeBean = new FirmeBean(); - firmeBean.setFirmeApplicativo(deserialized.get("firmeApplicativo")); - firmeBean.setFirmeDigitali(deserialized.get("firmeDigitali")); - return firmeBean; - } + public static FirmeBean deserialize(String jsonFirmatari) { + JSONDeserializer jsonSerializer = JSONFactoryUtil.createJSONDeserializer(); + Map> deserialized = (Map>) jsonSerializer + .deserialize(jsonFirmatari); + FirmeBean firmeBean = new FirmeBean(); + firmeBean.setFirmeApplicativo(deserialized.get("firmeApplicativo")); + firmeBean.setFirmeDigitali(deserialized.get("firmeDigitali")); + return firmeBean; + } }