From c1629d5b52a852a025754558a309737319254f58 Mon Sep 17 00:00:00 2001 From: Salvatore La Manna Date: Fri, 29 May 2020 10:54:38 +0200 Subject: [PATCH] Nuovo conteggio giorni --- .../service/ControlloPraticaLocalService.java | 3 +- .../ControlloPraticaLocalServiceClp.java | 5 +- .../ControlloPraticaLocalServiceUtil.java | 3 +- .../ControlloPraticaLocalServiceWrapper.java | 3 +- .../bo/service/IntPraticaLocalService.java | 11 + .../bo/service/IntPraticaLocalServiceClp.java | 541 +++++++++-------- .../service/IntPraticaLocalServiceUtil.java | 13 + .../IntPraticaLocalServiceWrapper.java | 15 + .../it/mwg/sismica/bo/util/SismicaUtil.java | 287 ++------- .../portlet/PortosAdministrationPortlet.java | 4 +- .../IntPraticaLocalServiceClpInvoker.java | 560 +++++++++--------- .../ControlloPraticaLocalServiceImpl.java | 220 +++---- .../docroot/WEB-INF/src/service.properties | 4 +- .../html/sismica_administration/view.jsp | 30 +- 14 files changed, 782 insertions(+), 917 deletions(-) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java index 86158562..70c6a615 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalService.java @@ -441,7 +441,8 @@ public interface ControlloPraticaLocalService extends BaseLocalService, long intPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - public long calculateDateAvvioProcedimento(long controlloPraticaId) + public java.lang.Long calculateDateAvvioProcedimento( + long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java index a6700cb2..9b4eac2b 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceClp.java @@ -1698,7 +1698,8 @@ public class ControlloPraticaLocalServiceClp } @Override - public long calculateDateAvvioProcedimento(long controlloPraticaId) + public java.lang.Long calculateDateAvvioProcedimento( + long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1727,7 +1728,7 @@ public class ControlloPraticaLocalServiceClp } } - return ((Long)returnObj).longValue(); + return (java.lang.Long)ClpSerializer.translateOutput(returnObj); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java index 8e726652..4916f826 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceUtil.java @@ -528,7 +528,8 @@ public class ControlloPraticaLocalServiceUtil { return getService().findByIntPratica(intPraticaId); } - public static long calculateDateAvvioProcedimento(long controlloPraticaId) + public static java.lang.Long calculateDateAvvioProcedimento( + long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return getService().calculateDateAvvioProcedimento(controlloPraticaId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java index 2268f8b9..c17541f4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ControlloPraticaLocalServiceWrapper.java @@ -560,7 +560,8 @@ public class ControlloPraticaLocalServiceWrapper } @Override - public long calculateDateAvvioProcedimento(long controlloPraticaId) + public java.lang.Long calculateDateAvvioProcedimento( + long controlloPraticaId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { return _controlloPraticaLocalService.calculateDateAvvioProcedimento(controlloPraticaId); 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 18b8c150..a1c9bfdd 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 @@ -317,6 +317,17 @@ public interface IntPraticaLocalService extends BaseLocalService, java.lang.String[] parameterTypes, java.lang.Object[] arguments) throws java.lang.Throwable; + /** + * Restituisce la lista di pratiche da sottoporre a sorteggio suddivisa per + * codice provincia. Modificata secondo il D.D.G. 334/2020 + * + * @author Manifattura Web Group per Regione Siciliana. + */ + public java.util.HashMap> findSorteggiabiliNew( + long companyId, java.util.Date dtSorteggio) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + /** * Restituisce la lista di pratiche da sottoporre a sorteggio suddivisa per * codice provincia. 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 86db1982..8c8785ba 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 @@ -131,323 +131,327 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodParameterTypes21 = new String[] { "java.lang.String" }; - _methodName23 = "findSorteggiabili"; + _methodName23 = "findSorteggiabiliNew"; _methodParameterTypes23 = new String[] { "long", "java.util.Date" }; - _methodName24 = "addIntPratica"; + _methodName24 = "findSorteggiabili"; - _methodParameterTypes24 = new String[] { + _methodParameterTypes24 = new String[] { "long", "java.util.Date" }; + + _methodName25 = "addIntPratica"; + + _methodParameterTypes25 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName25 = "addIntPratica"; + _methodName26 = "addIntPratica"; - _methodParameterTypes25 = new String[] { + _methodParameterTypes26 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName26 = "clearDb"; + _methodName27 = "clearDb"; - _methodParameterTypes26 = new String[] { }; + _methodParameterTypes27 = new String[] { }; - _methodName27 = "deleteIntPratica"; + _methodName28 = "deleteIntPratica"; - _methodParameterTypes27 = new String[] { + _methodParameterTypes28 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName28 = "cloneIntPratica"; + _methodName29 = "cloneIntPratica"; - _methodParameterTypes28 = new String[] { + _methodParameterTypes29 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName29 = "updateDelegati"; + _methodName30 = "updateDelegati"; - _methodParameterTypes29 = new String[] { + _methodParameterTypes30 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName30 = "findFascicoliNotProgetto"; + _methodName31 = "findFascicoliNotProgetto"; - _methodParameterTypes30 = new String[] { "int", "int" }; + _methodParameterTypes31 = new String[] { "int", "int" }; - _methodName31 = "countFascicoliNotProgetto"; + _methodName32 = "countFascicoliNotProgetto"; - _methodParameterTypes31 = new String[] { }; + _methodParameterTypes32 = new String[] { }; - _methodName32 = "addNumeroProgetto"; + _methodName33 = "addNumeroProgetto"; - _methodParameterTypes32 = new String[] { "long" }; + _methodParameterTypes33 = new String[] { "long" }; - _methodName33 = "sospendiPratica"; + _methodName34 = "sospendiPratica"; - _methodParameterTypes33 = new String[] { "long", "boolean" }; + _methodParameterTypes34 = new String[] { "long", "boolean" }; - _methodName34 = "cambiaTitolare"; + _methodName35 = "cambiaTitolare"; - _methodParameterTypes34 = new String[] { + _methodParameterTypes35 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName35 = "updateStatoPratica"; + _methodName36 = "updateStatoPratica"; - _methodParameterTypes35 = new String[] { + _methodParameterTypes36 = new String[] { "long", "long", "java.lang.String" }; - _methodName36 = "updateIntPraticaSorteggio"; + _methodName37 = "updateIntPraticaSorteggio"; - _methodParameterTypes36 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes37 = new String[] { "long", "java.util.Date" }; - _methodName37 = "updateIntPraticaSorteggio"; + _methodName38 = "updateIntPraticaSorteggio"; - _methodParameterTypes37 = new String[] { + _methodParameterTypes38 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName38 = "findByC_UserId"; + _methodName39 = "findByC_UserId"; - _methodParameterTypes38 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes39 = new String[] { "long", "long", "int", "int" }; - _methodName39 = "countByC_UserId"; + _methodName40 = "countByC_UserId"; - _methodParameterTypes39 = new String[] { "long", "long" }; + _methodParameterTypes40 = new String[] { "long", "long" }; - _methodName40 = "fetchByOldIntPraticaId"; + _methodName41 = "fetchByOldIntPraticaId"; - _methodParameterTypes40 = new String[] { "long" }; + _methodParameterTypes41 = new String[] { "long" }; - _methodName41 = "updateStatus"; + _methodName42 = "updateStatus"; - _methodParameterTypes41 = new String[] { "long", "int" }; + _methodParameterTypes42 = new String[] { "long", "int" }; - _methodName42 = "findByCompanyIdSoggettoProgetti"; - - _methodParameterTypes42 = new String[] { "long", "long" }; - - _methodName43 = "countByCompanyIdSoggettoProgetti"; + _methodName43 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes43 = new String[] { "long", "long" }; - _methodName44 = "findByCompanyIdSoggettoArchivio"; + _methodName44 = "countByCompanyIdSoggettoProgetti"; _methodParameterTypes44 = new String[] { "long", "long" }; - _methodName45 = "countByCompanyIdSoggettoArchivio"; + _methodName45 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes45 = new String[] { "long", "long" }; - _methodName46 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName46 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes46 = new String[] { "long", "long" }; + + _methodName47 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes46 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes47 = new String[] { "long", "long", "int", "int" }; - _methodName47 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName48 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes47 = new String[] { "long", "long" }; + _methodParameterTypes48 = new String[] { "long", "long" }; - _methodName48 = "findByCanAddFineLavori"; + _methodName49 = "findByCanAddFineLavori"; - _methodParameterTypes48 = new String[] { + _methodParameterTypes49 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName49 = "countByCanAddFineLavori"; + _methodName50 = "countByCanAddFineLavori"; - _methodParameterTypes49 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes50 = new String[] { "long", "java.lang.String" }; - _methodName50 = "findByCanAddCollaudo"; + _methodName51 = "findByCanAddCollaudo"; - _methodParameterTypes50 = new String[] { + _methodParameterTypes51 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName51 = "countByCanAddCollaudo"; + _methodName52 = "countByCanAddCollaudo"; - _methodParameterTypes51 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes52 = new String[] { "long", "java.lang.String" }; - _methodName52 = "search"; + _methodName53 = "search"; - _methodParameterTypes52 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes53 = new String[] { "java.util.List", "int", "int" }; - _methodName53 = "countSearch"; + _methodName54 = "countSearch"; - _methodParameterTypes53 = new String[] { "java.util.List" }; + _methodParameterTypes54 = new String[] { "java.util.List" }; - _methodName54 = "searchWithIntPraticaId"; + _methodName55 = "searchWithIntPraticaId"; - _methodParameterTypes54 = new String[] { + _methodParameterTypes55 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName55 = "countSearchWithIntPraticaId"; + _methodName56 = "countSearchWithIntPraticaId"; - _methodParameterTypes55 = new String[] { "java.util.List", "long" }; + _methodParameterTypes56 = new String[] { "java.util.List", "long" }; - _methodName56 = "allegaFileAnnullamento"; + _methodName57 = "allegaFileAnnullamento"; - _methodParameterTypes56 = new String[] { + _methodParameterTypes57 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName57 = "generateFileAnnullamento"; + _methodName58 = "generateFileAnnullamento"; - _methodParameterTypes57 = new String[] { + _methodParameterTypes58 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName58 = "deleteFileAnnullamento"; + _methodName59 = "deleteFileAnnullamento"; - _methodParameterTypes58 = new String[] { "long" }; + _methodParameterTypes59 = new String[] { "long" }; - _methodName59 = "completeAnnullamento"; + _methodName60 = "completeAnnullamento"; - _methodParameterTypes59 = new String[] { "long" }; + _methodParameterTypes60 = new String[] { "long" }; - _methodName60 = "cambiaIstruttore"; + _methodName61 = "cambiaIstruttore"; - _methodParameterTypes60 = new String[] { "long", "long", "long" }; + _methodParameterTypes61 = new String[] { "long", "long", "long" }; - _methodName61 = "countCaricoLavoroCF"; + _methodName62 = "countCaricoLavoroCF"; - _methodParameterTypes61 = new String[] { + _methodParameterTypes62 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName62 = "countCaricoLavoroIstruttore"; + _methodName63 = "countCaricoLavoroIstruttore"; - _methodParameterTypes62 = new String[] { + _methodParameterTypes63 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName63 = "generateReportPratica"; + _methodName64 = "generateReportPratica"; - _methodParameterTypes63 = new String[] { + _methodParameterTypes64 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName64 = "updateModifiedDate"; + _methodName65 = "updateModifiedDate"; - _methodParameterTypes64 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes65 = new String[] { "long", "java.util.Date" }; - _methodName65 = "countAutorizzazione"; - - _methodParameterTypes65 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; - - _methodName66 = "countSanatorie"; + _methodName66 = "countAutorizzazione"; _methodParameterTypes66 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName67 = "countOpereMinoreImportanza"; + _methodName67 = "countSanatorie"; _methodParameterTypes67 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName68 = "countDeposito"; + _methodName68 = "countOpereMinoreImportanza"; _methodParameterTypes68 = new String[] { - "java.util.Date", "java.util.Date", "long", "boolean" + "java.util.Date", "java.util.Date", "long" }; - _methodName69 = "countVidimate"; + _methodName69 = "countDeposito"; _methodParameterTypes69 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String", - "boolean" + "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName70 = "countControllo"; + _methodName70 = "countVidimate"; _methodParameterTypes70 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName71 = "importaVecchiFilesFascicolo"; + _methodName71 = "countControllo"; - _methodParameterTypes71 = new String[] { "long", "int", "int" }; + _methodParameterTypes71 = new String[] { + "java.util.Date", "java.util.Date", "long", "java.lang.String", + "boolean" + }; - _methodName72 = "findIntPraticaNotExist"; + _methodName72 = "importaVecchiFilesFascicolo"; - _methodParameterTypes72 = new String[] { }; + _methodParameterTypes72 = new String[] { "long", "int", "int" }; - _methodName73 = "riparaWorkflow"; + _methodName73 = "findIntPraticaNotExist"; _methodParameterTypes73 = new String[] { }; - _methodName74 = "reIndexFasciolo"; + _methodName74 = "riparaWorkflow"; - _methodParameterTypes74 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes74 = new String[] { }; _methodName75 = "reIndexFasciolo"; - _methodParameterTypes75 = new String[] { "long", "long" }; + _methodParameterTypes75 = new String[] { "java.lang.String", "long" }; - _methodName76 = "trovaDoppioni"; + _methodName76 = "reIndexFasciolo"; - _methodParameterTypes76 = new String[] { }; + _methodParameterTypes76 = new String[] { "long", "long" }; - _methodName77 = "findByNumeroProgetto"; + _methodName77 = "trovaDoppioni"; - _methodParameterTypes77 = new String[] { "java.lang.String" }; + _methodParameterTypes77 = new String[] { }; - _methodName78 = "findByTerritorioId"; + _methodName78 = "findByNumeroProgetto"; - _methodParameterTypes78 = new String[] { "long" }; + _methodParameterTypes78 = new String[] { "java.lang.String" }; - _methodName79 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName79 = "findByTerritorioId"; - _methodParameterTypes79 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes79 = new String[] { "long" }; - _methodName80 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName80 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes80 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName81 = "reportPraticheVidimate"; + _methodName81 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes81 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName82 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName82 = "reportPraticheVidimate"; _methodParameterTypes82 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName83 = "countIngressiAutorizzazioni"; + _methodName83 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes83 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName84 = "countIngressiDepositi"; + _methodName84 = "countIngressiAutorizzazioni"; _methodParameterTypes84 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName85 = "countIngressiCO"; + _methodName85 = "countIngressiDepositi"; _methodParameterTypes85 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName86 = "countIngressiCO"; + + _methodParameterTypes86 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } @Override @@ -1151,7 +1155,7 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { } @Override - public java.util.HashMap> findSorteggiabili( + public java.util.HashMap> findSorteggiabiliNew( long companyId, java.util.Date dtSorteggio) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { @@ -1189,6 +1193,45 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return (java.util.HashMap>)ClpSerializer.translateOutput(returnObj); } + @Override + public java.util.HashMap> findSorteggiabili( + long companyId, java.util.Date dtSorteggio) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName24, + _methodParameterTypes24, + new Object[] { + companyId, + + ClpSerializer.translateInput(dtSorteggio) + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof com.liferay.portal.kernel.exception.PortalException) { + throw (com.liferay.portal.kernel.exception.PortalException)t; + } + + if (t instanceof com.liferay.portal.kernel.exception.SystemException) { + throw (com.liferay.portal.kernel.exception.SystemException)t; + } + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (java.util.HashMap>)ClpSerializer.translateOutput(returnObj); + } + @Override public it.tref.liferay.portos.bo.model.IntPratica addIntPratica( long territorioId, java.lang.String tipoProcedura, @@ -1198,8 +1241,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName24, - _methodParameterTypes24, + returnObj = _invokableLocalService.invokeMethod(_methodName25, + _methodParameterTypes25, new Object[] { territorioId, @@ -1244,8 +1287,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName25, - _methodParameterTypes25, + returnObj = _invokableLocalService.invokeMethod(_methodName26, + _methodParameterTypes26, new Object[] { userId, @@ -1300,8 +1343,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { @Override public void clearDb() throws java.lang.Exception { try { - _invokableLocalService.invokeMethod(_methodName26, - _methodParameterTypes26, new Object[] { }); + _invokableLocalService.invokeMethod(_methodName27, + _methodParameterTypes27, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1328,8 +1371,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName27, - _methodParameterTypes27, + returnObj = _invokableLocalService.invokeMethod(_methodName28, + _methodParameterTypes28, new Object[] { ClpSerializer.translateInput(intPratica), @@ -1368,8 +1411,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName28, - _methodParameterTypes28, + returnObj = _invokableLocalService.invokeMethod(_methodName29, + _methodParameterTypes29, new Object[] { intPraticaId, @@ -1409,8 +1452,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName29, - _methodParameterTypes29, + returnObj = _invokableLocalService.invokeMethod(_methodName30, + _methodParameterTypes30, new Object[] { intPraticaId, @@ -1452,8 +1495,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName30, - _methodParameterTypes30, new Object[] { start, end }); + returnObj = _invokableLocalService.invokeMethod(_methodName31, + _methodParameterTypes31, new Object[] { start, end }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1480,8 +1523,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName31, - _methodParameterTypes31, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName32, + _methodParameterTypes32, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1510,8 +1553,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName32, - _methodParameterTypes32, new Object[] { intPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName33, + _methodParameterTypes33, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1544,8 +1587,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName33, - _methodParameterTypes33, + returnObj = _invokableLocalService.invokeMethod(_methodName34, + _methodParameterTypes34, new Object[] { intPraticaId, sospesa }); } catch (Throwable t) { @@ -1580,8 +1623,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName34, - _methodParameterTypes34, + returnObj = _invokableLocalService.invokeMethod(_methodName35, + _methodParameterTypes35, new Object[] { intPraticaId, @@ -1621,8 +1664,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName35, - _methodParameterTypes35, + returnObj = _invokableLocalService.invokeMethod(_methodName36, + _methodParameterTypes36, new Object[] { intPraticaId, @@ -1661,8 +1704,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName36, - _methodParameterTypes36, + returnObj = _invokableLocalService.invokeMethod(_methodName37, + _methodParameterTypes37, new Object[] { intPraticaId, @@ -1696,8 +1739,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName37, - _methodParameterTypes37, + returnObj = _invokableLocalService.invokeMethod(_methodName38, + _methodParameterTypes38, new Object[] { intPraticaId, @@ -1732,8 +1775,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName38, - _methodParameterTypes38, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { companyId, userId, start, end }); } catch (Throwable t) { @@ -1761,8 +1804,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { companyId, userId }); + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { companyId, userId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1790,8 +1833,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { oldIntPraticaId }); + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { oldIntPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1817,8 +1860,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, new Object[] { intPraticaId, status }); + _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { intPraticaId, status }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -1849,8 +1892,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1883,8 +1926,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1918,8 +1961,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1952,8 +1995,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -1987,8 +2030,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { companyId, soggettoId, start, end }); } catch (Throwable t) { @@ -2022,8 +2065,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { companyId, soggettoId }); } catch (Throwable t) { @@ -2057,8 +2100,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { companyId, @@ -2100,8 +2143,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName50, + _methodParameterTypes50, new Object[] { companyId, @@ -2139,8 +2182,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName51, + _methodParameterTypes51, new Object[] { companyId, @@ -2182,8 +2225,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName52, + _methodParameterTypes52, new Object[] { companyId, @@ -2220,8 +2263,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, + returnObj = _invokableLocalService.invokeMethod(_methodName53, + _methodParameterTypes53, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2255,8 +2298,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName54, + _methodParameterTypes54, new Object[] { ClpSerializer.translateInput(groupIds) }); } catch (Throwable t) { @@ -2285,8 +2328,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, + returnObj = _invokableLocalService.invokeMethod(_methodName55, + _methodParameterTypes55, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2323,8 +2366,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName56, + _methodParameterTypes56, new Object[] { ClpSerializer.translateInput(groupIds), @@ -2361,8 +2404,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName57, + _methodParameterTypes57, new Object[] { intPraticaId, @@ -2412,8 +2455,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName58, + _methodParameterTypes58, new Object[] { intPraticaId, @@ -2452,8 +2495,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, + _invokableLocalService.invokeMethod(_methodName59, + _methodParameterTypes59, new Object[] { docPraticaAnnullamentoId }); } catch (Throwable t) { @@ -2482,8 +2525,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, new Object[] { intPraticaId }); + _invokableLocalService.invokeMethod(_methodName60, + _methodParameterTypes60, new Object[] { intPraticaId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2512,8 +2555,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, + _invokableLocalService.invokeMethod(_methodName61, + _methodParameterTypes61, new Object[] { intPraticaId, controlloPraticaId, istruttoreId }); } catch (Throwable t) { @@ -2546,8 +2589,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName61, - _methodParameterTypes61, + returnObj = _invokableLocalService.invokeMethod(_methodName62, + _methodParameterTypes62, new Object[] { ispettoreId, @@ -2588,8 +2631,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName62, - _methodParameterTypes62, + returnObj = _invokableLocalService.invokeMethod(_methodName63, + _methodParameterTypes63, new Object[] { ispettoreId, @@ -2625,8 +2668,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName63, - _methodParameterTypes63, + returnObj = _invokableLocalService.invokeMethod(_methodName64, + _methodParameterTypes64, new Object[] { ClpSerializer.translateInput(intPratica), @@ -2664,8 +2707,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName64, - _methodParameterTypes64, + returnObj = _invokableLocalService.invokeMethod(_methodName65, + _methodParameterTypes65, new Object[] { intPraticaId, @@ -2702,8 +2745,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName65, - _methodParameterTypes65, + returnObj = _invokableLocalService.invokeMethod(_methodName66, + _methodParameterTypes66, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2738,8 +2781,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName66, - _methodParameterTypes66, + returnObj = _invokableLocalService.invokeMethod(_methodName67, + _methodParameterTypes67, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2774,8 +2817,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName67, - _methodParameterTypes67, + returnObj = _invokableLocalService.invokeMethod(_methodName68, + _methodParameterTypes68, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2810,8 +2853,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName68, - _methodParameterTypes68, + returnObj = _invokableLocalService.invokeMethod(_methodName69, + _methodParameterTypes69, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2848,8 +2891,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName69, - _methodParameterTypes69, + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2889,8 +2932,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName70, - _methodParameterTypes70, + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, new Object[] { ClpSerializer.translateInput(dtMin), @@ -2929,8 +2972,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName71, - _methodParameterTypes71, + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, new Object[] { companyId, start, end }); } catch (Throwable t) { @@ -2958,8 +3001,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName72, - _methodParameterTypes72, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName73, + _methodParameterTypes73, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -2986,8 +3029,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName73, - _methodParameterTypes73, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName74, + _methodParameterTypes74, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3012,8 +3055,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(_methodName74, - _methodParameterTypes74, + _invokableLocalService.invokeMethod(_methodName75, + _methodParameterTypes75, new Object[] { ClpSerializer.translateInput(numeroProgetto), @@ -3042,8 +3085,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { try { - _invokableLocalService.invokeMethod(_methodName75, - _methodParameterTypes75, + _invokableLocalService.invokeMethod(_methodName76, + _methodParameterTypes76, new Object[] { intPraticaId, companyId }); } catch (Throwable t) { @@ -3073,8 +3116,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName76, - _methodParameterTypes76, new Object[] { }); + returnObj = _invokableLocalService.invokeMethod(_methodName77, + _methodParameterTypes77, new Object[] { }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3102,8 +3145,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName77, - _methodParameterTypes77, + returnObj = _invokableLocalService.invokeMethod(_methodName78, + _methodParameterTypes78, new Object[] { ClpSerializer.translateInput(numeroProgetto) }); } catch (Throwable t) { @@ -3132,8 +3175,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName78, - _methodParameterTypes78, new Object[] { territorioId }); + returnObj = _invokableLocalService.invokeMethod(_methodName79, + _methodParameterTypes79, new Object[] { territorioId }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -3162,8 +3205,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName79, - _methodParameterTypes79, + returnObj = _invokableLocalService.invokeMethod(_methodName80, + _methodParameterTypes80, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3200,8 +3243,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName80, - _methodParameterTypes80, + returnObj = _invokableLocalService.invokeMethod(_methodName81, + _methodParameterTypes81, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3237,8 +3280,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName81, - _methodParameterTypes81, + returnObj = _invokableLocalService.invokeMethod(_methodName82, + _methodParameterTypes82, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3275,8 +3318,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName82, - _methodParameterTypes82, + returnObj = _invokableLocalService.invokeMethod(_methodName83, + _methodParameterTypes83, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3311,8 +3354,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName83, - _methodParameterTypes83, + returnObj = _invokableLocalService.invokeMethod(_methodName84, + _methodParameterTypes84, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3347,8 +3390,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName84, - _methodParameterTypes84, + returnObj = _invokableLocalService.invokeMethod(_methodName85, + _methodParameterTypes85, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3383,8 +3426,8 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName85, - _methodParameterTypes85, + returnObj = _invokableLocalService.invokeMethod(_methodName86, + _methodParameterTypes86, new Object[] { ClpSerializer.translateInput(dtMin), @@ -3583,4 +3626,6 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes84; private String _methodName85; private String[] _methodParameterTypes85; + private String _methodName86; + private String[] _methodParameterTypes86; } \ 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 0e5e01d8..a849a0cb 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 @@ -342,6 +342,19 @@ public class IntPraticaLocalServiceUtil { return getService().invokeMethod(name, parameterTypes, arguments); } + /** + * Restituisce la lista di pratiche da sottoporre a sorteggio suddivisa per + * codice provincia. Modificata secondo il D.D.G. 334/2020 + * + * @author Manifattura Web Group per Regione Siciliana. + */ + public static java.util.HashMap> findSorteggiabiliNew( + long companyId, java.util.Date dtSorteggio) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return getService().findSorteggiabiliNew(companyId, dtSorteggio); + } + /** * Restituisce la lista di pratiche da sottoporre a sorteggio suddivisa per * codice provincia. 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 3312be2b..47fa2aad 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 @@ -362,6 +362,21 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, arguments); } + /** + * Restituisce la lista di pratiche da sottoporre a sorteggio suddivisa per + * codice provincia. Modificata secondo il D.D.G. 334/2020 + * + * @author Manifattura Web Group per Regione Siciliana. + */ + @Override + public java.util.HashMap> findSorteggiabiliNew( + long companyId, java.util.Date dtSorteggio) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPraticaLocalService.findSorteggiabiliNew(companyId, + dtSorteggio); + } + /** * Restituisce la lista di pratiche da sottoporre a sorteggio suddivisa per * codice provincia. diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java index a9c9e14b..faa290c3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java @@ -9,25 +9,16 @@ import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.model.Sorteggio; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil; -import it.tref.liferay.portos.bo.service.ControlloPraticaLocalService; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SorteggioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; -import it.tref.liferay.portos.bo.service.impl.ControlloPraticaLocalServiceImpl; -import it.tref.liferay.portos.bo.shared.protocollo.model.Protocollo.TipoProtocollo; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.Constants; -import it.tref.liferay.portos.bo.util.ContentType; - -import java.io.File; -import java.io.IOException; import java.io.Serializable; import java.text.ParseException; import java.text.SimpleDateFormat; @@ -38,30 +29,19 @@ import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import java.util.TreeMap; import java.util.Map.Entry; -import javax.servlet.http.HttpServletResponse; - -import org.apache.commons.io.FileUtils; - import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.repository.model.FileEntry; -import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.GetterUtil; -import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; -import com.liferay.portal.kernel.util.PropsUtil; import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.util.Http.FilePart; -import com.liferay.portal.kernel.util.Http.Options; import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowException; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; @@ -69,9 +49,7 @@ import com.liferay.portal.kernel.workflow.WorkflowInstance; import com.liferay.portal.kernel.workflow.WorkflowInstanceManagerUtil; import com.liferay.portal.kernel.workflow.WorkflowTask; import com.liferay.portal.kernel.workflow.WorkflowTaskManagerUtil; -import com.liferay.portal.model.Company; import com.liferay.portal.model.User; -import com.liferay.portal.service.CompanyLocalServiceUtil; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken; @@ -85,6 +63,7 @@ public class SismicaUtil { private static final SimpleDateFormat dfmt = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss"); private static final SimpleDateFormat dfmtGiorno = new SimpleDateFormat("dd/MM/yyyy"); + private static final SimpleDateFormat sdfGiornoDB = new SimpleDateFormat("yyyy-MM-dd"); private final static int SLICE = 1000; public static Date[] getWeekInterval(int dow) { @@ -126,6 +105,40 @@ public class SismicaUtil { } return date; } + + public static Long daysBetween(Date start, Date end) { + if (Validator.isNotNull(start) && Validator.isNotNull(end)) { + try { + start = sdfGiornoDB.parse(sdfGiornoDB.format(start)); + end = sdfGiornoDB.parse(sdfGiornoDB.format(end)); + } catch (ParseException e) { + } + return Math.round((end.getTime() - start.getTime()) / 86400000.0); + } + return null; + } + + public static Long daysBetween(String start, String end) { + Long diff = null; + try { + diff = daysBetween(sdfGiornoDB.parse(start), sdfGiornoDB.parse(end)); + } catch (ParseException e) { + } + return diff; + } + + public static Long daysPast(Date start) { + return daysBetween(start, new Date()); + } + + public static Long daysPast(String start) { + Long diff = null; + try { + diff = daysBetween(sdfGiornoDB.parse(start), new Date()); + } catch (ParseException e) { + } + return diff; + } public static boolean isLong(String s) { try { @@ -375,22 +388,21 @@ public class SismicaUtil { for (IntPratica pratica : pratiche) { String stato = pratica.getStatoPratica(); if (Validator.isNotNull(stato) && Validator.isNotNull(pratica.getTipoProcedura()) - && pratica.getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO) - && stato.equals(StatoPraticaConstants.VIDIMATA)) { + && pratica.getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO)) { try { avvisi = AvvisoLocalServiceUtil.findByIntPraticaId_tipoDocumento( pratica.getIntPraticaId(), StatoPraticaConstants.CONFORME); } catch (SystemException e) { esito.add("Errore caricamento avvisi: " + e.getMessage()); } - if (avvisi.size() == 0) { - List totali = null; - try { - totali = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } catch (SystemException e) { - totali = new ArrayList<>(); - } + List totali = null; + try { + totali = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + } catch (SystemException e) { + totali = new ArrayList<>(); + } + if ((avvisi.size() == 0) && stato.equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) { List controlli = null; try { controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica @@ -453,14 +465,25 @@ public class SismicaUtil { "Attestazione di deposito progetto", new Date(), AvvisoUtil.TIPO_AVVISO_DIRETTO, StatoPraticaConstants.CONFORME, fileEntryIdTemplate, - dettPratica.getDettPraticaId(), DettPratica.class.getName(), + dettPratica.getDettPraticaId(), + DettPratica.class.getName(), controllo.getControlloPraticaId(), serviceContext); + pratica.setStatoPratica(StatoPraticaConstants.CONFORME); + IntPraticaLocalServiceUtil.updateIntPratica(pratica); } catch (PortalException | SystemException e) { } } } } } + } else if ((totali.size() == 2) && (avvisi.size() > 0) + && stato.equalsIgnoreCase(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) { + esito.add("Rendo conforme: " + pratica.getNumeroProgetto()); + pratica.setStatoPratica(StatoPraticaConstants.CONFORME); + try { + IntPraticaLocalServiceUtil.updateIntPratica(pratica); + } catch (SystemException e) { + } } } } @@ -604,80 +627,17 @@ public class SismicaUtil { return esito; } - public static List testInterno2(long companyId) { + public static List testInterno(long companyId) { List esito = new ArrayList<>(); - Company company = null; try { - company = CompanyLocalServiceUtil.getCompany(companyId); - } catch (PortalException | SystemException e) { - esito.add("Errore di accesso a company id " + companyId); - return esito; - } - - List fileEntries = null; - int totale = 0, p7m = 0, start = 0; - Map conteggi = new TreeMap<>(); - do { - try { - fileEntries = DLFileEntryLocalServiceUtil.getFileEntries(start, start + SLICE); - } catch (SystemException e) { - fileEntries = new ArrayList<>(); - } - start += SLICE; - for (DLFileEntry fileEntry : fileEntries) { - totale++; - if (fileEntry.getExtension().equalsIgnoreCase("p7m")) { - try { - byte[] contenuto = FileUtil.getBytes(fileEntry.getContentStream()); - String url = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", - false); - Options options = new Options(); - options.setLocation(url); - options.setPost(true); - List fileParts = new ArrayList<>(); - fileParts.add(new FilePart("file", fileEntry.getTitle(), contenuto, ContentType.P7M - .getContentType(), "UTF-8")); - options.setFileParts(fileParts); - String response = HttpUtil.URLtoString(options); - int numeroFirme = 0; - if (options.getResponse().getResponseCode() == HttpServletResponse.SC_OK - || options.getResponse().getResponseCode() == HttpServletResponse.SC_CREATED) { - numeroFirme = JSONFactoryUtil.createJSONObject(response).getJSONArray("cf") - .length(); - } - if (conteggi.containsKey(numeroFirme)) { - conteggi.put(numeroFirme, conteggi.get(numeroFirme) + 1); - } else { - conteggi.put(numeroFirme, 1); - } - p7m++; - if ((numeroFirme > 4) || (numeroFirme == 0)) { - String folder = PropsUtil.get("env.HOME") + "/documenti/" + numeroFirme - + "_firme"; - File file = new File(folder); - if (!file.exists()) { - file.mkdirs(); - } - String fileName = folder + "/" + fileEntry.getTitle(); - file = new File(fileName); - FileUtils.writeByteArrayToFile(file, contenuto); - _log.info("Salvato " + fileName); - String msg = ""; - for (Map.Entry conteggio : conteggi.entrySet()) { - msg += (msg.equals("") ? "" : ", ") + conteggio.getKey() + " => " - + conteggio.getValue(); - } - _log.info(p7m + "/" + totale + ", conteggi: " + msg); - } - } catch (PortalException | SystemException | IOException e) { - } - } - } - } while (fileEntries.size() > 0); - esito.add("Conteggio file: " + totale + ", p7m: " + p7m); - for (Map.Entry conteggio : conteggi.entrySet()) { - esito.add(conteggio.getKey() + " firme: " + conteggio.getValue()); + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); + Date start = sdf.parse("2020-01-01 13:45:23.1111"); + Date end = sdf.parse("2020-12-31 10:45:23.1111"); + long diff = Math.round((end.getTime() - start.getTime()) / 86400000.0); + esito.add(diff + " giorni"); + } catch (Exception e) { + esito.add("Eccezione: " + e.getMessage()); } return esito; } @@ -685,7 +645,7 @@ public class SismicaUtil { private static Map templateByKey; private static Map templateById; private static Map templateIdByKey; - private static final Date inizio = SismicaUtil.stringToDate("2019-12-31"); + private static final Date inizio = stringToDate("2019-12-31"); private static List riparaDocumenti(long companyId) throws SystemException, PortalException { List esito = new ArrayList(); @@ -899,45 +859,6 @@ public class SismicaUtil { return esito; } - public static List inviaComunicazione2(long companyId) throws SystemException { - List esito = new ArrayList<>(); - - int start = 0; - List pratiche = null; - List chiudere = new ArrayList<>(); - do { - pratiche = IntPraticaLocalServiceUtil.getIntPraticas(start, start + SLICE); - for (IntPratica pratica : pratiche) { - if (pratica.getTipoProcedura().equals(Constants.PROCEDURA_B1) - && Validator.isNotNull(pratica.getDtSorteggio()) - && pratica.getStatoPratica().equals(StatoPraticaConstants.CONFORME) - && (pratica.getStatusByUserId() == 0) - && pratica.getTipoPratica().equals(Constants.TIPO_PRATICA_DEPOSITO)) { - Sorteggio sorteggio = SorteggioLocalServiceUtil.findByIntPratica(pratica - .getIntPraticaId()); - if (Validator.isNull(sorteggio)) { - List controlli = ControlloPraticaLocalServiceUtil - .findByIntPratica(pratica.getIntPraticaId()); - if ((controlli.size() == 1) || (pratica.getStatusByUserId() == 0)) { - for (ControlloPratica controllo : controlli) { - if (controllo.getStatus() == WorkflowConstants.STATUS_PENDING) { - chiudere.add(controllo); - } - } - } - } - } - } - start += SLICE; - } while (pratiche.size() > 0); - esito.add(chiudere.size() + " da togliere"); - for (ControlloPratica controllo : chiudere) { - controllo.setStatus(WorkflowConstants.STATUS_APPROVED); - ControlloPraticaLocalServiceUtil.updateControlloPratica(controllo); - } - return esito; - } - public static List inviaComunicazione(long companyId) throws SystemException, PortalException, ParseException { List esito = new ArrayList<>(); @@ -1007,82 +928,4 @@ public class SismicaUtil { } return esito; } - - public static List inviaComunicazione3(long companyId) throws SystemException, ParseException, - PortalException { - List esito = new ArrayList<>(); - - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSS"); - Date prima = sdf.parse("2020-03-05 11:10:17.964"); - Date seconda = sdf.parse("2020-03-05 11:12:18.006"); - SimpleDateFormat hdf = new SimpleDateFormat("dd/MM/yyyy"); - - int start = 0; - List pratiche = null; - List vecchi = new ArrayList<>(); - List SP = new ArrayList<>(); - List CO = new ArrayList<>(); - do { - pratiche = IntPraticaLocalServiceUtil.getIntPraticas(start, start + SLICE); - for (IntPratica pratica : pratiche) { - if (Validator.isNotNull(pratica.getDtSorteggio()) && pratica.getDtSorteggio().equals(seconda)) { - String tipo = ""; - List avvisi = AvvisoLocalServiceUtil.findByIntPratica( - pratica.getIntPraticaId(), - QueryUtil.ALL_POS, - QueryUtil.ALL_POS, - OrderByComparatorFactoryUtil.getOrderByComparatorFactory().create( - "portos_bo_Avviso", "dtProtocollo", true)); - for (Avviso avviso : avvisi) { - Date dtAvviso = sdf.parse(avviso.getDtAvviso().toString()); - if (dtAvviso.equals(prima)) { - tipo += avviso.getTipoDocumento(); - } else if (dtAvviso.equals(seconda)) { - tipo += avviso.getTipoDocumento(); - } - } - List controlli = ControlloPraticaLocalServiceUtil - .findByIntPratica(pratica.getIntPraticaId()); - for (ControlloPratica controllo : controlli) { - vecchi.add(controllo); - } - switch (tipo) { - case "COCO": - case "COSP": - CO.add(pratica); - break; - case "SPCO": - case "SPSP": - SP.add(pratica); - break; - } - } - } - start += SLICE; - } while (pratiche.size() > 0); - esito.add("" + vecchi.size() + " controlli"); - esito.add("" + CO.size() + " conformi"); - for (IntPratica pratica : SP) { - if (pratica.getNumeroProgetto().equals("62976")) { - List controlli = ControlloPraticaLocalServiceUtil.findByIntPratica(pratica - .getIntPraticaId()); - for (ControlloPratica controllo : controlli) { - ControlloPraticaLocalServiceUtil.deleteControlloPratica(controllo); - } - - DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(pratica - .getIntPraticaId()); - - ServiceContext serviceContext = new ServiceContext(); - serviceContext.setCompanyId(dettPratica.getCompanyId()); - serviceContext.setScopeGroupId(dettPratica.getGroupId()); - serviceContext.setUserId(dettPratica.getUserId()); - - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.addControlloPratica( - pratica.getGroupId(), pratica.getUserId(), pratica.getIntPraticaId(), - dettPratica.getDettPraticaId(), true, serviceContext); - } - } - return esito; - } } 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 507a23bc..e67cedbe 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 @@ -128,9 +128,9 @@ public class PortosAdministrationPortlet extends MVCPortlet { // avvioWorkflowSorteggiate(); } - public void pulisciDatabase(ActionRequest actionRequest, ActionResponse actionResponse) { + public void testInterno(ActionRequest actionRequest, ActionResponse actionResponse) { ThemeDisplay td = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); - List esito = PuliziaDatabase.pulisci(td.getCompanyId()); + List esito = SismicaUtil.testInterno(td.getCompanyId()); 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 872adba9..18aa73c4 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 @@ -130,333 +130,337 @@ public class IntPraticaLocalServiceClpInvoker { _methodParameterTypes199 = new String[] { "java.lang.String" }; - _methodName204 = "findSorteggiabili"; + _methodName204 = "findSorteggiabiliNew"; _methodParameterTypes204 = new String[] { "long", "java.util.Date" }; - _methodName205 = "addIntPratica"; + _methodName205 = "findSorteggiabili"; - _methodParameterTypes205 = new String[] { + _methodParameterTypes205 = new String[] { "long", "java.util.Date" }; + + _methodName206 = "addIntPratica"; + + _methodParameterTypes206 = new String[] { "long", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName206 = "addIntPratica"; + _methodName207 = "addIntPratica"; - _methodParameterTypes206 = new String[] { + _methodParameterTypes207 = new String[] { "long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.util.Date", "java.lang.String", "java.lang.String", "boolean", "int", "java.util.Date", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName207 = "clearDb"; + _methodName208 = "clearDb"; - _methodParameterTypes207 = new String[] { }; + _methodParameterTypes208 = new String[] { }; - _methodName208 = "deleteIntPratica"; + _methodName209 = "deleteIntPratica"; - _methodParameterTypes208 = new String[] { + _methodParameterTypes209 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "boolean" }; - _methodName209 = "deleteIntPratica"; + _methodName210 = "deleteIntPratica"; - _methodParameterTypes209 = new String[] { + _methodParameterTypes210 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica" }; - _methodName210 = "cloneIntPratica"; + _methodName211 = "cloneIntPratica"; - _methodParameterTypes210 = new String[] { + _methodParameterTypes211 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName212 = "updateDelegati"; + _methodName213 = "updateDelegati"; - _methodParameterTypes212 = new String[] { + _methodParameterTypes213 = new String[] { "long", "java.lang.String", "java.lang.String", "boolean" }; - _methodName213 = "fetchIntPratica"; + _methodName214 = "fetchIntPratica"; - _methodParameterTypes213 = new String[] { "long" }; + _methodParameterTypes214 = new String[] { "long" }; - _methodName214 = "findFascicoliNotProgetto"; + _methodName215 = "findFascicoliNotProgetto"; - _methodParameterTypes214 = new String[] { "int", "int" }; + _methodParameterTypes215 = new String[] { "int", "int" }; - _methodName215 = "countFascicoliNotProgetto"; + _methodName216 = "countFascicoliNotProgetto"; - _methodParameterTypes215 = new String[] { }; + _methodParameterTypes216 = new String[] { }; - _methodName217 = "addNumeroProgetto"; + _methodName218 = "addNumeroProgetto"; - _methodParameterTypes217 = new String[] { "long" }; + _methodParameterTypes218 = new String[] { "long" }; - _methodName219 = "sospendiPratica"; + _methodName220 = "sospendiPratica"; - _methodParameterTypes219 = new String[] { "long", "boolean" }; + _methodParameterTypes220 = new String[] { "long", "boolean" }; - _methodName220 = "cambiaTitolare"; + _methodName221 = "cambiaTitolare"; - _methodParameterTypes220 = new String[] { + _methodParameterTypes221 = new String[] { "long", "long", "com.liferay.portal.service.ServiceContext" }; - _methodName221 = "updateStatoPratica"; + _methodName222 = "updateStatoPratica"; - _methodParameterTypes221 = new String[] { + _methodParameterTypes222 = new String[] { "long", "long", "java.lang.String" }; - _methodName223 = "updateIntPraticaSorteggio"; + _methodName224 = "updateIntPraticaSorteggio"; - _methodParameterTypes223 = new String[] { "long", "java.util.Date" }; + _methodParameterTypes224 = new String[] { "long", "java.util.Date" }; - _methodName224 = "updateIntPraticaSorteggio"; + _methodName225 = "updateIntPraticaSorteggio"; - _methodParameterTypes224 = new String[] { + _methodParameterTypes225 = new String[] { "long", "java.util.Date", "java.lang.String" }; - _methodName225 = "findByC_UserId"; - - _methodParameterTypes225 = new String[] { "long", "long", "int", "int" }; + _methodName226 = "findByC_UserId"; - _methodName226 = "countByC_UserId"; + _methodParameterTypes226 = new String[] { "long", "long", "int", "int" }; - _methodParameterTypes226 = new String[] { "long", "long" }; + _methodName227 = "countByC_UserId"; - _methodName227 = "fetchByOldIntPraticaId"; + _methodParameterTypes227 = new String[] { "long", "long" }; - _methodParameterTypes227 = new String[] { "long" }; + _methodName228 = "fetchByOldIntPraticaId"; - _methodName228 = "updateStatus"; + _methodParameterTypes228 = new String[] { "long" }; - _methodParameterTypes228 = new String[] { "long", "int" }; + _methodName229 = "updateStatus"; - _methodName229 = "findByCompanyIdSoggettoProgetti"; + _methodParameterTypes229 = new String[] { "long", "int" }; - _methodParameterTypes229 = new String[] { "long", "long" }; - - _methodName230 = "countByCompanyIdSoggettoProgetti"; + _methodName230 = "findByCompanyIdSoggettoProgetti"; _methodParameterTypes230 = new String[] { "long", "long" }; - _methodName232 = "findByCompanyIdSoggettoArchivio"; + _methodName231 = "countByCompanyIdSoggettoProgetti"; - _methodParameterTypes232 = new String[] { "long", "long" }; + _methodParameterTypes231 = new String[] { "long", "long" }; - _methodName233 = "countByCompanyIdSoggettoArchivio"; + _methodName233 = "findByCompanyIdSoggettoArchivio"; _methodParameterTypes233 = new String[] { "long", "long" }; - _methodName235 = "findByCompanyIdSoggettoAltriProgetti"; + _methodName234 = "countByCompanyIdSoggettoArchivio"; + + _methodParameterTypes234 = new String[] { "long", "long" }; + + _methodName236 = "findByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes235 = new String[] { "long", "long", "int", "int" }; + _methodParameterTypes236 = new String[] { "long", "long", "int", "int" }; - _methodName236 = "countByCompanyIdSoggettoAltriProgetti"; + _methodName237 = "countByCompanyIdSoggettoAltriProgetti"; - _methodParameterTypes236 = new String[] { "long", "long" }; + _methodParameterTypes237 = new String[] { "long", "long" }; - _methodName238 = "findByCanAddFineLavori"; + _methodName239 = "findByCanAddFineLavori"; - _methodParameterTypes238 = new String[] { + _methodParameterTypes239 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName239 = "countByCanAddFineLavori"; + _methodName240 = "countByCanAddFineLavori"; - _methodParameterTypes239 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes240 = new String[] { "long", "java.lang.String" }; - _methodName241 = "findByCanAddCollaudo"; + _methodName242 = "findByCanAddCollaudo"; - _methodParameterTypes241 = new String[] { + _methodParameterTypes242 = new String[] { "long", "java.lang.String", "int", "int" }; - _methodName242 = "countByCanAddCollaudo"; + _methodName243 = "countByCanAddCollaudo"; - _methodParameterTypes242 = new String[] { "long", "java.lang.String" }; + _methodParameterTypes243 = new String[] { "long", "java.lang.String" }; - _methodName244 = "search"; + _methodName245 = "search"; - _methodParameterTypes244 = new String[] { "java.util.List", "int", "int" }; + _methodParameterTypes245 = new String[] { "java.util.List", "int", "int" }; - _methodName245 = "countSearch"; + _methodName246 = "countSearch"; - _methodParameterTypes245 = new String[] { "java.util.List" }; + _methodParameterTypes246 = new String[] { "java.util.List" }; - _methodName246 = "searchWithIntPraticaId"; + _methodName247 = "searchWithIntPraticaId"; - _methodParameterTypes246 = new String[] { + _methodParameterTypes247 = new String[] { "java.util.List", "long", "int", "int" }; - _methodName247 = "countSearchWithIntPraticaId"; + _methodName248 = "countSearchWithIntPraticaId"; - _methodParameterTypes247 = new String[] { "java.util.List", "long" }; + _methodParameterTypes248 = new String[] { "java.util.List", "long" }; - _methodName248 = "allegaFileAnnullamento"; + _methodName249 = "allegaFileAnnullamento"; - _methodParameterTypes248 = new String[] { + _methodParameterTypes249 = new String[] { "long", "byte[][]", "java.lang.String", "java.lang.String", "com.liferay.portal.service.ServiceContext" }; - _methodName249 = "generateFileAnnullamento"; + _methodName250 = "generateFileAnnullamento"; - _methodParameterTypes249 = new String[] { + _methodParameterTypes250 = new String[] { "long", "com.liferay.portal.service.ServiceContext" }; - _methodName250 = "deleteFileAnnullamento"; + _methodName251 = "deleteFileAnnullamento"; - _methodParameterTypes250 = new String[] { "long" }; + _methodParameterTypes251 = new String[] { "long" }; - _methodName251 = "completeAnnullamento"; + _methodName252 = "completeAnnullamento"; - _methodParameterTypes251 = new String[] { "long" }; + _methodParameterTypes252 = new String[] { "long" }; - _methodName252 = "cambiaIstruttore"; + _methodName253 = "cambiaIstruttore"; - _methodParameterTypes252 = new String[] { "long", "long", "long" }; + _methodParameterTypes253 = new String[] { "long", "long", "long" }; - _methodName253 = "countCaricoLavoroCF"; + _methodName254 = "countCaricoLavoroCF"; - _methodParameterTypes253 = new String[] { + _methodParameterTypes254 = new String[] { "long", "java.lang.String", "java.lang.Boolean", "java.lang.Long[][]" }; - _methodName254 = "countCaricoLavoroIstruttore"; + _methodName255 = "countCaricoLavoroIstruttore"; - _methodParameterTypes254 = new String[] { + _methodParameterTypes255 = new String[] { "long", "java.lang.String", "java.lang.Boolean" }; - _methodName255 = "generateReportPratica"; + _methodName256 = "generateReportPratica"; - _methodParameterTypes255 = new String[] { + _methodParameterTypes256 = new String[] { "it.tref.liferay.portos.bo.model.IntPratica", "long" }; - _methodName256 = "updateModifiedDate"; - - _methodParameterTypes256 = new String[] { "long", "java.util.Date" }; - - _methodName257 = "countAutorizzazione"; + _methodName257 = "updateModifiedDate"; - _methodParameterTypes257 = new String[] { - "java.util.Date", "java.util.Date", "long" - }; + _methodParameterTypes257 = new String[] { "long", "java.util.Date" }; - _methodName258 = "countSanatorie"; + _methodName258 = "countAutorizzazione"; _methodParameterTypes258 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName259 = "countOpereMinoreImportanza"; + _methodName259 = "countSanatorie"; _methodParameterTypes259 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName260 = "countDeposito"; + _methodName260 = "countOpereMinoreImportanza"; _methodParameterTypes260 = new String[] { - "java.util.Date", "java.util.Date", "long", "boolean" + "java.util.Date", "java.util.Date", "long" }; - _methodName261 = "countVidimate"; + _methodName261 = "countDeposito"; _methodParameterTypes261 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String", - "boolean" + "java.util.Date", "java.util.Date", "long", "boolean" }; - _methodName262 = "countControllo"; + _methodName262 = "countVidimate"; _methodParameterTypes262 = new String[] { "java.util.Date", "java.util.Date", "long", "java.lang.String", "boolean" }; - _methodName263 = "importaVecchiFilesFascicolo"; + _methodName263 = "countControllo"; - _methodParameterTypes263 = new String[] { "long", "int", "int" }; + _methodParameterTypes263 = new String[] { + "java.util.Date", "java.util.Date", "long", "java.lang.String", + "boolean" + }; - _methodName264 = "findIntPraticaNotExist"; + _methodName264 = "importaVecchiFilesFascicolo"; - _methodParameterTypes264 = new String[] { }; + _methodParameterTypes264 = new String[] { "long", "int", "int" }; - _methodName265 = "riparaWorkflow"; + _methodName265 = "findIntPraticaNotExist"; _methodParameterTypes265 = new String[] { }; - _methodName266 = "reIndexFasciolo"; + _methodName266 = "riparaWorkflow"; - _methodParameterTypes266 = new String[] { "java.lang.String", "long" }; + _methodParameterTypes266 = new String[] { }; _methodName267 = "reIndexFasciolo"; - _methodParameterTypes267 = new String[] { "long", "long" }; + _methodParameterTypes267 = new String[] { "java.lang.String", "long" }; - _methodName269 = "trovaDoppioni"; + _methodName268 = "reIndexFasciolo"; - _methodParameterTypes269 = new String[] { }; + _methodParameterTypes268 = new String[] { "long", "long" }; - _methodName270 = "findByNumeroProgetto"; + _methodName270 = "trovaDoppioni"; - _methodParameterTypes270 = new String[] { "java.lang.String" }; + _methodParameterTypes270 = new String[] { }; - _methodName271 = "findByTerritorioId"; + _methodName271 = "findByNumeroProgetto"; - _methodParameterTypes271 = new String[] { "long" }; + _methodParameterTypes271 = new String[] { "java.lang.String" }; - _methodName272 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; + _methodName272 = "findByTerritorioId"; - _methodParameterTypes272 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" - }; + _methodParameterTypes272 = new String[] { "long" }; - _methodName273 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; + _methodName273 = "reportTempisticheIstruttorieAvvisiAutorizzazioni"; _methodParameterTypes273 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName274 = "reportPraticheVidimate"; + _methodName274 = "reportTempisticheIstruttorieCalcolaDataSorteggio"; _methodParameterTypes274 = new String[] { - "java.util.Date", "java.util.Date", "long", "java.lang.String" + "java.util.Date", "java.util.Date", "long" }; - _methodName275 = "reportPraticheVidimateCalcolaDataSorteggio"; + _methodName275 = "reportPraticheVidimate"; _methodParameterTypes275 = new String[] { - "java.util.Date", "java.util.Date", "long" + "java.util.Date", "java.util.Date", "long", "java.lang.String" }; - _methodName276 = "countIngressiAutorizzazioni"; + _methodName276 = "reportPraticheVidimateCalcolaDataSorteggio"; _methodParameterTypes276 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName277 = "countIngressiDepositi"; + _methodName277 = "countIngressiAutorizzazioni"; _methodParameterTypes277 = new String[] { "java.util.Date", "java.util.Date", "long" }; - _methodName278 = "countIngressiCO"; + _methodName278 = "countIngressiDepositi"; _methodParameterTypes278 = new String[] { "java.util.Date", "java.util.Date", "long" }; + + _methodName279 = "countIngressiCO"; + + _methodParameterTypes279 = new String[] { + "java.util.Date", "java.util.Date", "long" + }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -586,19 +590,25 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName204.equals(name) && Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { - return IntPraticaLocalServiceUtil.findSorteggiabili(((Long)arguments[0]).longValue(), + return IntPraticaLocalServiceUtil.findSorteggiabiliNew(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } if (_methodName205.equals(name) && Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { + return IntPraticaLocalServiceUtil.findSorteggiabili(((Long)arguments[0]).longValue(), + (java.util.Date)arguments[1]); + } + + if (_methodName206.equals(name) && + Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { + if (_methodName207.equals(name) && + Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { return IntPraticaLocalServiceUtil.addIntPratica(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Long)arguments[3]).longValue(), @@ -611,238 +621,238 @@ public class IntPraticaLocalServiceClpInvoker { (com.liferay.portal.service.ServiceContext)arguments[12]); } - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { + if (_methodName208.equals(name) && + Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { IntPraticaLocalServiceUtil.clearDb(); return null; } - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { + if (_methodName209.equals(name) && + Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], ((Boolean)arguments[1]).booleanValue()); } - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { + if (_methodName210.equals(name) && + Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { return IntPraticaLocalServiceUtil.deleteIntPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0]); } - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { + if (_methodName211.equals(name) && + Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { return IntPraticaLocalServiceUtil.cloneIntPratica(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName212.equals(name) && - Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) { + if (_methodName213.equals(name) && + Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { return IntPraticaLocalServiceUtil.updateDelegati(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Boolean)arguments[3]).booleanValue()); } - if (_methodName213.equals(name) && - Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) { + if (_methodName214.equals(name) && + Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchIntPratica(((Long)arguments[0]).longValue()); } - if (_methodName214.equals(name) && - Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) { + if (_methodName215.equals(name) && + Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { return IntPraticaLocalServiceUtil.findFascicoliNotProgetto(((Integer)arguments[0]).intValue(), ((Integer)arguments[1]).intValue()); } - if (_methodName215.equals(name) && - Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { + if (_methodName216.equals(name) && + Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { return IntPraticaLocalServiceUtil.countFascicoliNotProgetto(); } - if (_methodName217.equals(name) && - Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { + if (_methodName218.equals(name) && + Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { return IntPraticaLocalServiceUtil.addNumeroProgetto(((Long)arguments[0]).longValue()); } - if (_methodName219.equals(name) && - Arrays.deepEquals(_methodParameterTypes219, parameterTypes)) { + if (_methodName220.equals(name) && + Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { return IntPraticaLocalServiceUtil.sospendiPratica(((Long)arguments[0]).longValue(), ((Boolean)arguments[1]).booleanValue()); } - if (_methodName220.equals(name) && - Arrays.deepEquals(_methodParameterTypes220, parameterTypes)) { + if (_methodName221.equals(name) && + Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { return IntPraticaLocalServiceUtil.cambiaTitolare(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[2]); } - if (_methodName221.equals(name) && - Arrays.deepEquals(_methodParameterTypes221, parameterTypes)) { + if (_methodName222.equals(name) && + Arrays.deepEquals(_methodParameterTypes222, parameterTypes)) { return IntPraticaLocalServiceUtil.updateStatoPratica(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]); } - if (_methodName223.equals(name) && - Arrays.deepEquals(_methodParameterTypes223, parameterTypes)) { + if (_methodName224.equals(name) && + Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1]); } - if (_methodName224.equals(name) && - Arrays.deepEquals(_methodParameterTypes224, parameterTypes)) { + if (_methodName225.equals(name) && + Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { return IntPraticaLocalServiceUtil.updateIntPraticaSorteggio(((Long)arguments[0]).longValue(), (java.util.Date)arguments[1], (java.lang.String)arguments[2]); } - if (_methodName225.equals(name) && - Arrays.deepEquals(_methodParameterTypes225, parameterTypes)) { + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { return IntPraticaLocalServiceUtil.findByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName226.equals(name) && - Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { return IntPraticaLocalServiceUtil.countByC_UserId(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName227.equals(name) && - Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { return IntPraticaLocalServiceUtil.fetchByOldIntPraticaId(((Long)arguments[0]).longValue()); } - if (_methodName228.equals(name) && - Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + if (_methodName229.equals(name) && + Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { IntPraticaLocalServiceUtil.updateStatus(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue()); return null; } - if (_methodName229.equals(name) && - Arrays.deepEquals(_methodParameterTypes229, parameterTypes)) { + if (_methodName230.equals(name) && + Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName230.equals(name) && - Arrays.deepEquals(_methodParameterTypes230, parameterTypes)) { + if (_methodName231.equals(name) && + Arrays.deepEquals(_methodParameterTypes231, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName232.equals(name) && - Arrays.deepEquals(_methodParameterTypes232, parameterTypes)) { + if (_methodName233.equals(name) && + Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName233.equals(name) && - Arrays.deepEquals(_methodParameterTypes233, parameterTypes)) { + if (_methodName234.equals(name) && + Arrays.deepEquals(_methodParameterTypes234, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoArchivio(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName235.equals(name) && - Arrays.deepEquals(_methodParameterTypes235, parameterTypes)) { + if (_methodName236.equals(name) && + Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName236.equals(name) && - Arrays.deepEquals(_methodParameterTypes236, parameterTypes)) { + if (_methodName237.equals(name) && + Arrays.deepEquals(_methodParameterTypes237, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCompanyIdSoggettoAltriProgetti(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); } - if (_methodName238.equals(name) && - Arrays.deepEquals(_methodParameterTypes238, parameterTypes)) { + if (_methodName239.equals(name) && + Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName239.equals(name) && - Arrays.deepEquals(_methodParameterTypes239, parameterTypes)) { + if (_methodName240.equals(name) && + Arrays.deepEquals(_methodParameterTypes240, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddFineLavori(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName241.equals(name) && - Arrays.deepEquals(_methodParameterTypes241, parameterTypes)) { + if (_methodName242.equals(name) && + Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { return IntPraticaLocalServiceUtil.findByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName242.equals(name) && - Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { + if (_methodName243.equals(name) && + Arrays.deepEquals(_methodParameterTypes243, parameterTypes)) { return IntPraticaLocalServiceUtil.countByCanAddCollaudo(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1]); } - if (_methodName244.equals(name) && - Arrays.deepEquals(_methodParameterTypes244, parameterTypes)) { + if (_methodName245.equals(name) && + Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { return IntPraticaLocalServiceUtil.search((java.util.List)arguments[0], ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); } - if (_methodName245.equals(name) && - Arrays.deepEquals(_methodParameterTypes245, parameterTypes)) { + if (_methodName246.equals(name) && + Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearch((java.util.List)arguments[0]); } - if (_methodName246.equals(name) && - Arrays.deepEquals(_methodParameterTypes246, parameterTypes)) { + if (_methodName247.equals(name) && + Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { return IntPraticaLocalServiceUtil.searchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue(), ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue()); } - if (_methodName247.equals(name) && - Arrays.deepEquals(_methodParameterTypes247, parameterTypes)) { + if (_methodName248.equals(name) && + Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { return IntPraticaLocalServiceUtil.countSearchWithIntPraticaId((java.util.List)arguments[0], ((Long)arguments[1]).longValue()); } - if (_methodName248.equals(name) && - Arrays.deepEquals(_methodParameterTypes248, parameterTypes)) { + if (_methodName249.equals(name) && + Arrays.deepEquals(_methodParameterTypes249, 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 (_methodName249.equals(name) && - Arrays.deepEquals(_methodParameterTypes249, parameterTypes)) { + if (_methodName250.equals(name) && + Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { return IntPraticaLocalServiceUtil.generateFileAnnullamento(((Long)arguments[0]).longValue(), (com.liferay.portal.service.ServiceContext)arguments[1]); } - if (_methodName250.equals(name) && - Arrays.deepEquals(_methodParameterTypes250, parameterTypes)) { + if (_methodName251.equals(name) && + Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { IntPraticaLocalServiceUtil.deleteFileAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName251.equals(name) && - Arrays.deepEquals(_methodParameterTypes251, parameterTypes)) { + if (_methodName252.equals(name) && + Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { IntPraticaLocalServiceUtil.completeAnnullamento(((Long)arguments[0]).longValue()); return null; } - if (_methodName252.equals(name) && - Arrays.deepEquals(_methodParameterTypes252, parameterTypes)) { + if (_methodName253.equals(name) && + Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { IntPraticaLocalServiceUtil.cambiaIstruttore(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue(), ((Long)arguments[2]).longValue()); @@ -850,67 +860,59 @@ public class IntPraticaLocalServiceClpInvoker { return null; } - if (_methodName253.equals(name) && - Arrays.deepEquals(_methodParameterTypes253, parameterTypes)) { + if (_methodName254.equals(name) && + Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { return IntPraticaLocalServiceUtil.countCaricoLavoroCF(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2], (java.lang.Long[])arguments[3]); } - if (_methodName254.equals(name) && - Arrays.deepEquals(_methodParameterTypes254, parameterTypes)) { - return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); - } - if (_methodName255.equals(name) && Arrays.deepEquals(_methodParameterTypes255, parameterTypes)) { - return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], - ((Long)arguments[1]).longValue()); + return IntPraticaLocalServiceUtil.countCaricoLavoroIstruttore(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.Boolean)arguments[2]); } if (_methodName256.equals(name) && Arrays.deepEquals(_methodParameterTypes256, parameterTypes)) { - return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), - (java.util.Date)arguments[1]); + return IntPraticaLocalServiceUtil.generateReportPratica((it.tref.liferay.portos.bo.model.IntPratica)arguments[0], + ((Long)arguments[1]).longValue()); } if (_methodName257.equals(name) && Arrays.deepEquals(_methodParameterTypes257, parameterTypes)) { - return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.updateModifiedDate(((Long)arguments[0]).longValue(), + (java.util.Date)arguments[1]); } if (_methodName258.equals(name) && Arrays.deepEquals(_methodParameterTypes258, parameterTypes)) { - return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countAutorizzazione((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName259.equals(name) && Arrays.deepEquals(_methodParameterTypes259, parameterTypes)) { - return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countSanatorie((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName260.equals(name) && Arrays.deepEquals(_methodParameterTypes260, parameterTypes)) { - return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - ((Boolean)arguments[3]).booleanValue()); + return IntPraticaLocalServiceUtil.countOpereMinoreImportanza((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName261.equals(name) && Arrays.deepEquals(_methodParameterTypes261, parameterTypes)) { - return IntPraticaLocalServiceUtil.countVidimate((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countDeposito((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3], - ((Boolean)arguments[4]).booleanValue()); + ((Boolean)arguments[3]).booleanValue()); } if (_methodName262.equals(name) && Arrays.deepEquals(_methodParameterTypes262, parameterTypes)) { - return IntPraticaLocalServiceUtil.countControllo((java.util.Date)arguments[0], + 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()); @@ -918,92 +920,100 @@ public class IntPraticaLocalServiceClpInvoker { if (_methodName263.equals(name) && Arrays.deepEquals(_methodParameterTypes263, parameterTypes)) { - return IntPraticaLocalServiceUtil.importaVecchiFilesFascicolo(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue()); + 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 (_methodName264.equals(name) && Arrays.deepEquals(_methodParameterTypes264, parameterTypes)) { - return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); + return IntPraticaLocalServiceUtil.importaVecchiFilesFascicolo(((Long)arguments[0]).longValue(), + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue()); } if (_methodName265.equals(name) && Arrays.deepEquals(_methodParameterTypes265, parameterTypes)) { - return IntPraticaLocalServiceUtil.riparaWorkflow(); + return IntPraticaLocalServiceUtil.findIntPraticaNotExist(); } if (_methodName266.equals(name) && Arrays.deepEquals(_methodParameterTypes266, parameterTypes)) { + return IntPraticaLocalServiceUtil.riparaWorkflow(); + } + + if (_methodName267.equals(name) && + Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo((java.lang.String)arguments[0], ((Long)arguments[1]).longValue()); return null; } - if (_methodName267.equals(name) && - Arrays.deepEquals(_methodParameterTypes267, parameterTypes)) { + if (_methodName268.equals(name) && + Arrays.deepEquals(_methodParameterTypes268, parameterTypes)) { IntPraticaLocalServiceUtil.reIndexFasciolo(((Long)arguments[0]).longValue(), ((Long)arguments[1]).longValue()); return null; } - if (_methodName269.equals(name) && - Arrays.deepEquals(_methodParameterTypes269, parameterTypes)) { - return IntPraticaLocalServiceUtil.trovaDoppioni(); - } - if (_methodName270.equals(name) && Arrays.deepEquals(_methodParameterTypes270, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); + return IntPraticaLocalServiceUtil.trovaDoppioni(); } if (_methodName271.equals(name) && Arrays.deepEquals(_methodParameterTypes271, parameterTypes)) { - return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); + return IntPraticaLocalServiceUtil.findByNumeroProgetto((java.lang.String)arguments[0]); } if (_methodName272.equals(name) && Arrays.deepEquals(_methodParameterTypes272, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3]); + return IntPraticaLocalServiceUtil.findByTerritorioId(((Long)arguments[0]).longValue()); } if (_methodName273.equals(name) && Arrays.deepEquals(_methodParameterTypes273, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieAvvisiAutorizzazioni((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3]); } if (_methodName274.equals(name) && Arrays.deepEquals(_methodParameterTypes274, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), - (java.lang.String)arguments[3]); + return IntPraticaLocalServiceUtil.reportTempisticheIstruttorieCalcolaDataSorteggio((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName275.equals(name) && Arrays.deepEquals(_methodParameterTypes275, parameterTypes)) { - return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], - (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + return IntPraticaLocalServiceUtil.reportPraticheVidimate((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue(), + (java.lang.String)arguments[3]); } if (_methodName276.equals(name) && Arrays.deepEquals(_methodParameterTypes276, parameterTypes)) { - return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.reportPraticheVidimateCalcolaDataSorteggio((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName277.equals(name) && Arrays.deepEquals(_methodParameterTypes277, parameterTypes)) { - return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], + return IntPraticaLocalServiceUtil.countIngressiAutorizzazioni((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } if (_methodName278.equals(name) && Arrays.deepEquals(_methodParameterTypes278, parameterTypes)) { + return IntPraticaLocalServiceUtil.countIngressiDepositi((java.util.Date)arguments[0], + (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); + } + + if (_methodName279.equals(name) && + Arrays.deepEquals(_methodParameterTypes279, parameterTypes)) { return IntPraticaLocalServiceUtil.countIngressiCO((java.util.Date)arguments[0], (java.util.Date)arguments[1], ((Long)arguments[2]).longValue()); } @@ -1069,24 +1079,24 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes209; private String _methodName210; private String[] _methodParameterTypes210; - private String _methodName212; - private String[] _methodParameterTypes212; + private String _methodName211; + private String[] _methodParameterTypes211; private String _methodName213; private String[] _methodParameterTypes213; private String _methodName214; private String[] _methodParameterTypes214; private String _methodName215; private String[] _methodParameterTypes215; - private String _methodName217; - private String[] _methodParameterTypes217; - private String _methodName219; - private String[] _methodParameterTypes219; + private String _methodName216; + private String[] _methodParameterTypes216; + private String _methodName218; + private String[] _methodParameterTypes218; private String _methodName220; private String[] _methodParameterTypes220; private String _methodName221; private String[] _methodParameterTypes221; - private String _methodName223; - private String[] _methodParameterTypes223; + private String _methodName222; + private String[] _methodParameterTypes222; private String _methodName224; private String[] _methodParameterTypes224; private String _methodName225; @@ -1101,24 +1111,24 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes229; private String _methodName230; private String[] _methodParameterTypes230; - private String _methodName232; - private String[] _methodParameterTypes232; + private String _methodName231; + private String[] _methodParameterTypes231; private String _methodName233; private String[] _methodParameterTypes233; - private String _methodName235; - private String[] _methodParameterTypes235; + private String _methodName234; + private String[] _methodParameterTypes234; private String _methodName236; private String[] _methodParameterTypes236; - private String _methodName238; - private String[] _methodParameterTypes238; + private String _methodName237; + private String[] _methodParameterTypes237; private String _methodName239; private String[] _methodParameterTypes239; - private String _methodName241; - private String[] _methodParameterTypes241; + private String _methodName240; + private String[] _methodParameterTypes240; private String _methodName242; private String[] _methodParameterTypes242; - private String _methodName244; - private String[] _methodParameterTypes244; + private String _methodName243; + private String[] _methodParameterTypes243; private String _methodName245; private String[] _methodParameterTypes245; private String _methodName246; @@ -1165,8 +1175,8 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes266; private String _methodName267; private String[] _methodParameterTypes267; - private String _methodName269; - private String[] _methodParameterTypes269; + private String _methodName268; + private String[] _methodParameterTypes268; private String _methodName270; private String[] _methodParameterTypes270; private String _methodName271; @@ -1185,4 +1195,6 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes277; private String _methodName278; private String[] _methodParameterTypes278; + private String _methodName279; + private String[] _methodParameterTypes279; } \ 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/ControlloPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java index b11f2528..ec05fea2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java @@ -12,11 +12,13 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.util.SismicaUtil; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Tempistica; +import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; @@ -48,6 +50,7 @@ import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil; import com.liferay.portal.kernel.dao.orm.Order; import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil; +import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; @@ -61,6 +64,7 @@ import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.IndexerRegistryUtil; import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.GetterUtil; +import com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.workflow.WorkflowHandlerRegistryUtil; @@ -212,7 +216,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi entry.getGroupId(), ControlloPratica.class.getName(), entry.getControlloPraticaId()); controlloPraticaPersistence.remove(entry); - + return entry; } @@ -750,162 +754,80 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi return controlloPraticaPersistence.findByIntPraticaId(intPraticaId); } - public long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, + public Long calculateDateAvvioProcedimento(long controlloPraticaId) throws SystemException, PortalException { - - long giorni = 0; - - ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil + ControlloPratica controllo = ControlloPraticaLocalServiceUtil .fetchControlloPratica(controlloPraticaId); - - Long intPraticaId = controlloPratica.getIntPraticaId(); - - List tempisticaList = TempisticaLocalServiceUtil.findByIntPratica_Tipo(intPraticaId, - TempisticaConstants.TIPO_PRATICA); - - if (tempisticaList != null && tempisticaList.size() > 0) { - Tempistica temp = null; - - for (Iterator iterator = tempisticaList.iterator(); iterator.hasNext();) { - Tempistica tempistica = (Tempistica) iterator.next(); - if (temp == null || temp.getCreateDate().before(tempistica.getCreateDate())) - temp = tempistica; + IntPratica pratica = IntPraticaLocalServiceUtil.fetchIntPratica(controllo.getIntPraticaId()); + + Long giorni = SismicaUtil.daysPast(pratica.getDtPratica()); + + if (Validator.isNotNull(giorni)) { + List avvisi = AvvisoLocalServiceUtil.findByIntPratica(pratica.getIntPraticaId(), + QueryUtil.ALL_POS, QueryUtil.ALL_POS, OrderByComparatorFactoryUtil + .getOrderByComparatorFactory().create("portos_bo_Avviso", "dtAvviso", true)); + Date start = null; + Date end = null; + // _log.info("Pratica " + pratica.getNumeroProgetto()); + for (Avviso avviso : avvisi) { + if (!avviso.isAnnullato()) { + // _log.info("Avviso " + avviso.getTipoDocumento() + " " + + // avviso.getDtAvviso()); + if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.INTEGRAZIONE)) { + start = avviso.getDtInvio(); + end = null; + _log.info("start = " + start + ", pratica " + pratica.getNumeroProgetto()); + } else if (avviso.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) { + end = avviso.getDtAvviso(); + // _log.info("end = " + end + " (" + start + ")"); + } + } + if (Validator.isNotNull(start) && Validator.isNotNull(end)) { + Long diff = SismicaUtil.daysBetween(start, end); + _log.info("Differenza: " + diff + ", pratica " + pratica.getNumeroProgetto()); + start = end = null; + } else { + // _log.info(start + " --- " + end); + } } - - long giorniMillisecFormat = 0; - if (temp.getStop() > 0) - giorniMillisecFormat = temp.getStop() - (temp.getStart() + temp.getWait()); - else if (temp.getStop() == 0) - giorniMillisecFormat = System.currentTimeMillis() - (temp.getStart() + temp.getWait()); - - giorni = TimeUnit.DAYS.convert(giorniMillisecFormat, TimeUnit.MILLISECONDS); } return giorni; } - // public long calculateDateAvvioProcedimento(long controlloPraticaId) - // throws SystemException, PortalException{ - // - // long giorni = 0; - // - // ControlloPratica controlloPratica = - // ControlloPraticaLocalServiceUtil.fetchControlloPratica(controlloPraticaId); - // - // Date avvioProcedimento = controlloPratica.getCreateDate(); - // - // int sort = 0; - // - // List events = new ArrayList(); - // - // List pratiche = - // DettPraticaLocalServiceUtil.findByIntPraticaId(controlloPratica.getIntPraticaId()); - // for(DettPratica dettPratica: pratiche){ - // if(dettPratica.getTipoIntegrazione() != null && - // dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)){ - // - // - // Date dataEvento = dettPratica.getDataEffettuazione(); - // if(Validator.isNotNull(dataEvento)){ - // String tipoEvento = CronostoriaUtil.TIPO_UTENTE; - // String tipoIntegrazione = - // Validator.isNull(dettPratica.getTipoIntegrazione()) ? "Domanda" - // :dettPratica.getTipoIntegrazione(); - // String testoEvento ="Invio della "+tipoIntegrazione+" '"+ - // dettPratica.getTitle()+"'"; - // //testoEvento += " al Genio Civile"; - // String tipoLink = CronostoriaUtil.LINK; - // - // events.add(new - // CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink, new - // CronostoriaLink[]{new CronostoriaLink(CronostoriaTypeEnum.VIEW, "")})); - // - // } - // } - // } - // List avvisi = - // AvvisoLocalServiceUtil.findByIntPratica_Inviato(controlloPratica.getIntPraticaId(), - // AvvisoUtil.DOCUMENTO_INVIATO, QueryUtil.ALL_POS, QueryUtil.ALL_POS, - // null); - // for(Avviso avviso:avvisi){ - // Date dataEvento = avviso.getDtInvio(); - // - // if(Validator.isNotNull(avviso.getDtInvio())){ - // if(avviso.getTipoDocumento().equals("IN") || - // avviso.getTipoDocumento().equals("SP")){ - // - // String tipoEvento = CronostoriaUtil.TIPO_GENIO_CIVILE; - // String testoEvento = avviso.getFullDescription(); - // - // String tipoLink = CronostoriaUtil.DOWNLOAD; - // List links = new ArrayList(); - // - // String linkInvio = StringPool.BLANK; - // if(Validator.isNull(avviso.getFileEntryIdInvio()) && - // Validator.isNotNull(avviso.getOldAvvisoId())){ - // links.add(new CronostoriaLink(CronostoriaTypeEnum.IMPORT, linkInvio)); - // } - // - // events.add(new - // CronostoriaBean(dataEvento,tipoEvento,testoEvento,tipoLink, - // links.toArray(new CronostoriaLink[0]))); - // } - // } - // } - // - // Comparator comparator = null; - // comparator = new Comparator(){ - // public int compare(CronostoriaBean evento1,CronostoriaBean evento2){ - // return evento1.getDataEvento().compareTo(evento2.getDataEvento()); - // } - // }; - // - // Collections.sort(events,comparator); - // - // if(events != null && !events.isEmpty()){ - // for (int i = 0; i < events.size(); i++) { - // // if(i == 0){ - // // Date primaRichiesta = events.get(0).getDataEvento(); - // // long diff = primaRichiesta.getTime() - avvioProcedimento.getTime(); - // // long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - // // giorni = giorni + days; - // // } else { - // if((i % 2) == 0){ - // - // Date dateFrom = events.get(i).getDataEvento(); - // - // Date dateTo = null; - // int x = i + 1; - // - // if(events.size() > x){ - // dateTo = events.get((i + 1)).getDataEvento(); - // } else { - // dateTo = new Date(); - // } - // - // Date dateToTruncatedDate = DateUtils.truncate(dateTo, Calendar.DATE); - // Date dateFromTruncatedDate = DateUtils.truncate(dateFrom, Calendar.DATE); - // - // long diff = dateToTruncatedDate.getTime() - - // dateFromTruncatedDate.getTime(); - // long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - // giorni = giorni + days; - // - // } - // // } - // } - // - // } else { - // - // Date now = new Date(); - // - // long diff = now.getTime() - avvioProcedimento.getTime(); - // long days = TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS); - // giorni = giorni + days; - // } - // - // return giorni; - // } + /* + * public long calculateDateAvvioProcedimentoOld(long controlloPraticaId) + * throws SystemException, PortalException { + * + * long giorni = 0; + * + * ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil + * .fetchControlloPratica(controlloPraticaId); + * + * Long intPraticaId = controlloPratica.getIntPraticaId(); + * + * List tempisticaList = + * TempisticaLocalServiceUtil.findByIntPratica_Tipo(intPraticaId, + * TempisticaConstants.TIPO_PRATICA); + * + * if (tempisticaList != null && tempisticaList.size() > 0) { Tempistica + * temp = null; + * + * for (Iterator iterator = tempisticaList.iterator(); iterator.hasNext();) + * { Tempistica tempistica = (Tempistica) iterator.next(); if (temp == null + * || temp.getCreateDate().before(tempistica.getCreateDate())) temp = + * tempistica; } + * + * long giorniMillisecFormat = 0; if (temp.getStop() > 0) + * giorniMillisecFormat = temp.getStop() - (temp.getStart() + + * temp.getWait()); else if (temp.getStop() == 0) giorniMillisecFormat = + * System.currentTimeMillis() - (temp.getStart() + temp.getWait()); + * + * giorni = TimeUnit.DAYS.convert(giorniMillisecFormat, + * TimeUnit.MILLISECONDS); } + * + * return giorni; } + */ /** * ADT: gestione workflow varianti 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 8d1c8113..70df650c 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=2276 - build.date=1590494949598 + build.number=2279 + build.date=1590675408364 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 8b900b9c..f7932440 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 @@ -88,15 +88,15 @@ String dataProssimoSorteggio = - +
-
Pulizia Database v0.1
- +
Test interno
+
- +
@@ -110,17 +110,17 @@ String dataProssimoSorteggio =
- -
-
-
Invia comunicazione ATAP
- -
- -
-
-
-
+<%-- --%> + + + +<%-- --%> + +<%-- --%> + +<%-- --%> + + <% String[] esito = renderRequest.getParameterValues("esito");