From 694d2664ca0b5f202a4840bd2951c3b329b2465c Mon Sep 17 00:00:00 2001 From: Salvatore La Manna Date: Wed, 29 Sep 2021 12:14:38 +0200 Subject: [PATCH] Unita operativa zero --- .../RichiestaAccessoAttiLocalService.java | 6 +- .../RichiestaAccessoAttiLocalServiceClp.java | 14 +- .../RichiestaAccessoAttiLocalServiceUtil.java | 6 +- ...chiestaAccessoAttiLocalServiceWrapper.java | 6 +- ...estaAccessoAttiLocalServiceClpInvoker.java | 20 +- .../docroot/WEB-INF/src/service.properties | 4 +- .../html/accesso_atti_fe/visualizza-atto.jsp | 5 +- .../org.eclipse.wst.common.component | 1 + .../docroot/WEB-INF/liferay-portlet.xml | 4 +- .../docroot/WEB-INF/service.xml | 28 - .../portos/bo/model/Asseverazione.java | 11 + .../portos/bo/model/AsseverazioneClp.java | 57 + .../portos/bo/model/AsseverazioneWrapper.java | 22 +- .../liferay/portos/bo/model/Collaudo.java | 15 + .../liferay/portos/bo/model/CollaudoClp.java | 76 + .../portos/bo/model/CollaudoWrapper.java | 27 + .../liferay/portos/bo/model/DettPratica.java | 92 + .../portos/bo/model/DettPraticaClp.java | 472 +- .../portos/bo/model/DettPraticaWrapper.java | 164 + .../liferay/portos/bo/model/FineLavori.java | 16 + .../portos/bo/model/FineLavoriClp.java | 76 + .../portos/bo/model/FineLavoriWrapper.java | 28 + .../liferay/portos/bo/model/IntPratica.java | 115 + .../portos/bo/model/IntPraticaClp.java | 727 +- .../portos/bo/model/IntPraticaWrapper.java | 221 + .../bo/service/AsseverazioneLocalService.java | 97 +- .../service/AsseverazioneLocalServiceClp.java | 698 +- .../AsseverazioneLocalServiceUtil.java | 171 +- .../AsseverazioneLocalServiceWrapper.java | 181 +- .../bo/service/AsseverazioneService.java | 99 +- .../bo/service/AsseverazioneServiceClp.java | 861 +- .../bo/service/AsseverazioneServiceUtil.java | 174 +- .../service/AsseverazioneServiceWrapper.java | 182 +- .../bo/service/IntPraticaLocalService.java | 15 + .../bo/service/IntPraticaLocalServiceClp.java | 129 + .../service/IntPraticaLocalServiceUtil.java | 18 + .../IntPraticaLocalServiceWrapper.java | 24 + .../persistence/AsseverazionePersistence.java | 1060 +-- .../persistence/AsseverazioneUtil.java | 1751 +--- .../portos/bo/util/AsseverazioniUtil.java | 447 - .../portos/bo/util/AzioniPraticheUtil.java | 233 - .../liferay/portos/bo/util/DelegheUtil.java | 107 +- .../tref/liferay/portos/bo/util/MailUtil.java | 13 +- .../liferay/portos/bo/util/PraticaUtil.java | 8 +- .../bo/util/ValidazionePraticaUtil.java | 1199 --- .../liferay/portos/bo/util/WorkflowUtil.java | 5 +- .../bo/indexer/ControlloPraticaIndexer.java | 4 +- .../bo/indexer/IntPraticaIndexer.java | 6 +- .../ControlloPraticaAdvancedSearch.java | 22 +- .../bo/search/IntPraticaAdvancedSearch.java | 26 +- .../it/mwg/sismica/bo/util/SismicaUtil.java | 2 +- .../bo/model/impl/AsseverazioneImpl.java | 104 +- .../portos/bo/model/impl/CollaudoImpl.java | 77 +- .../portos/bo/model/impl/DettPraticaImpl.java | 1069 ++- .../portos/bo/model/impl/FineLavoriImpl.java | 76 +- .../portos/bo/model/impl/IntPraticaImpl.java | 413 + .../listener/DettPraticaModelListener.java | 2 +- .../portos/bo/portlet/FascicoloPortlet.java | 8 +- .../GestioneAttivitaIstruttorePortlet.java | 2 +- .../bo/portlet/GestioneAttivitaPortlet.java | 2 +- .../ReportAvvisoAllegatoBeanBuilder.java | 2 +- .../builder/ReportAvvisoBeanBuilder.java | 4 +- .../scheduler/SchedulerGeneraDocumento.java | 2 +- .../bo/scheduler/SchedulerInvioDocumento.java | 12 +- .../AsseverazioneLocalServiceClpInvoker.java | 314 +- .../base/AsseverazioneServiceClpInvoker.java | 327 +- .../IntPraticaLocalServiceClpInvoker.java | 51 + .../http/AsseverazioneServiceSoap.java | 307 +- .../impl/AsseverazioneLocalServiceImpl.java | 153 +- .../impl/AsseverazioneServiceImpl.java | 164 +- .../service/impl/AvvisoLocalServiceImpl.java | 3 +- .../impl/CollaudoLocalServiceImpl.java | 7 +- .../impl/ComunicazioneLocalServiceImpl.java | 12 +- .../ControlloPraticaLocalServiceImpl.java | 4 +- .../service/impl/DelegaLocalServiceImpl.java | 2 +- .../impl/DettPraticaLocalServiceImpl.java | 9 +- .../service/impl/DettPraticaServiceImpl.java | 7 +- .../impl/FineLavoriLocalServiceImpl.java | 7 +- .../impl/IntPraticaLocalServiceImpl.java | 39 +- .../service/impl/IntPraticaServiceImpl.java | 9 +- .../impl/SoggettoLocalServiceImpl.java | 4 +- .../AsseverazionePersistenceImpl.java | 7162 +++-------------- .../ControlloPraticaWorkflowHandler.java | 2 +- .../docroot/WEB-INF/src/service.properties | 4 +- .../amministrazione/tabs/territori/edit.jsp | 74 +- .../html/asset/controllopratica/init.jsp | 4 - .../html/fascicolo/advanced_search.jsp | 253 +- .../fascicolo/navigator/page_allegati.jsp | 2 +- .../navigator/page_allegati_annullamento.jsp | 2 +- .../navigator/page_asseverazioni.jsp | 21 +- .../fascicolo/navigator/page_co_allegati.jsp | 1 - .../navigator/page_dettagli_principali.jsp | 3 +- .../fascicolo/navigator/page_fl_allegati.jsp | 1 - .../fascicolo/navigator/page_in_allegati.jsp | 1 - .../navigator/page_sez_geologica.jsp | 199 +- .../fascicolo/navigator/page_va_allegati.jsp | 1 - .../fascicolo/navigator/page_versioning.jsp | 2 +- .../docroot/html/fascicolo/view.jsp | 2 +- .../html/gestioneattivita/action_button.jsp | 2 +- .../html/gestioneattivita/advanced_search.jsp | 235 +- .../html/gestioneattivita/altri_task.jsp | 1 + .../docroot/html/gestioneattivita/init.jsp | 27 +- .../html/gestioneattivita/miei_task.jsp | 114 +- .../html/gestioneattivita/task_completati.jsp | 1 + .../advanced_search.jsp | 254 +- .../html/gestioneattivitaistruttore/view.jsp | 133 +- .../html/pagamenti/view_pagamenti_pending.jsp | 13 +- .../docroot/WEB-INF/lib/commons-logging.jar | Bin 0 -> 60841 bytes .../docroot/WEB-INF/lib/jstl-api.jar | Bin 0 -> 30689 bytes .../docroot/WEB-INF/lib/jstl-impl.jar | Bin 0 -> 392443 bytes .../docroot/WEB-INF/lib/log4j.jar | Bin 0 -> 489883 bytes .../docroot/WEB-INF/lib/util-bridges.jar | Bin 0 -> 70578 bytes .../docroot/WEB-INF/lib/util-taglib.jar | Bin 0 -> 434678 bytes .../docroot/WEB-INF/tld/c.tld | 572 ++ .../fe/portlet/AllegatiPraticaPortlet.java | 2 +- .../portos/fe/portlet/FascicoloFePortlet.java | 68 +- .../fe/portlet/SoggettiPraticaPortlet.java | 6 +- .../portos/fe/util/ReportFascicoloUtil.java | 20 +- .../html/allegatipratica/edit_allegato.jsp | 129 +- .../docroot/html/allegatipratica/view.jsp | 17 +- .../html/allegatipratica/view_accordion.jsp | 2 +- .../fascicolofe/add_file_asseverazione.jsp | 1 - .../html/fascicolofe/advanced_search.jsp | 5 +- .../html/fascicolofe/archivio_deleghe.jsp | 343 +- .../fascicolofe/asseverazione_actions.jsp | 209 +- .../html/fascicolofe/completed_fascicolo.jsp | 117 +- .../html/fascicolofe/edit_collaudo.jsp | 7 +- .../html/fascicolofe/edit_fascicolo.jsp | 10 +- .../html/fascicolofe/edit_fine-lavori.jsp | 11 +- .../html/fascicolofe/fascicolo_action.jsp | 89 +- .../docroot/html/fascicolofe/init.jsp | 3 +- .../navigator/common/html_top_pagamento.jspf | 5 +- .../navigator/common/save_actions.jspf | 28 +- .../domanda/page_asseverazioni_riepilogo.jsp | 15 +- .../navigator/domanda/page_desc_edificio.jsp | 2 +- .../domanda/page_dettagli_principali.jsp | 5 +- .../navigator/domanda/page_geologica.jsp | 6 +- .../navigator/domanda/page_soggetti.jsp | 2 +- .../html/fascicolofe/navigator/header.jsp | 8 +- .../fascicolofe/verify_cambio_soggetti.jsp | 9 +- .../html/fascicolofe/verify_collaudo.jsp | 345 +- .../html/fascicolofe/verify_fascicolo.jsp | 45 +- .../verify_fascicolo_asseverazione.jsp | 9 +- .../html/fascicolofe/verify_fine-lavori.jsp | 342 +- .../docroot/html/fascicolofe/view.jsp | 6 +- .../view_asseverazioni_columns.jsp | 72 +- .../fascicolofe/view_collaudi_columns.jsp | 2 - .../html/fascicolofe/view_deleghe_columns.jsp | 2 - .../view_fascicolo_columns_generic.jspf | 9 +- .../fascicolofe/view_fascicolo_delega.jsp | 67 +- .../fascicolofe/view_fascicolo_dettagli.jsp | 2 - .../fascicolofe/view_finelavori_columns.jsp | 2 - .../html/soggettipratica/edit_soggetto.jsp | 10 +- .../docroot/html/soggettipratica/view.jsp | 7 +- .../sicilia-sue-connector-portlet-service.jar | Bin 71917 -> 71917 bytes .../sue/NoSuchApiSettingException.java | 40 + .../sicilia/sue/NoSuchSportelloException.java | 40 + .../api/v1/command/impl/ListAttachments.java | 2 +- .../api/v1/command/impl/UploadAttachment.java | 2 +- .../docroot/WEB-INF/src/service.properties | 4 +- .../shared/portos-bo-shared/.classpath | 3 + .../portos-bo-shared/lib/httpclient.jar | Bin 0 -> 727567 bytes .../shared/portos-bo-shared/lib/httpcore.jar | Bin 0 -> 322234 bytes .../shared/portos-bo-shared/lib/httpmime.jar | Bin 0 -> 40692 bytes .../bo/shared/util/AsseverazioniUtil.java | 113 + .../bo/shared/util/AzioniPraticheUtil.java | 73 + .../bo/shared}/util/DocumentiPraticaUtil.java | 163 +- .../bo/shared}/util/PortosIndexField.java | 10 +- .../util/ValidazionePraticaConstants.java | 131 + .../bo/shared}/util/WorkflowConstants.java | 2 +- .../portos/bo/shared/bean/FirmeBean.java | 2 +- .../portos/bo/shared/bean/FirmeDetail.java | 6 +- .../portos/bo/shared/util/FirmeUtil.java | 50 +- .../hook/struts/RenderHistoryFormAction.java | 8 +- .../docroot/WEB-INF/src/service.properties | 4 +- 175 files changed, 8852 insertions(+), 15863 deletions(-) delete mode 100644 liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java delete mode 100644 liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java delete mode 100644 liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java rename liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/{tref/liferay/portos => mwg/sismica}/bo/indexer/ControlloPraticaIndexer.java (99%) rename liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/{tref/liferay/portos => mwg/sismica}/bo/indexer/IntPraticaIndexer.java (99%) rename liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/{service/it/tref/liferay/portos => src/it/mwg/sismica}/bo/search/ControlloPraticaAdvancedSearch.java (98%) rename liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/{service/it/tref/liferay/portos => src/it/mwg/sismica}/bo/search/IntPraticaAdvancedSearch.java (99%) create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/commons-logging.jar create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/jstl-api.jar create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/jstl-impl.jar create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/log4j.jar create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-bridges.jar create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/lib/util-taglib.jar create mode 100644 liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/tld/c.tld create mode 100644 liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/NoSuchApiSettingException.java create mode 100644 liferay-plugins-sdk-6.2/portlets/sicilia-sue-connector-portlet/docroot/WEB-INF/service/it/mwg/sicilia/sue/NoSuchSportelloException.java create mode 100644 liferay-plugins-sdk-6.2/shared/portos-bo-shared/lib/httpclient.jar create mode 100644 liferay-plugins-sdk-6.2/shared/portos-bo-shared/lib/httpcore.jar create mode 100644 liferay-plugins-sdk-6.2/shared/portos-bo-shared/lib/httpmime.jar create mode 100644 liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/AsseverazioniUtil.java create mode 100644 liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/AzioniPraticheUtil.java rename liferay-plugins-sdk-6.2/{portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo => shared/portos-bo-shared/src/it/mwg/sismica/bo/shared}/util/DocumentiPraticaUtil.java (59%) rename liferay-plugins-sdk-6.2/{portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo => shared/portos-bo-shared/src/it/mwg/sismica/bo/shared}/util/PortosIndexField.java (94%) create mode 100644 liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/ValidazionePraticaConstants.java rename liferay-plugins-sdk-6.2/{portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo => shared/portos-bo-shared/src/it/mwg/sismica/bo/shared}/util/WorkflowConstants.java (97%) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalService.java index 89559718..72961877 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalService.java @@ -261,14 +261,12 @@ public interface RichiestaAccessoAttiLocalService extends BaseLocalService, public java.util.List findCompletate( java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException; + throws com.liferay.portal.kernel.exception.SystemException; public int countCompletate(java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException; + throws com.liferay.portal.kernel.exception.SystemException; public it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti findByAccessToken( java.lang.String accessToken) diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceClp.java index d7cdb43c..6eea83d0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceClp.java @@ -737,8 +737,7 @@ public class RichiestaAccessoAttiLocalServiceClp public java.util.List findCompletate( java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException { + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { @@ -765,10 +764,6 @@ public class RichiestaAccessoAttiLocalServiceClp throw (com.liferay.portal.kernel.exception.SystemException)t; } - if (t instanceof java.text.ParseException) { - throw (java.text.ParseException)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } @@ -785,8 +780,7 @@ public class RichiestaAccessoAttiLocalServiceClp public int countCompletate(java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException { + throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { @@ -809,10 +803,6 @@ public class RichiestaAccessoAttiLocalServiceClp throw (com.liferay.portal.kernel.exception.SystemException)t; } - if (t instanceof java.text.ParseException) { - throw (java.text.ParseException)t; - } - if (t instanceof RuntimeException) { throw (RuntimeException)t; } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceUtil.java index 954d45e9..2df9f743 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceUtil.java @@ -284,8 +284,7 @@ public class RichiestaAccessoAttiLocalServiceUtil { public static java.util.List findCompletate( java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException { + throws com.liferay.portal.kernel.exception.SystemException { return getService() .findCompletate(numeroProgetto, protocollo, dataDal, dataAl, start, end); @@ -294,8 +293,7 @@ public class RichiestaAccessoAttiLocalServiceUtil { public static int countCompletate(java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException { + throws com.liferay.portal.kernel.exception.SystemException { return getService() .countCompletate(numeroProgetto, protocollo, dataDal, dataAl); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceWrapper.java index 60863efd..214567f2 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceWrapper.java @@ -302,8 +302,7 @@ public class RichiestaAccessoAttiLocalServiceWrapper public java.util.List findCompletate( java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException { + throws com.liferay.portal.kernel.exception.SystemException { return _richiestaAccessoAttiLocalService.findCompletate(numeroProgetto, protocollo, dataDal, dataAl, start, end); } @@ -312,8 +311,7 @@ public class RichiestaAccessoAttiLocalServiceWrapper public int countCompletate(java.lang.String numeroProgetto, java.lang.String protocollo, java.lang.String dataDal, java.lang.String dataAl) - throws com.liferay.portal.kernel.exception.SystemException, - java.text.ParseException { + throws com.liferay.portal.kernel.exception.SystemException { return _richiestaAccessoAttiLocalService.countCompletate(numeroProgetto, protocollo, dataDal, dataAl); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceClpInvoker.java index 2e8d2e7a..4ea8f1bb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceClpInvoker.java @@ -132,13 +132,13 @@ public class RichiestaAccessoAttiLocalServiceClpInvoker { "java.lang.String" }; - _methodName43 = "findByAccessToken"; + _methodName44 = "findByAccessToken"; - _methodParameterTypes43 = new String[] { "java.lang.String" }; + _methodParameterTypes44 = new String[] { "java.lang.String" }; - _methodName44 = "findRichiesteByGroup"; + _methodName45 = "findRichiesteByGroup"; - _methodParameterTypes44 = new String[] { "long", "int", "int" }; + _methodParameterTypes45 = new String[] { "long", "int", "int" }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -265,13 +265,13 @@ public class RichiestaAccessoAttiLocalServiceClpInvoker { (java.lang.String)arguments[3]); } - if (_methodName43.equals(name) && - Arrays.deepEquals(_methodParameterTypes43, parameterTypes)) { + if (_methodName44.equals(name) && + Arrays.deepEquals(_methodParameterTypes44, parameterTypes)) { return RichiestaAccessoAttiLocalServiceUtil.findByAccessToken((java.lang.String)arguments[0]); } - if (_methodName44.equals(name) && - Arrays.deepEquals(_methodParameterTypes44, parameterTypes)) { + if (_methodName45.equals(name) && + Arrays.deepEquals(_methodParameterTypes45, parameterTypes)) { return RichiestaAccessoAttiLocalServiceUtil.findRichiesteByGroup(((Long)arguments[0]).longValue(), ((Integer)arguments[1]).intValue(), ((Integer)arguments[2]).intValue()); @@ -322,8 +322,8 @@ public class RichiestaAccessoAttiLocalServiceClpInvoker { private String[] _methodParameterTypes41; private String _methodName42; private String[] _methodParameterTypes42; - private String _methodName43; - private String[] _methodParameterTypes43; private String _methodName44; private String[] _methodParameterTypes44; + private String _methodName45; + private String[] _methodParameterTypes45; } \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties index 39313f7a..5d24d0e4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties @@ -13,8 +13,8 @@ ## build.namespace=portos_atti - build.number=28 - build.date=1631536170835 + build.number=29 + build.date=1632756642323 build.auto.upgrade=true ## diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp index 958dfc00..d575a573 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp @@ -5,7 +5,6 @@ <%@page import="it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti"%> <%@page import="it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> -<%@page import="it.tref.liferay.portos.bo.util.AzioniPraticheUtil"%> <%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> <%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%> @@ -143,7 +142,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi
- +
<%= LanguageUtil.get(pageContext, "norm-dpr01-dep") %> @@ -153,7 +152,7 @@ RichiestaAccessoAtti accettoAtti = RichiestaAccessoAttiLocalServiceUtil.getRichi <%= LanguageUtil.get(pageContext, "norm-dpr02-dep") %>
- +
<%= LanguageUtil.get(pageContext, "norm-dpr01-aut") %> diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component index 46a12de8..e68706c1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component @@ -2,6 +2,7 @@ + uses diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml index 66fc6699..ad2ae012 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml @@ -6,8 +6,8 @@ 1 /icon.png - it.tref.liferay.portos.bo.indexer.IntPraticaIndexer - it.tref.liferay.portos.bo.indexer.ControlloPraticaIndexer + it.mwg.sismica.bo.indexer.IntPraticaIndexer + it.mwg.sismica.bo.indexer.ControlloPraticaIndexer Estrazione Firme it.tref.liferay.portos.bo.scheduler.SchedulerEstrazioneFirme diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml index 237ca590..234f3562 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml @@ -1335,19 +1335,10 @@ - - - - - - - - - @@ -1375,31 +1366,12 @@ - - - - - - - - - - - - - - - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Asseverazione.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Asseverazione.java index 0dc929be..0107fa6f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Asseverazione.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Asseverazione.java @@ -34,6 +34,17 @@ public interface Asseverazione extends AsseverazioneModel, PersistedModel { public java.util.Map getDichiarazioniMap(); public java.lang.String getModello() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean hasCambioStatoAsseverazione(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean hasGestisciFileAsseverazione(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public java.lang.String retrieveText(java.lang.String codiceFiscale) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; } \ 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/model/AsseverazioneClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneClp.java index e1319e06..cef93167 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneClp.java @@ -633,6 +633,25 @@ public class AsseverazioneClp extends BaseModelImpl } } + @Override + public boolean hasGestisciFileAsseverazione(long userId) { + try { + String methodName = "hasGestisciFileAsseverazione"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.util.Map getDichiarazioniMap() { try { @@ -671,6 +690,44 @@ public class AsseverazioneClp extends BaseModelImpl } } + @Override + public java.lang.String retrieveText(java.lang.String codiceFiscale) { + try { + String methodName = "retrieveText"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { codiceFiscale }; + + java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasCambioStatoAsseverazione(long userId) { + try { + String methodName = "hasCambioStatoAsseverazione"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneWrapper.java index f27250bc..7ccfbf11 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AsseverazioneWrapper.java @@ -698,9 +698,29 @@ public class AsseverazioneWrapper implements Asseverazione, @Override public java.lang.String getModello() + throws com.liferay.portal.kernel.exception.SystemException { + return _asseverazione.getModello(); + } + + @Override + public boolean hasCambioStatoAsseverazione(long userId) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException { - return _asseverazione.getModello(); + return _asseverazione.hasCambioStatoAsseverazione(userId); + } + + @Override + public boolean hasGestisciFileAsseverazione(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _asseverazione.hasGestisciFileAsseverazione(userId); + } + + @Override + public java.lang.String retrieveText(java.lang.String codiceFiscale) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _asseverazione.retrieveText(codiceFiscale); } @Override diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Collaudo.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Collaudo.java index 6d27d737..ce6fdcb8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Collaudo.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Collaudo.java @@ -36,4 +36,19 @@ public interface Collaudo extends CollaudoModel, PersistedModel { public java.lang.String getTitle(); public java.lang.String getFullDescription(); + + public boolean canCompleteCollaudoEsente() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean isCollaudoDatiCompleted() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public java.util.List notCompletedCollaudoDati() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean pagamentoCollaudoIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; } \ 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/model/CollaudoClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java index ae4a0614..cca5e318 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoClp.java @@ -907,6 +907,82 @@ public class CollaudoClp extends BaseModelImpl implements Collaudo { } } + @Override + public java.util.List notCompletedCollaudoDati() { + try { + String methodName = "notCompletedCollaudoDati"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + java.util.List returnObj = (java.util.List)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isCollaudoDatiCompleted() { + try { + String methodName = "isCollaudoDatiCompleted"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean pagamentoCollaudoIsEnable() { + try { + String methodName = "pagamentoCollaudoIsEnable"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canCompleteCollaudoEsente() { + try { + String methodName = "canCompleteCollaudoEsente"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getFullDescription() { try { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java index 1206bbbf..ae8631db 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/CollaudoWrapper.java @@ -934,6 +934,33 @@ public class CollaudoWrapper implements Collaudo, ModelWrapper { return _collaudo.getFullDescription(); } + @Override + public boolean canCompleteCollaudoEsente() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _collaudo.canCompleteCollaudoEsente(); + } + + @Override + public boolean isCollaudoDatiCompleted() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _collaudo.isCollaudoDatiCompleted(); + } + + @Override + public java.util.List notCompletedCollaudoDati() + throws com.liferay.portal.kernel.exception.SystemException { + return _collaudo.notCompletedCollaudoDati(); + } + + @Override + public boolean pagamentoCollaudoIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _collaudo.pagamentoCollaudoIsEnable(); + } + @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java index 65af8563..643dd99d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java @@ -38,4 +38,96 @@ public interface DettPratica extends DettPraticaModel, PersistedModel { public java.lang.String getFullDescription(); public java.lang.String getMiddleDescription(); + + public boolean allAsseverazioniCompleted() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean asseverazioniIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canCompleteDettPraticaEsente() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canCompleteIntegrazione() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canCompleteUserEditing() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean delegheCompilazioneIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public java.util.Set getDocObbligatoriDomanda() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean hasAnnullaAsseverazioni(long userId) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean hasAsseverazioneAttiva(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean hasAsseverazioniAttive() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean hasDelegaCompilazioneDomanda(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean hasDelegaCompilazioneSezioneGeologica(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean hasDelegaFirmaAllegati(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean hasRichiediAsseverazioni(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean isAsseverazioneDomandaRecommendedByTipoSoggetto( + java.lang.String tipoSoggetto); + + public boolean isAsseverazioneDomandaRequiredByTipoSoggetto( + java.lang.String tipoSoggetto) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean isCollaudatoreRequired(); + + public boolean isRequiredTerna(java.lang.String codiceDoc, + java.util.List ditte, + java.util.List committenti) + throws com.liferay.portal.kernel.exception.SystemException; + + public java.util.List notCompletedSection( + java.lang.String section) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public java.util.List notCompletedSezioneGeologica() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean pagamentoIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaIsCompleta() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaIsEditable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean richiestoA24(); } \ 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/model/DettPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java index e45437bf..ff55aa8e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java @@ -8422,6 +8422,318 @@ public class DettPraticaClp extends BaseModelImpl } } + @Override + public java.util.Set getDocObbligatoriDomanda() { + try { + String methodName = "getDocObbligatoriDomanda"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + java.util.Set returnObj = (java.util.Set)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasDelegaCompilazioneSezioneGeologica(long userId) { + try { + String methodName = "hasDelegaCompilazioneSezioneGeologica"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canCompleteIntegrazione() { + try { + String methodName = "canCompleteIntegrazione"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasAnnullaAsseverazioni(long userId) { + try { + String methodName = "hasAnnullaAsseverazioni"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasAsseverazioneAttiva(long userId) { + try { + String methodName = "hasAsseverazioneAttiva"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.util.List notCompletedSection( + java.lang.String section) { + try { + String methodName = "notCompletedSection"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { section }; + + java.util.List returnObj = (java.util.List)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isCollaudatoreRequired() { + try { + String methodName = "isCollaudatoreRequired"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean allAsseverazioniCompleted() { + try { + String methodName = "allAsseverazioniCompleted"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaIsEditable() { + try { + String methodName = "praticaIsEditable"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.lang.String getTitle() { + try { + String methodName = "getTitle"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.util.List notCompletedSezioneGeologica() { + try { + String methodName = "notCompletedSezioneGeologica"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + java.util.List returnObj = (java.util.List)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isRequiredTerna(java.lang.String codiceDoc, + java.util.List ditte, + java.util.List committenti) { + try { + String methodName = "isRequiredTerna"; + + Class[] parameterTypes = new Class[] { + java.lang.String.class, java.util.List.class, + java.util.List.class + }; + + Object[] parameterValues = new Object[] { + codiceDoc, ditte, committenti + }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean pagamentoIsEnable() { + try { + String methodName = "pagamentoIsEnable"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasAsseverazioniAttive() { + try { + String methodName = "hasAsseverazioniAttive"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaIsCompleta() { + try { + String methodName = "praticaIsCompleta"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canCompleteDettPraticaEsente() { + try { + String methodName = "canCompleteDettPraticaEsente"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getTitle(java.util.Locale locale) { try { @@ -8442,15 +8754,54 @@ public class DettPraticaClp extends BaseModelImpl } @Override - public java.lang.String getTitle() { + public boolean canCompleteUserEditing() { try { - String methodName = "getTitle"; + String methodName = "canCompleteUserEditing"; Class[] parameterTypes = new Class[] { }; Object[] parameterValues = new Object[] { }; - java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasRichiediAsseverazioni(long userId) { + try { + String methodName = "hasRichiediAsseverazioni"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isAsseverazioneDomandaRecommendedByTipoSoggetto( + java.lang.String tipoSoggetto) { + try { + String methodName = "isAsseverazioneDomandaRecommendedByTipoSoggetto"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { tipoSoggetto }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, parameterTypes, parameterValues); return returnObj; @@ -8479,6 +8830,101 @@ public class DettPraticaClp extends BaseModelImpl } } + @Override + public boolean hasDelegaCompilazioneDomanda(long userId) { + try { + String methodName = "hasDelegaCompilazioneDomanda"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean asseverazioniIsEnable() { + try { + String methodName = "asseverazioniIsEnable"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean delegheCompilazioneIsEnable() { + try { + String methodName = "delegheCompilazioneIsEnable"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean richiestoA24() { + try { + String methodName = "richiestoA24"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean hasDelegaFirmaAllegati(long userId) { + try { + String methodName = "hasDelegaFirmaAllegati"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getFullDescription() { try { @@ -8498,6 +8944,26 @@ public class DettPraticaClp extends BaseModelImpl } } + @Override + public boolean isAsseverazioneDomandaRequiredByTipoSoggetto( + java.lang.String tipoSoggetto) { + try { + String methodName = "isAsseverazioneDomandaRequiredByTipoSoggetto"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { tipoSoggetto }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java index c9b3af77..9a1c73df 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java @@ -8249,6 +8249,170 @@ public class DettPraticaWrapper implements DettPratica, return _dettPratica.getMiddleDescription(); } + @Override + public boolean allAsseverazioniCompleted() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.allAsseverazioniCompleted(); + } + + @Override + public boolean asseverazioniIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.asseverazioniIsEnable(); + } + + @Override + public boolean canCompleteDettPraticaEsente() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.canCompleteDettPraticaEsente(); + } + + @Override + public boolean canCompleteIntegrazione() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.canCompleteIntegrazione(); + } + + @Override + public boolean canCompleteUserEditing() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.canCompleteUserEditing(); + } + + @Override + public boolean delegheCompilazioneIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.delegheCompilazioneIsEnable(); + } + + @Override + public java.util.Set getDocObbligatoriDomanda() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.getDocObbligatoriDomanda(); + } + + @Override + public boolean hasAnnullaAsseverazioni(long userId) + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasAnnullaAsseverazioni(userId); + } + + @Override + public boolean hasAsseverazioneAttiva(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasAsseverazioneAttiva(userId); + } + + @Override + public boolean hasAsseverazioniAttive() + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasAsseverazioniAttive(); + } + + @Override + public boolean hasDelegaCompilazioneDomanda(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasDelegaCompilazioneDomanda(userId); + } + + @Override + public boolean hasDelegaCompilazioneSezioneGeologica(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasDelegaCompilazioneSezioneGeologica(userId); + } + + @Override + public boolean hasDelegaFirmaAllegati(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasDelegaFirmaAllegati(userId); + } + + @Override + public boolean hasRichiediAsseverazioni(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.hasRichiediAsseverazioni(userId); + } + + @Override + public boolean isAsseverazioneDomandaRecommendedByTipoSoggetto( + java.lang.String tipoSoggetto) { + return _dettPratica.isAsseverazioneDomandaRecommendedByTipoSoggetto(tipoSoggetto); + } + + @Override + public boolean isAsseverazioneDomandaRequiredByTipoSoggetto( + java.lang.String tipoSoggetto) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.isAsseverazioneDomandaRequiredByTipoSoggetto(tipoSoggetto); + } + + @Override + public boolean isCollaudatoreRequired() { + return _dettPratica.isCollaudatoreRequired(); + } + + @Override + public boolean isRequiredTerna(java.lang.String codiceDoc, + java.util.List ditte, + java.util.List committenti) + throws com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.isRequiredTerna(codiceDoc, ditte, committenti); + } + + @Override + public java.util.List notCompletedSection( + java.lang.String section) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.notCompletedSection(section); + } + + @Override + public java.util.List notCompletedSezioneGeologica() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.notCompletedSezioneGeologica(); + } + + @Override + public boolean pagamentoIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.pagamentoIsEnable(); + } + + @Override + public boolean praticaIsCompleta() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.praticaIsCompleta(); + } + + @Override + public boolean praticaIsEditable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _dettPratica.praticaIsEditable(); + } + + @Override + public boolean richiestoA24() { + return _dettPratica.richiestoA24(); + } + @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavori.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavori.java index 1e077fa9..daebe03a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavori.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavori.java @@ -36,4 +36,20 @@ public interface FineLavori extends FineLavoriModel, PersistedModel { public java.lang.String getTitle(); public java.lang.String getFullDescription(); + + public boolean canCompleteFineLavoriEsente() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean isFineLavoriDatiCompleted() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public java.util.List notCompletedFineLavoriDati() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean pagamentoFineLavoriIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; } \ 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/model/FineLavoriClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java index a7da3f5f..037660f1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriClp.java @@ -912,6 +912,25 @@ public class FineLavoriClp extends BaseModelImpl } } + @Override + public java.util.List notCompletedFineLavoriDati() { + try { + String methodName = "notCompletedFineLavoriDati"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + java.util.List returnObj = (java.util.List)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getTitle(java.util.Locale locale) { try { @@ -931,6 +950,25 @@ public class FineLavoriClp extends BaseModelImpl } } + @Override + public boolean canCompleteFineLavoriEsente() { + try { + String methodName = "canCompleteFineLavoriEsente"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getTitle() { try { @@ -950,6 +988,25 @@ public class FineLavoriClp extends BaseModelImpl } } + @Override + public boolean isFineLavoriDatiCompleted() { + try { + String methodName = "isFineLavoriDatiCompleted"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getFullDescription() { try { @@ -969,6 +1026,25 @@ public class FineLavoriClp extends BaseModelImpl } } + @Override + public boolean pagamentoFineLavoriIsEnable() { + try { + String methodName = "pagamentoFineLavoriIsEnable"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java index 497afb7a..b9433f86 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/FineLavoriWrapper.java @@ -975,6 +975,34 @@ public class FineLavoriWrapper implements FineLavori, ModelWrapper { return _fineLavori.getFullDescription(); } + @Override + public boolean canCompleteFineLavoriEsente() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavori.canCompleteFineLavoriEsente(); + } + + @Override + public boolean isFineLavoriDatiCompleted() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavori.isFineLavoriDatiCompleted(); + } + + @Override + public java.util.List notCompletedFineLavoriDati() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavori.notCompletedFineLavoriDati(); + } + + @Override + public boolean pagamentoFineLavoriIsEnable() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _fineLavori.pagamentoFineLavoriIsEnable(); + } + @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java index c653a3f9..e916ab52 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java @@ -37,9 +37,17 @@ public interface IntPratica extends IntPraticaModel, PersistedModel { public boolean isAnnullata(); + public boolean isAutorizzazione() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + public boolean isChiusa() throws com.liferay.portal.kernel.exception.SystemException; + public boolean isDeposito() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + public int getTipoRichiesta(); public java.lang.String getIndirizzo() @@ -50,5 +58,112 @@ public interface IntPratica extends IntPraticaModel, PersistedModel { public java.lang.Integer getDistanzaOrtodromica(); + public boolean canAddPagamento(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canAddSoggetto(java.lang.String tipoSoggetto) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canAddVariazioneSoggetti(); + + public boolean canDeletePratica(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canEditPratica() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canEditUsers() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean canPrintFascicolo(); + + public boolean canPrintFascicoloVariante() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean canRemoveSoggetto(java.lang.String tipoSoggetto) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean isAllRequiredValid(java.lang.String codiceDoc, + java.util.List signatures, + java.util.List tipologiaSoggetti, + it.tref.liferay.portos.bo.model.DocPratica docPratica) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanAbort(long userId) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanAddCollaudo(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanAddFineLavori(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanAddIntegrazione() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanAddVariante() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanDeleteCollaudo(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanDeleteFineLavori(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanDeleteIntegrazione() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanDeleteVariante() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanEditCollaudo(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanEditFineLavori(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanEditIntegrazione() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaCanEditVariante() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaHasAnnullamento(); + + public boolean praticaHasCollaudoInProgress() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaHasCollaudoPaymentPending() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaHasFineLavoriInProgress() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaHasFineLavoriPaymentPending() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaHasIntegrazioneInProgress() + throws com.liferay.portal.kernel.exception.SystemException; + public boolean hasRichiestaIntegrazioneAttiva(); + + public boolean isAllowedAction(java.lang.String action) + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaHasVarianteInProgress() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean praticaInProgress() + throws com.liferay.portal.kernel.exception.SystemException; + + public boolean signaturesContains(java.lang.String tipoSoggetto, + java.util.List signatures) + throws com.liferay.portal.kernel.exception.SystemException; } \ 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/model/IntPraticaClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java index 9110275f..a6a3fd0c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java @@ -1186,15 +1186,15 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public java.lang.String getIndirizzo() { + public boolean praticaHasAnnullamento() { try { - String methodName = "getIndirizzo"; + String methodName = "praticaHasAnnullamento"; Class[] parameterTypes = new Class[] { }; Object[] parameterValues = new Object[] { }; - java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, parameterTypes, parameterValues); return returnObj; @@ -1205,17 +1205,15 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public java.lang.String getTitle(java.util.Locale locale, boolean completed) { + public boolean hasRichiestaIntegrazioneAttiva() { try { - String methodName = "getTitle"; + String methodName = "hasRichiestaIntegrazioneAttiva"; - Class[] parameterTypes = new Class[] { - java.util.Locale.class, boolean.class - }; + Class[] parameterTypes = new Class[] { }; - Object[] parameterValues = new Object[] { locale, completed }; + Object[] parameterValues = new Object[] { }; - java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, parameterTypes, parameterValues); return returnObj; @@ -1226,9 +1224,9 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public boolean isAnnullata() { + public boolean canAddVariazioneSoggetti() { try { - String methodName = "isAnnullata"; + String methodName = "canAddVariazioneSoggetti"; Class[] parameterTypes = new Class[] { }; @@ -1245,9 +1243,9 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public boolean hasRichiestaIntegrazioneAttiva() { + public boolean canEditPratica() { try { - String methodName = "hasRichiestaIntegrazioneAttiva"; + String methodName = "canEditPratica"; Class[] parameterTypes = new Class[] { }; @@ -1264,15 +1262,34 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public java.lang.Integer getDistanzaOrtodromica() { + public boolean canAddPagamento(long userId) { try { - String methodName = "getDistanzaOrtodromica"; + String methodName = "canAddPagamento"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canEditUsers() { + try { + String methodName = "canEditUsers"; Class[] parameterTypes = new Class[] { }; Object[] parameterValues = new Object[] { }; - java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName, + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, parameterTypes, parameterValues); return returnObj; @@ -1283,15 +1300,70 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng) { + public boolean praticaCanAddIntegrazione() { try { - String methodName = "calcolaDistanzaOrtodromica"; + String methodName = "praticaCanAddIntegrazione"; - Class[] parameterTypes = new Class[] { - double.class, double.class - }; + Class[] parameterTypes = new Class[] { }; - Object[] parameterValues = new Object[] { lat, lng }; + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaInProgress() { + try { + String methodName = "praticaInProgress"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.lang.String getIndirizzo() { + try { + String methodName = "getIndirizzo"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.lang.Integer getDistanzaOrtodromica() { + try { + String methodName = "getDistanzaOrtodromica"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName, parameterTypes, parameterValues); @@ -1322,6 +1394,25 @@ public class IntPraticaClp extends BaseModelImpl } } + @Override + public boolean isAutorizzazione() { + try { + String methodName = "isAutorizzazione"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public java.lang.String getTitle(boolean completed) { try { @@ -1342,9 +1433,161 @@ public class IntPraticaClp extends BaseModelImpl } @Override - public boolean isChiusa() { + public boolean canPrintFascicolo() { try { - String methodName = "isChiusa"; + String methodName = "canPrintFascicolo"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanDeleteVariante() { + try { + String methodName = "praticaCanDeleteVariante"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaHasCollaudoInProgress() { + try { + String methodName = "praticaHasCollaudoInProgress"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isDeposito() { + try { + String methodName = "isDeposito"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canDeletePratica(long userId) { + try { + String methodName = "canDeletePratica"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canAddSoggetto(java.lang.String tipoSoggetto) { + try { + String methodName = "canAddSoggetto"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { tipoSoggetto }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanAddFineLavori(java.lang.String userScreenName) { + try { + String methodName = "praticaCanAddFineLavori"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { userScreenName }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaHasVarianteInProgress() { + try { + String methodName = "praticaHasVarianteInProgress"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanDeleteIntegrazione() { + try { + String methodName = "praticaCanDeleteIntegrazione"; Class[] parameterTypes = new Class[] { }; @@ -1360,6 +1603,440 @@ public class IntPraticaClp extends BaseModelImpl } } + @Override + public boolean praticaHasFineLavoriPaymentPending() { + try { + String methodName = "praticaHasFineLavoriPaymentPending"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isAnnullata() { + try { + String methodName = "isAnnullata"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanDeleteFineLavori(java.lang.String userScreenName) { + try { + String methodName = "praticaCanDeleteFineLavori"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { userScreenName }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canRemoveSoggetto(java.lang.String tipoSoggetto) { + try { + String methodName = "canRemoveSoggetto"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { tipoSoggetto }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isAllowedAction(java.lang.String action) { + try { + String methodName = "isAllowedAction"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { action }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean canPrintFascicoloVariante() { + try { + String methodName = "canPrintFascicoloVariante"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isChiusa() { + try { + String methodName = "isChiusa"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanEditCollaudo(java.lang.String userScreenName) { + try { + String methodName = "praticaCanEditCollaudo"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { userScreenName }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanEditFineLavori(java.lang.String userScreenName) { + try { + String methodName = "praticaCanEditFineLavori"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { userScreenName }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaHasFineLavoriInProgress() { + try { + String methodName = "praticaHasFineLavoriInProgress"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanEditVariante() { + try { + String methodName = "praticaCanEditVariante"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.lang.String getTitle(java.util.Locale locale, boolean completed) { + try { + String methodName = "getTitle"; + + Class[] parameterTypes = new Class[] { + java.util.Locale.class, boolean.class + }; + + Object[] parameterValues = new Object[] { locale, completed }; + + java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanEditIntegrazione() { + try { + String methodName = "praticaCanEditIntegrazione"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng) { + try { + String methodName = "calcolaDistanzaOrtodromica"; + + Class[] parameterTypes = new Class[] { + double.class, double.class + }; + + Object[] parameterValues = new Object[] { lat, lng }; + + java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaHasCollaudoPaymentPending() { + try { + String methodName = "praticaHasCollaudoPaymentPending"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanAddVariante() { + try { + String methodName = "praticaCanAddVariante"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaHasIntegrazioneInProgress() { + try { + String methodName = "praticaHasIntegrazioneInProgress"; + + Class[] parameterTypes = new Class[] { }; + + Object[] parameterValues = new Object[] { }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean signaturesContains(java.lang.String tipoSoggetto, + java.util.List signatures) { + try { + String methodName = "signaturesContains"; + + Class[] parameterTypes = new Class[] { + java.lang.String.class, java.util.List.class + }; + + Object[] parameterValues = new Object[] { tipoSoggetto, signatures }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanDeleteCollaudo(java.lang.String userScreenName) { + try { + String methodName = "praticaCanDeleteCollaudo"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { userScreenName }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean isAllRequiredValid(java.lang.String codiceDoc, + java.util.List signatures, + java.util.List tipologiaSoggetti, + it.tref.liferay.portos.bo.model.DocPratica docPratica) { + try { + String methodName = "isAllRequiredValid"; + + Class[] parameterTypes = new Class[] { + java.lang.String.class, java.util.List.class, + java.util.List.class, + it.tref.liferay.portos.bo.model.DocPratica.class + }; + + Object[] parameterValues = new Object[] { + codiceDoc, signatures, tipologiaSoggetti, docPratica + }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanAddCollaudo(java.lang.String userScreenName) { + try { + String methodName = "praticaCanAddCollaudo"; + + Class[] parameterTypes = new Class[] { java.lang.String.class }; + + Object[] parameterValues = new Object[] { userScreenName }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + + @Override + public boolean praticaCanAbort(long userId) { + try { + String methodName = "praticaCanAbort"; + + Class[] parameterTypes = new Class[] { long.class }; + + Object[] parameterValues = new Object[] { userId }; + + Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, + parameterTypes, parameterValues); + + return returnObj; + } + catch (Exception e) { + throw new UnsupportedOperationException(e); + } + } + @Override public StagedModelType getStagedModelType() { return new StagedModelType(PortalUtil.getClassNameId( diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java index 7d91069a..064f01c4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java @@ -1247,12 +1247,26 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { return _intPratica.isAnnullata(); } + @Override + public boolean isAutorizzazione() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.isAutorizzazione(); + } + @Override public boolean isChiusa() throws com.liferay.portal.kernel.exception.SystemException { return _intPratica.isChiusa(); } + @Override + public boolean isDeposito() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.isDeposito(); + } + @Override public int getTipoRichiesta() { return _intPratica.getTipoRichiesta(); @@ -1275,11 +1289,218 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper { return _intPratica.getDistanzaOrtodromica(); } + @Override + public boolean canAddPagamento(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canAddPagamento(userId); + } + + @Override + public boolean canAddSoggetto(java.lang.String tipoSoggetto) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canAddSoggetto(tipoSoggetto); + } + + @Override + public boolean canAddVariazioneSoggetti() { + return _intPratica.canAddVariazioneSoggetti(); + } + + @Override + public boolean canDeletePratica(long userId) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canDeletePratica(userId); + } + + @Override + public boolean canEditPratica() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canEditPratica(); + } + + @Override + public boolean canEditUsers() + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canEditUsers(); + } + + @Override + public boolean canPrintFascicolo() { + return _intPratica.canPrintFascicolo(); + } + + @Override + public boolean canPrintFascicoloVariante() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canPrintFascicoloVariante(); + } + + @Override + public boolean canRemoveSoggetto(java.lang.String tipoSoggetto) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.canRemoveSoggetto(tipoSoggetto); + } + + @Override + public boolean isAllRequiredValid(java.lang.String codiceDoc, + java.util.List signatures, + java.util.List tipologiaSoggetti, + it.tref.liferay.portos.bo.model.DocPratica docPratica) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.isAllRequiredValid(codiceDoc, signatures, + tipologiaSoggetti, docPratica); + } + + @Override + public boolean praticaCanAbort(long userId) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanAbort(userId); + } + + @Override + public boolean praticaCanAddCollaudo(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanAddCollaudo(userScreenName); + } + + @Override + public boolean praticaCanAddFineLavori(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.PortalException, + com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanAddFineLavori(userScreenName); + } + + @Override + public boolean praticaCanAddIntegrazione() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanAddIntegrazione(); + } + + @Override + public boolean praticaCanAddVariante() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanAddVariante(); + } + + @Override + public boolean praticaCanDeleteCollaudo(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanDeleteCollaudo(userScreenName); + } + + @Override + public boolean praticaCanDeleteFineLavori(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanDeleteFineLavori(userScreenName); + } + + @Override + public boolean praticaCanDeleteIntegrazione() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanDeleteIntegrazione(); + } + + @Override + public boolean praticaCanDeleteVariante() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanDeleteVariante(); + } + + @Override + public boolean praticaCanEditCollaudo(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanEditCollaudo(userScreenName); + } + + @Override + public boolean praticaCanEditFineLavori(java.lang.String userScreenName) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanEditFineLavori(userScreenName); + } + + @Override + public boolean praticaCanEditIntegrazione() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanEditIntegrazione(); + } + + @Override + public boolean praticaCanEditVariante() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaCanEditVariante(); + } + + @Override + public boolean praticaHasAnnullamento() { + return _intPratica.praticaHasAnnullamento(); + } + + @Override + public boolean praticaHasCollaudoInProgress() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaHasCollaudoInProgress(); + } + + @Override + public boolean praticaHasCollaudoPaymentPending() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaHasCollaudoPaymentPending(); + } + + @Override + public boolean praticaHasFineLavoriInProgress() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaHasFineLavoriInProgress(); + } + + @Override + public boolean praticaHasFineLavoriPaymentPending() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaHasFineLavoriPaymentPending(); + } + + @Override + public boolean praticaHasIntegrazioneInProgress() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaHasIntegrazioneInProgress(); + } + @Override public boolean hasRichiestaIntegrazioneAttiva() { return _intPratica.hasRichiestaIntegrazioneAttiva(); } + @Override + public boolean isAllowedAction(java.lang.String action) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.isAllowedAction(action); + } + + @Override + public boolean praticaHasVarianteInProgress() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaHasVarianteInProgress(); + } + + @Override + public boolean praticaInProgress() + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.praticaInProgress(); + } + + @Override + public boolean signaturesContains(java.lang.String tipoSoggetto, + java.util.List signatures) + throws com.liferay.portal.kernel.exception.SystemException { + return _intPratica.signaturesContains(tipoSoggetto, signatures); + } + @Override public boolean equals(Object obj) { if (this == obj) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalService.java index ba9b4e17..ebc82d5f 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalService.java @@ -394,67 +394,43 @@ public interface AsseverazioneLocalService extends BaseLocalService, throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByDettPratica( - long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByDettPratica(long dettPraticaId) + public int countByCodiceFiscale_Esito(java.lang.String codiceFiscale, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByCodiceFiscale_InEsito( java.lang.String codiceFiscale, java.lang.String[] esiti, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByCodiceFiscale_InEsito(java.lang.String codiceFiscale, - java.lang.String[] esiti) + public java.util.List findByDettPratica( + long dettPraticaId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByDettPratica_CodiceFiscale_Esito(long dettPraticaId, + java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByDettPratica_CodiceFiscale_InEsito( + public java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + public java.util.List findByDettPratica_Esito( + long dettPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_InEsito(long intPraticaId, + public int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException; @@ -463,50 +439,23 @@ public interface AsseverazioneLocalService extends BaseLocalService, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByDettPratica_Tipologia_Esito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( + public java.util.List findByIntPratica_CodiceFiscale_Esito( long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByIntPratica_Esito(long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; } \ 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/AsseverazioneLocalServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceClp.java index 2e8f044b..b7618e0e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceClp.java @@ -213,153 +213,88 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { "com.liferay.portal.service.ServiceContext" }; - _methodName37 = "findByIntPratica"; + _methodName37 = "countByCodiceFiscale_Esito"; _methodParameterTypes37 = new String[] { - "long", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" + "java.lang.String", "java.lang.String" }; - _methodName38 = "findByDettPratica"; + _methodName38 = "findByCodiceFiscale_Esito"; _methodParameterTypes38 = new String[] { - "long", "int", "int", + "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName39 = "countByIntPratica"; - - _methodParameterTypes39 = new String[] { "long" }; + _methodName39 = "findByCodiceFiscale_InEsito"; - _methodName40 = "countByDettPratica"; - - _methodParameterTypes40 = new String[] { "long" }; - - _methodName41 = "findByIntPratica_CodiceFiscale"; - - _methodParameterTypes41 = new String[] { - "long", "java.lang.String", "int", "int", + _methodParameterTypes39 = new String[] { + "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName42 = "countByIntPratica_CodiceFiscale"; - - _methodParameterTypes42 = new String[] { "long", "java.lang.String" }; - - _methodName43 = "findByCodiceFiscale_InEsito"; + _methodName40 = "findByDettPratica"; - _methodParameterTypes43 = new String[] { - "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes40 = new String[] { + "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName44 = "countByCodiceFiscale_InEsito"; + _methodName41 = "countByDettPratica_CodiceFiscale_Esito"; - _methodParameterTypes44 = new String[] { - "java.lang.String", "java.lang.String[][]" + _methodParameterTypes41 = new String[] { + "long", "java.lang.String", "java.lang.String" }; - _methodName45 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName42 = "findByDettPratica_CodiceFiscale_Esito"; - _methodParameterTypes45 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes42 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName46 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName43 = "findByDettPratica_Esito"; - _methodParameterTypes46 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes43 = new String[] { + "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName47 = "countByIntPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes47 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName48 = "countByDettPratica_CodiceFiscale_InEsito"; + _methodName44 = "countByDettPratica_InEsito"; - _methodParameterTypes48 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; + _methodParameterTypes44 = new String[] { "long", "java.lang.String[][]" }; - _methodName49 = "findByIntPratica_InEsito"; + _methodName45 = "findByDettPratica_InEsito"; - _methodParameterTypes49 = new String[] { + _methodParameterTypes45 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName50 = "countByIntPratica_InEsito"; - - _methodParameterTypes50 = new String[] { "long", "java.lang.String[][]" }; + _methodName46 = "findByDettPratica_Tipologia_Esito"; - _methodName51 = "findByDettPratica_InEsito"; - - _methodParameterTypes51 = new String[] { - "long", "java.lang.String[][]", "int", "int", + _methodParameterTypes46 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName52 = "countByDettPratica_InEsito"; - - _methodParameterTypes52 = new String[] { "long", "java.lang.String[][]" }; + _methodName47 = "findByIntPratica_CodiceFiscale_Esito"; - _methodName53 = "findByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes53 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]", - "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName54 = "countByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes54 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]" - }; - - _methodName55 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes55 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]", "int", "int", + _methodParameterTypes47 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName56 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName48 = "countByIntPratica_Esito"; - _methodParameterTypes56 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]" - }; - - _methodName57 = "findByIntPratica_Tipologia_InEsito"; - - _methodParameterTypes57 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; + _methodParameterTypes48 = new String[] { "long", "java.lang.String" }; - _methodName58 = "findByDettPratica_Tipologia_InEsito"; + _methodName49 = "findByIntPratica_Esito"; - _methodParameterTypes58 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes49 = new String[] { + "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - - _methodName59 = "countByIntPratica_Tipologia_InEsito"; - - _methodParameterTypes59 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName60 = "countByDettPratica_Tipologia_InEsito"; - - _methodParameterTypes60 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; } @Override @@ -1618,9 +1553,8 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByCodiceFiscale_Esito(java.lang.String codiceFiscale, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1628,13 +1562,9 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { returnObj = _invokableLocalService.invokeMethod(_methodName37, _methodParameterTypes37, new Object[] { - intPraticaId, - - start, - - end, + ClpSerializer.translateInput(codiceFiscale), - ClpSerializer.translateInput(orderByComparator) + ClpSerializer.translateInput(esito) }); } catch (Throwable t) { @@ -1653,12 +1583,13 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } } - return (java.util.List)ClpSerializer.translateOutput(returnObj); + return ((Integer)returnObj).intValue(); } @Override - public java.util.List findByDettPratica( - long dettPraticaId, int start, int end, + public java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -1667,7 +1598,9 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { returnObj = _invokableLocalService.invokeMethod(_methodName38, _methodParameterTypes38, new Object[] { - dettPraticaId, + ClpSerializer.translateInput(codiceFiscale), + + ClpSerializer.translateInput(esito), start, @@ -1696,75 +1629,20 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName39, - _methodParameterTypes39, new Object[] { intPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public int countByDettPratica(long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName40, - _methodParameterTypes40, new Object[] { dettPraticaId }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public java.util.List findByCodiceFiscale_InEsito( + java.lang.String codiceFiscale, java.lang.String[] esiti, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName41, - _methodParameterTypes41, + returnObj = _invokableLocalService.invokeMethod(_methodName39, + _methodParameterTypes39, new Object[] { - intPraticaId, + ClpSerializer.translateInput(codiceFiscale), - ClpSerializer.translateInput(codiceFiscale), + ClpSerializer.translateInput(esiti), start, @@ -1793,54 +1671,17 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName42, - _methodParameterTypes42, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(codiceFiscale) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByCodiceFiscale_InEsito( - java.lang.String codiceFiscale, java.lang.String[] esiti, int start, - int end, + public java.util.List findByDettPratica( + long dettPraticaId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName43, - _methodParameterTypes43, + returnObj = _invokableLocalService.invokeMethod(_methodName40, + _methodParameterTypes40, new Object[] { - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti), + dettPraticaId, start, @@ -1869,62 +1710,20 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByCodiceFiscale_InEsito(java.lang.String codiceFiscale, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName44, - _methodParameterTypes44, - new Object[] { - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByDettPratica_CodiceFiscale_Esito(long dettPraticaId, + java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName45, - _methodParameterTypes45, + returnObj = _invokableLocalService.invokeMethod(_methodName41, + _methodParameterTypes41, new Object[] { - intPraticaId, + dettPraticaId, ClpSerializer.translateInput(codiceFiscale), - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) + ClpSerializer.translateInput(esito) }); } catch (Throwable t) { @@ -1943,26 +1742,26 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } } - return (java.util.List)ClpSerializer.translateOutput(returnObj); + return ((Integer)returnObj).intValue(); } @Override - public java.util.List findByDettPratica_CodiceFiscale_InEsito( + public java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName46, - _methodParameterTypes46, + returnObj = _invokableLocalService.invokeMethod(_methodName42, + _methodParameterTypes42, new Object[] { dettPraticaId, ClpSerializer.translateInput(codiceFiscale), - ClpSerializer.translateInput(esiti), + ClpSerializer.translateInput(esito), start, @@ -1991,91 +1790,19 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName47, - _methodParameterTypes47, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName48, - _methodParameterTypes48, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + public java.util.List findByDettPratica_Esito( + long dettPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName49, - _methodParameterTypes49, + returnObj = _invokableLocalService.invokeMethod(_methodName43, + _methodParameterTypes43, new Object[] { - intPraticaId, + dettPraticaId, - ClpSerializer.translateInput(esiti), + ClpSerializer.translateInput(esito), start, @@ -2104,16 +1831,16 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByIntPratica_InEsito(long intPraticaId, + public int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName50, - _methodParameterTypes50, + returnObj = _invokableLocalService.invokeMethod(_methodName44, + _methodParameterTypes44, new Object[] { - intPraticaId, + dettPraticaId, ClpSerializer.translateInput(esiti) }); @@ -2145,8 +1872,8 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName51, - _methodParameterTypes51, + returnObj = _invokableLocalService.invokeMethod(_methodName45, + _methodParameterTypes45, new Object[] { dettPraticaId, @@ -2179,56 +1906,22 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName52, - _methodParameterTypes52, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByDettPratica_Tipologia_Esito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName53, - _methodParameterTypes53, + returnObj = _invokableLocalService.invokeMethod(_methodName46, + _methodParameterTypes46, new Object[] { - ClpSerializer.translateInput(codiceFiscale), + dettPraticaId, ClpSerializer.translateInput(tipologia), - ClpSerializer.translateInput(esiti), + ClpSerializer.translateInput(esito), start, @@ -2257,62 +1950,22 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName54, - _methodParameterTypes54, - new Object[] { - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( + public java.util.List findByIntPratica_CodiceFiscale_Esito( long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName55, - _methodParameterTypes55, + returnObj = _invokableLocalService.invokeMethod(_methodName47, + _methodParameterTypes47, new Object[] { intPraticaId, ClpSerializer.translateInput(codiceFiscale), - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), + ClpSerializer.translateInput(esito), start, @@ -2341,23 +1994,17 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) + public int countByIntPratica_Esito(long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName56, - _methodParameterTypes56, + returnObj = _invokableLocalService.invokeMethod(_methodName48, + _methodParameterTypes48, new Object[] { intPraticaId, - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) + ClpSerializer.translateInput(esito) }); } catch (Throwable t) { @@ -2380,22 +2027,19 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { } @Override - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { - returnObj = _invokableLocalService.invokeMethod(_methodName57, - _methodParameterTypes57, + returnObj = _invokableLocalService.invokeMethod(_methodName49, + _methodParameterTypes49, new Object[] { intPraticaId, - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), + ClpSerializer.translateInput(esito), start, @@ -2423,122 +2067,6 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName58, - _methodParameterTypes58, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName59, - _methodParameterTypes59, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableLocalService.invokeMethod(_methodName60, - _methodParameterTypes60, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -2638,26 +2166,4 @@ public class AsseverazioneLocalServiceClp implements AsseverazioneLocalService { private String[] _methodParameterTypes48; private String _methodName49; private String[] _methodParameterTypes49; - private String _methodName50; - private String[] _methodParameterTypes50; - private String _methodName51; - private String[] _methodParameterTypes51; - private String _methodName52; - private String[] _methodParameterTypes52; - private String _methodName53; - private String[] _methodParameterTypes53; - private String _methodName54; - private String[] _methodParameterTypes54; - private String _methodName55; - private String[] _methodParameterTypes55; - private String _methodName56; - private String[] _methodParameterTypes56; - private String _methodName57; - private String[] _methodParameterTypes57; - private String _methodName58; - private String[] _methodParameterTypes58; - private String _methodName59; - private String[] _methodParameterTypes59; - private String _methodName60; - private String[] _methodParameterTypes60; } \ 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/AsseverazioneLocalServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceUtil.java index c43bd29e..a4c77285 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceUtil.java @@ -457,49 +457,22 @@ public class AsseverazioneLocalServiceUtil { sourceFileName, serviceContext); } - public static java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public static int countByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica(intPraticaId, start, end, orderByComparator); + return getService().countByCodiceFiscale_Esito(codiceFiscale, esito); } - public static java.util.List findByDettPratica( - long dettPraticaId, int start, int end, + public static java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByDettPratica(dettPraticaId, start, end, + .findByCodiceFiscale_Esito(codiceFiscale, esito, start, end, orderByComparator); } - public static int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByIntPratica(intPraticaId); - } - - public static int countByDettPratica(long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByDettPratica(dettPraticaId); - } - - public static java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, - start, end, orderByComparator); - } - - public static int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); - } - public static java.util.List findByCodiceFiscale_InEsito( java.lang.String codiceFiscale, java.lang.String[] esiti, int start, int end, @@ -510,63 +483,47 @@ public class AsseverazioneLocalServiceUtil { end, orderByComparator); } - public static int countByCodiceFiscale_InEsito( - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByCodiceFiscale_InEsito(codiceFiscale, esiti); - } - - public static java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + public static java.util.List findByDettPratica( + long dettPraticaId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); + .findByDettPratica(dettPraticaId, start, end, + orderByComparator); } - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + public static int countByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); - } - - public static int countByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti) + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti); + .countByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito); } - public static int countByDettPratica_CodiceFiscale_InEsito( + public static java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti) + java.lang.String esito, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti); + .findByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } - public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + public static java.util.List findByDettPratica_Esito( + long dettPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByIntPratica_InEsito(intPraticaId, esiti, start, end, + .findByDettPratica_Esito(dettPraticaId, esito, start, end, orderByComparator); } - public static int countByIntPratica_InEsito(long intPraticaId, + public static int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByIntPratica_InEsito(intPraticaId, esiti); + return getService().countByDettPratica_InEsito(dettPraticaId, esiti); } public static java.util.List findByDettPratica_InEsito( @@ -578,85 +535,39 @@ public class AsseverazioneLocalServiceUtil { orderByComparator); } - public static int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByDettPratica_InEsito(dettPraticaId, esiti); - } - - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public static java.util.List findByDettPratica_Tipologia_Esito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - } - - public static int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti); + .findByDettPratica_Tipologia_Esito(dettPraticaId, tipologia, + esito, start, end, orderByComparator); } - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( + public static java.util.List findByIntPratica_CodiceFiscale_Esito( long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); + .findByIntPratica_CodiceFiscale_Esito(intPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } - public static int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) + public static int countByIntPratica_Esito(long intPraticaId, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); + return getService().countByIntPratica_Esito(intPraticaId, esito); } - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public static java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esiti, start, end, orderByComparator); - } - - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti, start, end, orderByComparator); - } - - public static int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti); - } - - public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti); + .findByIntPratica_Esito(intPraticaId, esito, start, end, + orderByComparator); } public static void clearService() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceWrapper.java index 447f4b4a..590d64a8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneLocalServiceWrapper.java @@ -493,50 +493,21 @@ public class AsseverazioneLocalServiceWrapper } @Override - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByIntPratica(intPraticaId, start, - end, orderByComparator); - } - - @Override - public java.util.List findByDettPratica( - long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByDettPratica(dettPraticaId, - start, end, orderByComparator); - } - - @Override - public int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByIntPratica(intPraticaId); - } - - @Override - public int countByDettPratica(long dettPraticaId) + public int countByCodiceFiscale_Esito(java.lang.String codiceFiscale, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByDettPratica(dettPraticaId); + return _asseverazioneLocalService.countByCodiceFiscale_Esito(codiceFiscale, + esito); } @Override - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale); + return _asseverazioneLocalService.findByCodiceFiscale_Esito(codiceFiscale, + esito, start, end, orderByComparator); } @Override @@ -550,63 +521,46 @@ public class AsseverazioneLocalServiceWrapper } @Override - public int countByCodiceFiscale_InEsito(java.lang.String codiceFiscale, - java.lang.String[] esiti) + public java.util.List findByDettPratica( + long dettPraticaId, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByCodiceFiscale_InEsito(codiceFiscale, - esiti); + return _asseverazioneLocalService.findByDettPratica(dettPraticaId, + start, end, orderByComparator); } @Override - public java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByDettPratica_CodiceFiscale_Esito(long dettPraticaId, + java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); + return _asseverazioneLocalService.countByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito); } @Override - public java.util.List findByDettPratica_CodiceFiscale_InEsito( + public java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti); - } - - @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti); + return _asseverazioneLocalService.findByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } @Override - public java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + public java.util.List findByDettPratica_Esito( + long dettPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByIntPratica_InEsito(intPraticaId, - esiti, start, end, orderByComparator); + return _asseverazioneLocalService.findByDettPratica_Esito(dettPraticaId, + esito, start, end, orderByComparator); } @Override - public int countByIntPratica_InEsito(long intPraticaId, + public int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByIntPratica_InEsito(intPraticaId, + return _asseverazioneLocalService.countByDettPratica_InEsito(dettPraticaId, esiti); } @@ -620,86 +574,39 @@ public class AsseverazioneLocalServiceWrapper } @Override - public int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByDettPratica_InEsito(dettPraticaId, - esiti); - } - - @Override - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByDettPratica_Tipologia_Esito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti); + return _asseverazioneLocalService.findByDettPratica_Tipologia_Esito(dettPraticaId, + tipologia, esito, start, end, orderByComparator); } @Override - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( + public java.util.List findByIntPratica_CodiceFiscale_Esito( long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); + return _asseverazioneLocalService.findByIntPratica_CodiceFiscale_Esito(intPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } @Override - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByIntPratica_Esito(long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti, start, end, orderByComparator); + return _asseverazioneLocalService.countByIntPratica_Esito(intPraticaId, + esito); } @Override - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti); - } - - @Override - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneLocalService.countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti); + return _asseverazioneLocalService.findByIntPratica_Esito(intPraticaId, + esito, start, end, orderByComparator); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneService.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneService.java index 99b20591..6ef05a46 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneService.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneService.java @@ -103,67 +103,35 @@ public interface AsseverazioneService extends BaseService, InvokableService { throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByDettPratica( - long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByIntPratica(long intPraticaId) + public int countByCodiceFiscale_Esito(java.lang.String codiceFiscale, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException; - public int countByDettPratica(long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByCodiceFiscale_InEsito( java.lang.String codiceFiscale, java.lang.String[] esiti, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByCodiceFiscale_InEsito(java.lang.String codiceFiscale, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByDettPratica_CodiceFiscale_InEsito( + public java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_CodiceFiscale_Esito( + long intPraticaId, java.lang.String codiceFiscale, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByIntPratica_InEsito(long intPraticaId, + public int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException; @@ -172,50 +140,11 @@ public interface AsseverazioneService extends BaseService, InvokableService { com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - public int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) + public int countByIntPratica_Esito(long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException; - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, + public java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; - - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; - - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException; } \ 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/AsseverazioneServiceClp.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceClp.java index b0041b74..437f5229 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceClp.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceClp.java @@ -65,153 +65,61 @@ public class AsseverazioneServiceClp implements AsseverazioneService { "com.liferay.portal.service.ServiceContext" }; - _methodName10 = "findByIntPratica"; + _methodName10 = "countByCodiceFiscale_Esito"; _methodParameterTypes10 = new String[] { - "long", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" + "java.lang.String", "java.lang.String" }; - _methodName11 = "findByDettPratica"; + _methodName11 = "findByCodiceFiscale_Esito"; _methodParameterTypes11 = new String[] { - "long", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName12 = "countByIntPratica"; - - _methodParameterTypes12 = new String[] { "long" }; - - _methodName13 = "countByDettPratica"; - - _methodParameterTypes13 = new String[] { "long" }; - - _methodName14 = "findByIntPratica_CodiceFiscale"; - - _methodParameterTypes14 = new String[] { - "long", "java.lang.String", "int", "int", + "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName15 = "countByIntPratica_CodiceFiscale"; - - _methodParameterTypes15 = new String[] { "long", "java.lang.String" }; + _methodName12 = "findByCodiceFiscale_InEsito"; - _methodName16 = "findByCodiceFiscale_InEsito"; - - _methodParameterTypes16 = new String[] { + _methodParameterTypes12 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName17 = "countByCodiceFiscale_InEsito"; - - _methodParameterTypes17 = new String[] { - "java.lang.String", "java.lang.String[][]" - }; - - _methodName18 = "findByIntPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes18 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName19 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName13 = "findByDettPratica_CodiceFiscale_Esito"; - _methodParameterTypes19 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes13 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName20 = "countByIntPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes20 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName21 = "countByDettPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes21 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName22 = "findByIntPratica_InEsito"; + _methodName14 = "findByIntPratica_CodiceFiscale_Esito"; - _methodParameterTypes22 = new String[] { - "long", "java.lang.String[][]", "int", "int", + _methodParameterTypes14 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName23 = "countByIntPratica_InEsito"; + _methodName15 = "countByDettPratica_InEsito"; - _methodParameterTypes23 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes15 = new String[] { "long", "java.lang.String[][]" }; - _methodName24 = "findByDettPratica_InEsito"; + _methodName16 = "findByDettPratica_InEsito"; - _methodParameterTypes24 = new String[] { + _methodParameterTypes16 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName25 = "countByDettPratica_InEsito"; - - _methodParameterTypes25 = new String[] { "long", "java.lang.String[][]" }; - - _methodName26 = "findByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes26 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]", - "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName27 = "countByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes27 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]" - }; - - _methodName28 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes28 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName29 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes29 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]" - }; - - _methodName30 = "findByIntPratica_Tipologia_InEsito"; + _methodName17 = "countByIntPratica_Esito"; - _methodParameterTypes30 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; + _methodParameterTypes17 = new String[] { "long", "java.lang.String" }; - _methodName31 = "findByDettPratica_Tipologia_InEsito"; + _methodName18 = "findByIntPratica_Esito"; - _methodParameterTypes31 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes18 = new String[] { + "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - - _methodName32 = "countByIntPratica_Tipologia_InEsito"; - - _methodParameterTypes32 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName33 = "countByDettPratica_Tipologia_InEsito"; - - _methodParameterTypes33 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; } @Override @@ -529,9 +437,8 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } @Override - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByCodiceFiscale_Esito(java.lang.String codiceFiscale, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -539,13 +446,9 @@ public class AsseverazioneServiceClp implements AsseverazioneService { returnObj = _invokableService.invokeMethod(_methodName10, _methodParameterTypes10, new Object[] { - intPraticaId, - - start, - - end, + ClpSerializer.translateInput(codiceFiscale), - ClpSerializer.translateInput(orderByComparator) + ClpSerializer.translateInput(esito) }); } catch (Throwable t) { @@ -564,12 +467,13 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } } - return (java.util.List)ClpSerializer.translateOutput(returnObj); + return ((Integer)returnObj).intValue(); } @Override - public java.util.List findByDettPratica( - long dettPraticaId, int start, int end, + public java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -578,7 +482,9 @@ public class AsseverazioneServiceClp implements AsseverazioneService { returnObj = _invokableService.invokeMethod(_methodName11, _methodParameterTypes11, new Object[] { - dettPraticaId, + ClpSerializer.translateInput(codiceFiscale), + + ClpSerializer.translateInput(esito), start, @@ -607,13 +513,27 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } @Override - public int countByIntPratica(long intPraticaId) + public java.util.List findByCodiceFiscale_InEsito( + java.lang.String codiceFiscale, java.lang.String[] esiti, int start, + int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName12, - _methodParameterTypes12, new Object[] { intPraticaId }); + _methodParameterTypes12, + new Object[] { + ClpSerializer.translateInput(codiceFiscale), + + ClpSerializer.translateInput(esiti), + + start, + + end, + + ClpSerializer.translateInput(orderByComparator) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -631,17 +551,33 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } } - return ((Integer)returnObj).intValue(); + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public int countByDettPratica(long dettPraticaId) + public java.util.List findByDettPratica_CodiceFiscale_Esito( + long dettPraticaId, java.lang.String codiceFiscale, + java.lang.String esito, int start, int end, + com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; try { returnObj = _invokableService.invokeMethod(_methodName13, - _methodParameterTypes13, new Object[] { dettPraticaId }); + _methodParameterTypes13, + new Object[] { + dettPraticaId, + + ClpSerializer.translateInput(codiceFiscale), + + ClpSerializer.translateInput(esito), + + start, + + end, + + ClpSerializer.translateInput(orderByComparator) + }); } catch (Throwable t) { t = ClpSerializer.translateThrowable(t); @@ -659,12 +595,13 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } } - return ((Integer)returnObj).intValue(); + return (java.util.List)ClpSerializer.translateOutput(returnObj); } @Override - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public java.util.List findByIntPratica_CodiceFiscale_Esito( + long intPraticaId, java.lang.String codiceFiscale, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -677,6 +614,8 @@ public class AsseverazioneServiceClp implements AsseverazioneService { ClpSerializer.translateInput(codiceFiscale), + ClpSerializer.translateInput(esito), + start, end, @@ -704,8 +643,8 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) + public int countByDettPratica_InEsito(long dettPraticaId, + java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -713,9 +652,9 @@ public class AsseverazioneServiceClp implements AsseverazioneService { returnObj = _invokableService.invokeMethod(_methodName15, _methodParameterTypes15, new Object[] { - intPraticaId, + dettPraticaId, - ClpSerializer.translateInput(codiceFiscale) + ClpSerializer.translateInput(esiti) }); } catch (Throwable t) { @@ -738,9 +677,8 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } @Override - public java.util.List findByCodiceFiscale_InEsito( - java.lang.String codiceFiscale, java.lang.String[] esiti, int start, - int end, + public java.util.List findByDettPratica_InEsito( + long dettPraticaId, java.lang.String[] esiti, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -749,7 +687,7 @@ public class AsseverazioneServiceClp implements AsseverazioneService { returnObj = _invokableService.invokeMethod(_methodName16, _methodParameterTypes16, new Object[] { - ClpSerializer.translateInput(codiceFiscale), + dettPraticaId, ClpSerializer.translateInput(esiti), @@ -780,8 +718,7 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } @Override - public int countByCodiceFiscale_InEsito(java.lang.String codiceFiscale, - java.lang.String[] esiti) + public int countByIntPratica_Esito(long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -789,9 +726,9 @@ public class AsseverazioneServiceClp implements AsseverazioneService { returnObj = _invokableService.invokeMethod(_methodName17, _methodParameterTypes17, new Object[] { - ClpSerializer.translateInput(codiceFiscale), + intPraticaId, - ClpSerializer.translateInput(esiti) + ClpSerializer.translateInput(esito) }); } catch (Throwable t) { @@ -814,9 +751,8 @@ public class AsseverazioneServiceClp implements AsseverazioneService { } @Override - public java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { Object returnObj = null; @@ -827,53 +763,7 @@ public class AsseverazioneServiceClp implements AsseverazioneService { new Object[] { intPraticaId, - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName19, - _methodParameterTypes19, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti), + ClpSerializer.translateInput(esito), start, @@ -901,555 +791,6 @@ public class AsseverazioneServiceClp implements AsseverazioneService { return (java.util.List)ClpSerializer.translateOutput(returnObj); } - @Override - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName20, - _methodParameterTypes20, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName21, - _methodParameterTypes21, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName22, - _methodParameterTypes22, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByIntPratica_InEsito(long intPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName23, - _methodParameterTypes23, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByDettPratica_InEsito( - long dettPraticaId, java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName24, - _methodParameterTypes24, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName25, - _methodParameterTypes25, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName26, - _methodParameterTypes26, - new Object[] { - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName27, - _methodParameterTypes27, - new Object[] { - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName28, - _methodParameterTypes28, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName29, - _methodParameterTypes29, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(codiceFiscale), - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName30, - _methodParameterTypes30, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName31, - _methodParameterTypes31, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti), - - start, - - end, - - ClpSerializer.translateInput(orderByComparator) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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.List)ClpSerializer.translateOutput(returnObj); - } - - @Override - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName32, - _methodParameterTypes32, - new Object[] { - intPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - - @Override - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - Object returnObj = null; - - try { - returnObj = _invokableService.invokeMethod(_methodName33, - _methodParameterTypes33, - new Object[] { - dettPraticaId, - - ClpSerializer.translateInput(tipologia), - - ClpSerializer.translateInput(esiti) - }); - } - catch (Throwable t) { - t = ClpSerializer.translateThrowable(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 ((Integer)returnObj).intValue(); - } - private InvokableService _invokableService; private String _methodName0; private String[] _methodParameterTypes0; @@ -1487,34 +828,4 @@ public class AsseverazioneServiceClp implements AsseverazioneService { private String[] _methodParameterTypes17; private String _methodName18; private String[] _methodParameterTypes18; - private String _methodName19; - private String[] _methodParameterTypes19; - private String _methodName20; - private String[] _methodParameterTypes20; - private String _methodName21; - private String[] _methodParameterTypes21; - private String _methodName22; - private String[] _methodParameterTypes22; - private String _methodName23; - private String[] _methodParameterTypes23; - private String _methodName24; - private String[] _methodParameterTypes24; - private String _methodName25; - private String[] _methodParameterTypes25; - private String _methodName26; - private String[] _methodParameterTypes26; - private String _methodName27; - private String[] _methodParameterTypes27; - private String _methodName28; - private String[] _methodParameterTypes28; - private String _methodName29; - private String[] _methodParameterTypes29; - private String _methodName30; - private String[] _methodParameterTypes30; - private String _methodName31; - private String[] _methodParameterTypes31; - private String _methodName32; - private String[] _methodParameterTypes32; - private String _methodName33; - private String[] _methodParameterTypes33; } \ 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/AsseverazioneServiceUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceUtil.java index 661f5440..531d6d07 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceUtil.java @@ -119,49 +119,22 @@ public class AsseverazioneServiceUtil { sourceFileName, serviceContext); } - public static java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public static int countByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica(intPraticaId, start, end, orderByComparator); + return getService().countByCodiceFiscale_Esito(codiceFiscale, esito); } - public static java.util.List findByDettPratica( - long dettPraticaId, int start, int end, + public static java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByDettPratica(dettPraticaId, start, end, + .findByCodiceFiscale_Esito(codiceFiscale, esito, start, end, orderByComparator); } - public static int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByIntPratica(intPraticaId); - } - - public static int countByDettPratica(long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByDettPratica(dettPraticaId); - } - - public static java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, - start, end, orderByComparator); - } - - public static int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); - } - public static java.util.List findByCodiceFiscale_InEsito( java.lang.String codiceFiscale, java.lang.String[] esiti, int start, int end, @@ -172,63 +145,30 @@ public class AsseverazioneServiceUtil { end, orderByComparator); } - public static int countByCodiceFiscale_InEsito( - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByCodiceFiscale_InEsito(codiceFiscale, esiti); - } - - public static java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); - } - - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + public static java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); + .findByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } - public static int countByIntPratica_CodiceFiscale_InEsito( + public static java.util.List findByIntPratica_CodiceFiscale_Esito( long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti); - } - - public static int countByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti); - } - - public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByIntPratica_InEsito(intPraticaId, esiti, start, end, - orderByComparator); + .findByIntPratica_CodiceFiscale_Esito(intPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } - public static int countByIntPratica_InEsito(long intPraticaId, + public static int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByIntPratica_InEsito(intPraticaId, esiti); + return getService().countByDettPratica_InEsito(dettPraticaId, esiti); } public static java.util.List findByDettPratica_InEsito( @@ -240,85 +180,19 @@ public class AsseverazioneServiceUtil { orderByComparator); } - public static int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService().countByDettPratica_InEsito(dettPraticaId, esiti); - } - - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - } - - public static int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti); - } - - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); - } - - public static int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); - } - - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public static int countByIntPratica_Esito(long intPraticaId, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esiti, start, end, orderByComparator); + return getService().countByIntPratica_Esito(intPraticaId, esito); } - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public static java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getService() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti, start, end, orderByComparator); - } - - public static int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti); - } - - public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return getService() - .countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti); + .findByIntPratica_Esito(intPraticaId, esito, start, end, + orderByComparator); } public static void clearService() { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceWrapper.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceWrapper.java index a794fea3..08de44a3 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceWrapper.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/AsseverazioneServiceWrapper.java @@ -121,50 +121,21 @@ public class AsseverazioneServiceWrapper implements AsseverazioneService, } @Override - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByIntPratica(intPraticaId, start, end, - orderByComparator); - } - - @Override - public java.util.List findByDettPratica( - long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) + public int countByCodiceFiscale_Esito(java.lang.String codiceFiscale, + java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByDettPratica(dettPraticaId, start, - end, orderByComparator); + return _asseverazioneService.countByCodiceFiscale_Esito(codiceFiscale, + esito); } @Override - public int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByIntPratica(intPraticaId); - } - - @Override - public int countByDettPratica(long dettPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByDettPratica(dettPraticaId); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public java.util.List findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale); + return _asseverazioneService.findByCodiceFiscale_Esito(codiceFiscale, + esito, start, end, orderByComparator); } @Override @@ -178,63 +149,30 @@ public class AsseverazioneServiceWrapper implements AsseverazioneService, } @Override - public int countByCodiceFiscale_InEsito(java.lang.String codiceFiscale, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByCodiceFiscale_InEsito(codiceFiscale, - esiti); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); - } - - @Override - public java.util.List findByDettPratica_CodiceFiscale_InEsito( + public java.util.List findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); + return _asseverazioneService.findByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } @Override - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti); - } - - @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti); - } - - @Override - public java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_CodiceFiscale_Esito( + long intPraticaId, java.lang.String codiceFiscale, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByIntPratica_InEsito(intPraticaId, - esiti, start, end, orderByComparator); + return _asseverazioneService.findByIntPratica_CodiceFiscale_Esito(intPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } @Override - public int countByIntPratica_InEsito(long intPraticaId, + public int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByIntPratica_InEsito(intPraticaId, + return _asseverazioneService.countByDettPratica_InEsito(dettPraticaId, esiti); } @@ -248,86 +186,18 @@ public class AsseverazioneServiceWrapper implements AsseverazioneService, } @Override - public int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) + public int countByIntPratica_Esito(long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByDettPratica_InEsito(dettPraticaId, - esiti); + return _asseverazioneService.countByIntPratica_Esito(intPraticaId, esito); } @Override - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public java.util.List findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti); - } - - @Override - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); - } - - @Override - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti); - } - - @Override - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws com.liferay.portal.kernel.exception.SystemException { - return _asseverazioneService.countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti); + return _asseverazioneService.findByIntPratica_Esito(intPraticaId, + esito, start, end, orderByComparator); } /** 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 593ab13d..5984fb13 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 @@ -545,4 +545,19 @@ public interface IntPraticaLocalService extends BaseLocalService, @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public boolean hasRichiestaIntegrazioneAttiva(long intPraticaId); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public com.liferay.portal.kernel.search.Hits searchAltriProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public com.liferay.portal.kernel.search.Hits searchArchivioProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end); + + @Transactional(propagation = Propagation.SUPPORTS, readOnly = true) + public com.liferay.portal.kernel.search.Hits searchMieiProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end); } \ 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/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 72afd8fb..a4d7d5b6 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 @@ -353,6 +353,27 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { _methodName69 = "hasRichiestaIntegrazioneAttiva"; _methodParameterTypes69 = new String[] { "long" }; + + _methodName70 = "searchAltriProgetti"; + + _methodParameterTypes70 = new String[] { + "javax.servlet.http.HttpServletRequest", + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName71 = "searchArchivioProgetti"; + + _methodParameterTypes71 = new String[] { + "javax.servlet.http.HttpServletRequest", + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName72 = "searchMieiProgetti"; + + _methodParameterTypes72 = new String[] { + "javax.servlet.http.HttpServletRequest", + "com.liferay.portal.model.User", "int", "int" + }; } @Override @@ -2698,6 +2719,108 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { return ((Boolean)returnObj).booleanValue(); } + @Override + public com.liferay.portal.kernel.search.Hits searchAltriProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName70, + _methodParameterTypes70, + new Object[] { + ClpSerializer.translateInput(request), + + ClpSerializer.translateInput(user), + + start, + + end + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (com.liferay.portal.kernel.search.Hits)ClpSerializer.translateOutput(returnObj); + } + + @Override + public com.liferay.portal.kernel.search.Hits searchArchivioProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName71, + _methodParameterTypes71, + new Object[] { + ClpSerializer.translateInput(request), + + ClpSerializer.translateInput(user), + + start, + + end + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (com.liferay.portal.kernel.search.Hits)ClpSerializer.translateOutput(returnObj); + } + + @Override + public com.liferay.portal.kernel.search.Hits searchMieiProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + Object returnObj = null; + + try { + returnObj = _invokableLocalService.invokeMethod(_methodName72, + _methodParameterTypes72, + new Object[] { + ClpSerializer.translateInput(request), + + ClpSerializer.translateInput(user), + + start, + + end + }); + } + catch (Throwable t) { + t = ClpSerializer.translateThrowable(t); + + if (t instanceof RuntimeException) { + throw (RuntimeException)t; + } + else { + throw new RuntimeException(t.getClass().getName() + + " is not a valid exception"); + } + } + + return (com.liferay.portal.kernel.search.Hits)ClpSerializer.translateOutput(returnObj); + } + private InvokableLocalService _invokableLocalService; private String _methodName0; private String[] _methodParameterTypes0; @@ -2837,4 +2960,10 @@ public class IntPraticaLocalServiceClp implements IntPraticaLocalService { private String[] _methodParameterTypes68; private String _methodName69; private String[] _methodParameterTypes69; + private String _methodName70; + private String[] _methodParameterTypes70; + private String _methodName71; + private String[] _methodParameterTypes71; + private String _methodName72; + private String[] _methodParameterTypes72; } \ 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 a8f8bbcd..31dbef0b 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 @@ -678,6 +678,24 @@ public class IntPraticaLocalServiceUtil { return getService().hasRichiestaIntegrazioneAttiva(intPraticaId); } + public static com.liferay.portal.kernel.search.Hits searchAltriProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + return getService().searchAltriProgetti(request, user, start, end); + } + + public static com.liferay.portal.kernel.search.Hits searchArchivioProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + return getService().searchArchivioProgetti(request, user, start, end); + } + + public static com.liferay.portal.kernel.search.Hits searchMieiProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + return getService().searchMieiProgetti(request, user, start, end); + } + public static void clearService() { _service = null; } 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 394419a9..531264f2 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 @@ -746,6 +746,30 @@ public class IntPraticaLocalServiceWrapper implements IntPraticaLocalService, return _intPraticaLocalService.hasRichiestaIntegrazioneAttiva(intPraticaId); } + @Override + public com.liferay.portal.kernel.search.Hits searchAltriProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + return _intPraticaLocalService.searchAltriProgetti(request, user, + start, end); + } + + @Override + public com.liferay.portal.kernel.search.Hits searchArchivioProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + return _intPraticaLocalService.searchArchivioProgetti(request, user, + start, end); + } + + @Override + public com.liferay.portal.kernel.search.Hits searchMieiProgetti( + javax.servlet.http.HttpServletRequest request, + com.liferay.portal.model.User user, int start, int end) { + return _intPraticaLocalService.searchMieiProgetti(request, user, start, + end); + } + /** * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} */ diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistence.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistence.java index 44432a27..2e8a2262 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistence.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistence.java @@ -386,144 +386,6 @@ public interface AsseverazionePersistence extends BasePersistence public int countByUuid_C(java.lang.String uuid, long companyId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns all the asseveraziones where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica( - long intPraticaId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_PrevAndNext( - long asseverazioneId, long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Removes all the asseveraziones where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @throws SystemException if a system exception occurred - */ - public void removeByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the asseveraziones where dettPraticaId = ?. * @@ -662,157 +524,6 @@ public interface AsseverazionePersistence extends BasePersistence public int countByDettPratica(long dettPraticaId) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_First( - long intPraticaId, java.lang.String codiceFiscale, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_First( - long intPraticaId, java.lang.String codiceFiscale, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_Last( - long intPraticaId, java.lang.String codiceFiscale, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_Last( - long intPraticaId, java.lang.String codiceFiscale, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_CodiceFiscale_PrevAndNext( - long asseverazioneId, long intPraticaId, - java.lang.String codiceFiscale, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Removes all the asseveraziones where intPraticaId = ? and codiceFiscale = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @throws SystemException if a system exception occurred - */ - public void removeByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Returns all the asseveraziones where intPraticaId = ? and esito = ?. * @@ -1947,26 +1658,26 @@ public interface AsseverazionePersistence extends BasePersistence throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. + * Returns all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String esito) + public java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns a range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones @@ -1974,19 +1685,19 @@ public interface AsseverazionePersistence extends BasePersistence * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, + public java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, int start, int end) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones @@ -1995,16 +1706,16 @@ public interface AsseverazionePersistence extends BasePersistence * @return the ordered range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, + public java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. + * Returns the first asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) @@ -2012,243 +1723,8 @@ public interface AsseverazionePersistence extends BasePersistence * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_Tipologia_InEsito_First( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_Tipologia_InEsito_First( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, long intPraticaId, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public void removeByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_Tipologia_InEsito_First( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + public it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_Tipologia_InEsito_First( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException; @@ -2417,510 +1893,6 @@ public interface AsseverazionePersistence extends BasePersistence java.lang.String tipologia, java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException; - /** - * Returns all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByCodiceFiscale_Tipologia_InEsito_First( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the first asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByCodiceFiscale_Tipologia_InEsito_First( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByCodiceFiscale_Tipologia_InEsito_Last( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the last asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByCodiceFiscale_Tipologia_InEsito_Last( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione[] findByCodiceFiscale_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ? from the database. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public void removeByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. - * - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_Tipologia_InEsito_First( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_Tipologia_InEsito_First( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_CodiceFiscale_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, long intPraticaId, - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException; - - /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Removes all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public void removeByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException; - - /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException; - /** * Caches the asseverazione in the entity cache if it is enabled. * diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazioneUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazioneUtil.java index 10a89c53..ea873d17 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazioneUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/persistence/AsseverazioneUtil.java @@ -518,171 +518,6 @@ public class AsseverazioneUtil { return getPersistence().countByUuid_C(uuid, companyId); } - /** - * Returns all the asseveraziones where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica( - long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByIntPratica(intPraticaId); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica( - long intPraticaId, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByIntPratica(intPraticaId, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica(intPraticaId, start, end, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_First(intPraticaId, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_First( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica_First(intPraticaId, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_Last(intPraticaId, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_Last( - long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica_Last(intPraticaId, orderByComparator); - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_PrevAndNext( - long asseverazioneId, long intPraticaId, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_PrevAndNext(asseverazioneId, intPraticaId, - orderByComparator); - } - - /** - * Removes all the asseveraziones where intPraticaId = ? from the database. - * - * @param intPraticaId the int pratica ID - * @throws SystemException if a system exception occurred - */ - public static void removeByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByIntPratica(intPraticaId); - } - - /** - * Returns the number of asseveraziones where intPraticaId = ?. - * - * @param intPraticaId the int pratica ID - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByIntPratica(long intPraticaId) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().countByIntPratica(intPraticaId); - } - /** * Returns all the asseveraziones where dettPraticaId = ?. * @@ -850,237 +685,209 @@ public class AsseverazioneUtil { } /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. + * Returns all the asseveraziones where intPraticaId = ? and esito = ?. * * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale) + public static java.util.List findByIntPratica_InEsito( + long intPraticaId, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); + return getPersistence().findByIntPratica_InEsito(intPraticaId, esito); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. + * Returns a range of all the asseveraziones where intPraticaId = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end) + public static java.util.List findByIntPratica_InEsito( + long intPraticaId, java.lang.String esito, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, - start, end); + .findByIntPratica_InEsito(intPraticaId, esito, start, end); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. + * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public static java.util.List findByIntPratica_InEsito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, - start, end, orderByComparator); + .findByIntPratica_InEsito(intPraticaId, esito, start, end, + orderByComparator); } /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. + * Returns the first asseverazione in the ordered set where intPraticaId = ? and esito = ?. * * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_First( - long intPraticaId, java.lang.String codiceFiscale, + public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_InEsito_First( + long intPraticaId, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByIntPratica_CodiceFiscale_First(intPraticaId, - codiceFiscale, orderByComparator); + .findByIntPratica_InEsito_First(intPraticaId, esito, + orderByComparator); } /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. + * Returns the first asseverazione in the ordered set where intPraticaId = ? and esito = ?. * * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_First( - long intPraticaId, java.lang.String codiceFiscale, + public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_InEsito_First( + long intPraticaId, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByIntPratica_CodiceFiscale_First(intPraticaId, - codiceFiscale, orderByComparator); + .fetchByIntPratica_InEsito_First(intPraticaId, esito, + orderByComparator); } /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. + * Returns the last asseverazione in the ordered set where intPraticaId = ? and esito = ?. * * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_Last( - long intPraticaId, java.lang.String codiceFiscale, + public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_InEsito_Last( + long intPraticaId, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByIntPratica_CodiceFiscale_Last(intPraticaId, - codiceFiscale, orderByComparator); + .findByIntPratica_InEsito_Last(intPraticaId, esito, + orderByComparator); } /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. + * Returns the last asseverazione in the ordered set where intPraticaId = ? and esito = ?. * * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_Last( - long intPraticaId, java.lang.String codiceFiscale, + public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_InEsito_Last( + long intPraticaId, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByIntPratica_CodiceFiscale_Last(intPraticaId, - codiceFiscale, orderByComparator); + .fetchByIntPratica_InEsito_Last(intPraticaId, esito, + orderByComparator); } /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. + * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and esito = ?. * * @param asseverazioneId the primary key of the current asseverazione * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_CodiceFiscale_PrevAndNext( - long asseverazioneId, long intPraticaId, - java.lang.String codiceFiscale, + public static it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_InEsito_PrevAndNext( + long asseverazioneId, long intPraticaId, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByIntPratica_CodiceFiscale_PrevAndNext(asseverazioneId, - intPraticaId, codiceFiscale, orderByComparator); - } - - /** - * Removes all the asseveraziones where intPraticaId = ? and codiceFiscale = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @throws SystemException if a system exception occurred - */ - public static void removeByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); + .findByIntPratica_InEsito_PrevAndNext(asseverazioneId, + intPraticaId, esito, orderByComparator); } /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ?. + * Returns all the asseveraziones where intPraticaId = ? and esito = any ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); - } - - /** - * Returns all the asseveraziones where intPraticaId = ? and esito = ?. + *

+ * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. + *

* * @param intPraticaId the int pratica ID - * @param esito the esito + * @param esitos the esitos * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String esito) + long intPraticaId, java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByIntPratica_InEsito(intPraticaId, esito); + return getPersistence().findByIntPratica_InEsito(intPraticaId, esitos); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and esito = ?. + * Returns a range of all the asseveraziones where intPraticaId = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param esito the esito + * @param esitos the esitos * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String esito, int start, int end) + long intPraticaId, java.lang.String[] esitos, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_InEsito(intPraticaId, esito, start, end); + .findByIntPratica_InEsito(intPraticaId, esitos, start, end); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param esito the esito + * @param esitos the esitos * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) @@ -1088,189 +895,29 @@ public class AsseverazioneUtil { * @throws SystemException if a system exception occurred */ public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String esito, int start, int end, + long intPraticaId, java.lang.String[] esitos, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_InEsito(intPraticaId, esito, start, end, + .findByIntPratica_InEsito(intPraticaId, esitos, start, end, orderByComparator); } /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and esito = ?. + * Removes all the asseveraziones where intPraticaId = ? and esito = ? from the database. * * @param intPraticaId the int pratica ID * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_InEsito_First( - long intPraticaId, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_InEsito_First(intPraticaId, esito, - orderByComparator); + public static void removeByIntPratica_InEsito(long intPraticaId, + java.lang.String esito) + throws com.liferay.portal.kernel.exception.SystemException { + getPersistence().removeByIntPratica_InEsito(intPraticaId, esito); } /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_InEsito_First( - long intPraticaId, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica_InEsito_First(intPraticaId, esito, - orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_InEsito_Last( - long intPraticaId, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_InEsito_Last(intPraticaId, esito, - orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_InEsito_Last( - long intPraticaId, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica_InEsito_Last(intPraticaId, esito, - orderByComparator); - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_InEsito_PrevAndNext( - long asseverazioneId, long intPraticaId, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_InEsito_PrevAndNext(asseverazioneId, - intPraticaId, esito, orderByComparator); - } - - /** - * Returns all the asseveraziones where intPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence().findByIntPratica_InEsito(intPraticaId, esitos); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esitos, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_InEsito(intPraticaId, esitos, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esitos, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_InEsito(intPraticaId, esitos, start, end, - orderByComparator); - } - - /** - * Removes all the asseveraziones where intPraticaId = ? and esito = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public static void removeByIntPratica_InEsito(long intPraticaId, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence().removeByIntPratica_InEsito(intPraticaId, esito); - } - - /** - * Returns the number of asseveraziones where intPraticaId = ? and esito = ?. + * Returns the number of asseveraziones where intPraticaId = ? and esito = ?. * * @param intPraticaId the int pratica ID * @param esito the esito @@ -2114,949 +1761,67 @@ public class AsseverazioneUtil { * @param esitos the esitos * @return the number of matching asseveraziones * @throws SystemException if a system exception occurred - */ - public static int countByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esitos); - } - - /** - * Returns all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito); - } - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito, start, end, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_CodiceFiscale_InEsito_First( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito_First(dettPraticaId, - codiceFiscale, esito, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_CodiceFiscale_InEsito_First( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByDettPratica_CodiceFiscale_InEsito_First(dettPraticaId, - codiceFiscale, esito, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_CodiceFiscale_InEsito_Last( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito_Last(dettPraticaId, - codiceFiscale, esito, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_CodiceFiscale_InEsito_Last( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByDettPratica_CodiceFiscale_InEsito_Last(dettPraticaId, - codiceFiscale, esito, orderByComparator); - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByDettPratica_CodiceFiscale_InEsito_PrevAndNext( - long asseverazioneId, long dettPraticaId, - java.lang.String codiceFiscale, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito_PrevAndNext(asseverazioneId, - dettPraticaId, codiceFiscale, esito, orderByComparator); - } - - /** - * Returns all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esitos); - } - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esitos, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esitos, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esitos, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esitos, start, end, orderByComparator); - } - - /** - * Removes all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ? from the database. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public static void removeByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito); - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito); - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. - * - * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esitos); - } - - /** - * Returns all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esito); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esito, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esito, start, end, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_Tipologia_InEsito_First( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito_First(intPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_Tipologia_InEsito_First( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica_Tipologia_InEsito_First(intPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito_Last(intPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByIntPratica_Tipologia_InEsito_Last(intPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, long intPraticaId, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito_PrevAndNext(asseverazioneId, - intPraticaId, tipologia, esito, orderByComparator); - } - - /** - * Returns all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esitos); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esitos, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esitos, start, end, orderByComparator); - } - - /** - * Removes all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public static void removeByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esito); - } - - /** - * Returns the number of asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esito); - } - - /** - * Returns the number of asseveraziones where intPraticaId = ? and tipologia = ? and esito = any ?. - * - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esitos); - } - - /** - * Returns all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esito); - } - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esito, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esito, start, end, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_Tipologia_InEsito_First( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito_First(dettPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_Tipologia_InEsito_First( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByDettPratica_Tipologia_InEsito_First(dettPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_Tipologia_InEsito_Last( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito_Last(dettPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the last asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_Tipologia_InEsito_Last( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .fetchByDettPratica_Tipologia_InEsito_Last(dettPraticaId, - tipologia, esito, orderByComparator); - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByDettPratica_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, long dettPraticaId, java.lang.String tipologia, - java.lang.String esito, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException, - it.tref.liferay.portos.bo.NoSuchAsseverazioneException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito_PrevAndNext(asseverazioneId, - dettPraticaId, tipologia, esito, orderByComparator); - } - - /** - * Returns all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esitos) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esitos); - } - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esitos, start, end); - } - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static java.util.List findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esitos, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esitos, start, end, orderByComparator); - } - - /** - * Removes all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ? from the database. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - public static void removeByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - getPersistence() - .removeByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, - esito); - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String esito) - throws com.liferay.portal.kernel.exception.SystemException { - return getPersistence() - .countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esito); - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. - * - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esitos) + */ + public static int countByIntPratica_CodiceFiscale_InEsito( + long intPraticaId, java.lang.String codiceFiscale, + java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esitos); + .countByIntPratica_CodiceFiscale_InEsito(intPraticaId, + codiceFiscale, esitos); } /** - * Returns all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esito); + .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito); } /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esito, start, end); + .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito, start, end); } /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -3064,178 +1829,178 @@ public class AsseverazioneUtil { * @return the ordered range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esito, start, end, orderByComparator); + .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito, start, end, orderByComparator); } /** - * Returns the first asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the first asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByCodiceFiscale_Tipologia_InEsito_First( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_CodiceFiscale_InEsito_First( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito_First(codiceFiscale, - tipologia, esito, orderByComparator); + .findByDettPratica_CodiceFiscale_InEsito_First(dettPraticaId, + codiceFiscale, esito, orderByComparator); } /** - * Returns the first asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the first asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByCodiceFiscale_Tipologia_InEsito_First( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_CodiceFiscale_InEsito_First( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByCodiceFiscale_Tipologia_InEsito_First(codiceFiscale, - tipologia, esito, orderByComparator); + .fetchByDettPratica_CodiceFiscale_InEsito_First(dettPraticaId, + codiceFiscale, esito, orderByComparator); } /** - * Returns the last asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the last asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByCodiceFiscale_Tipologia_InEsito_Last( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_CodiceFiscale_InEsito_Last( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito_Last(codiceFiscale, - tipologia, esito, orderByComparator); + .findByDettPratica_CodiceFiscale_InEsito_Last(dettPraticaId, + codiceFiscale, esito, orderByComparator); } /** - * Returns the last asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the last asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByCodiceFiscale_Tipologia_InEsito_Last( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_CodiceFiscale_InEsito_Last( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByCodiceFiscale_Tipologia_InEsito_Last(codiceFiscale, - tipologia, esito, orderByComparator); + .fetchByDettPratica_CodiceFiscale_InEsito_Last(dettPraticaId, + codiceFiscale, esito, orderByComparator); } /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the asseveraziones before and after the current asseverazione in the ordered set where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * * @param asseverazioneId the primary key of the current asseverazione + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByCodiceFiscale_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, + public static it.tref.liferay.portos.bo.model.Asseverazione[] findByDettPratica_CodiceFiscale_InEsito_PrevAndNext( + long asseverazioneId, long dettPraticaId, + java.lang.String codiceFiscale, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito_PrevAndNext(asseverazioneId, - codiceFiscale, tipologia, esito, orderByComparator); + .findByDettPratica_CodiceFiscale_InEsito_PrevAndNext(asseverazioneId, + dettPraticaId, codiceFiscale, esito, orderByComparator); } /** - * Returns all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esitos the esitos * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esitos); + .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esitos); } /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esitos the esitos * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String[] esitos, int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esitos, start, end); + .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esitos, start, end); } /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esitos the esitos * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -3243,97 +2008,94 @@ public class AsseverazioneUtil { * @return the ordered range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static java.util.List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String[] esitos, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esitos, start, end, orderByComparator); + .findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esitos, start, end, orderByComparator); } /** - * Removes all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ? from the database. + * Removes all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ? from the database. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @throws SystemException if a system exception occurred */ - public static void removeByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static void removeByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() - .removeByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esito); + .removeByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito); } /** - * Returns the number of asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the number of asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @return the number of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static int countByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esito); + .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito); } /** - * Returns the number of asseveraziones where codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns the number of asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = any ?. * + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esitos the esitos * @return the number of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, + public static int countByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, java.lang.String codiceFiscale, java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esitos); + .countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esitos); } /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito) + public static java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito); + .findByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esito); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones @@ -3341,24 +2103,23 @@ public class AsseverazioneUtil { * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, int start, int end) + public static java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + int start, int end) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito, start, end); + .findByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esito, start, end); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones @@ -3367,21 +2128,20 @@ public class AsseverazioneUtil { * @return the ordered range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, int start, int end, + public static java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, + int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito, start, end, orderByComparator); + .findByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esito, start, end, orderByComparator); } /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the first asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) @@ -3389,43 +2149,39 @@ public class AsseverazioneUtil { * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_Tipologia_InEsito_First( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, + public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_Tipologia_InEsito_First( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito_First(intPraticaId, - codiceFiscale, tipologia, esito, orderByComparator); + .findByDettPratica_Tipologia_InEsito_First(dettPraticaId, + tipologia, esito, orderByComparator); } /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the first asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_Tipologia_InEsito_First( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, + public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_Tipologia_InEsito_First( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByIntPratica_CodiceFiscale_Tipologia_InEsito_First(intPraticaId, - codiceFiscale, tipologia, esito, orderByComparator); + .fetchByDettPratica_Tipologia_InEsito_First(dettPraticaId, + tipologia, esito, orderByComparator); } /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the last asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) @@ -3433,44 +2189,40 @@ public class AsseverazioneUtil { * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione findByIntPratica_CodiceFiscale_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, + public static it.tref.liferay.portos.bo.model.Asseverazione findByDettPratica_Tipologia_InEsito_Last( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito_Last(intPraticaId, - codiceFiscale, tipologia, esito, orderByComparator); + .findByDettPratica_Tipologia_InEsito_Last(dettPraticaId, + tipologia, esito, orderByComparator); } /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the last asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione fetchByIntPratica_CodiceFiscale_Tipologia_InEsito_Last( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito, + public static it.tref.liferay.portos.bo.model.Asseverazione fetchByDettPratica_Tipologia_InEsito_Last( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .fetchByIntPratica_CodiceFiscale_Tipologia_InEsito_Last(intPraticaId, - codiceFiscale, tipologia, esito, orderByComparator); + .fetchByDettPratica_Tipologia_InEsito_Last(dettPraticaId, + tipologia, esito, orderByComparator); } /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the asseveraziones before and after the current asseverazione in the ordered set where dettPraticaId = ? and tipologia = ? and esito = ?. * * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param orderByComparator the comparator to order the set by (optionally null) @@ -3478,50 +2230,47 @@ public class AsseverazioneUtil { * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found * @throws SystemException if a system exception occurred */ - public static it.tref.liferay.portos.bo.model.Asseverazione[] findByIntPratica_CodiceFiscale_Tipologia_InEsito_PrevAndNext( - long asseverazioneId, long intPraticaId, - java.lang.String codiceFiscale, java.lang.String tipologia, + public static it.tref.liferay.portos.bo.model.Asseverazione[] findByDettPratica_Tipologia_InEsito_PrevAndNext( + long asseverazioneId, long dettPraticaId, java.lang.String tipologia, java.lang.String esito, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException, it.tref.liferay.portos.bo.NoSuchAsseverazioneException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito_PrevAndNext(asseverazioneId, - intPraticaId, codiceFiscale, tipologia, esito, orderByComparator); + .findByDettPratica_Tipologia_InEsito_PrevAndNext(asseverazioneId, + dettPraticaId, tipologia, esito, orderByComparator); } /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esitos the esitos * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos) + public static java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, + java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esitos); + .findByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esitos); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esitos the esitos * @param start the lower bound of the range of asseveraziones @@ -3529,24 +2278,23 @@ public class AsseverazioneUtil { * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos, int start, - int end) throws com.liferay.portal.kernel.exception.SystemException { + public static java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, + java.lang.String[] esitos, int start, int end) + throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esitos, start, end); + .findByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esitos, start, end); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esitos the esitos * @param start the lower bound of the range of asseveraziones @@ -3555,71 +2303,64 @@ public class AsseverazioneUtil { * @return the ordered range of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static java.util.List findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esitos, int start, - int end, + public static java.util.List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, + java.lang.String[] esitos, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esitos, start, end, orderByComparator); + .findByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esitos, start, end, orderByComparator); } /** - * Removes all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ? from the database. + * Removes all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ? from the database. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @throws SystemException if a system exception occurred */ - public static void removeByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String esito) + public static void removeByDettPratica_Tipologia_InEsito( + long dettPraticaId, java.lang.String tipologia, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { getPersistence() - .removeByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito); + .removeByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, + esito); } /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns the number of asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @return the number of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, + public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, java.lang.String tipologia, java.lang.String esito) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito); + .countByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esito); } /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = any ?. + * Returns the number of asseveraziones where dettPraticaId = ? and tipologia = ? and esito = any ?. * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esitos the esitos * @return the number of matching asseveraziones * @throws SystemException if a system exception occurred */ - public static int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, + public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, java.lang.String tipologia, java.lang.String[] esitos) throws com.liferay.portal.kernel.exception.SystemException { return getPersistence() - .countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esitos); + .countByDettPratica_Tipologia_InEsito(dettPraticaId, + tipologia, esitos); } /** diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java deleted file mode 100644 index e7d1ec31..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AsseverazioniUtil.java +++ /dev/null @@ -1,447 +0,0 @@ -package it.tref.liferay.portos.bo.util; - -import it.tref.liferay.portos.bo.model.Asseverazione; -import it.tref.liferay.portos.bo.model.DettPratica; -import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil; -import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.Set; - -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.language.LanguageUtil; -import com.liferay.portal.kernel.util.LocaleUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.User; -import com.liferay.portal.service.UserLocalServiceUtil; - -public class AsseverazioniUtil { - - public static final String STATO_ASSEGNATA = "AS"; - public static final String STATO_ESEGUITA = "ES"; - public static final String STATO_ANNULLATA = "AN"; - public static final String STATO_EXPIRED = "EX"; - - public static final String ASSEVERAZIONE_DA_APPLICATIVO = "AP"; - public static final String ASSEVERAZIONE_DA_ALLEGATO = "AL"; - - public static boolean hasAsseverazioniAttive(long dettPraticaId) throws SystemException { - - return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(dettPraticaId, new String[] { STATO_ASSEGNATA, - STATO_ESEGUITA }) > 0; - } - - public static boolean hasCambioStatoAsseverazione(long userId, long asseverazioneId) throws PortalException, - SystemException { - - Asseverazione asseverazione = AsseverazioneLocalServiceUtil.getAsseverazione(asseverazioneId); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); - User user = UserLocalServiceUtil.getUser(userId); - return (asseverazione.getCodiceFiscale().equalsIgnoreCase(user.getScreenName()) || dettPratica.getUserId() == userId) - && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; - } - - public static boolean hasRichiediAsseverazioni(long userId, long dettPraticaId) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return !hasAsseverazioniAttive(dettPraticaId) && dettPratica.getUserId() == userId - && ValidazionePraticaUtil.praticaIsCompleta(dettPraticaId) - && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; - } - - public static boolean hasAnnullaAsseverazioni(long userId, long dettPraticaId) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return hasAsseverazioniAttive(dettPraticaId) && dettPratica.getUserId() == userId - && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; - } - - public static boolean hasGestisciFileAsseverazione(long userId, long asseverazioneId) throws PortalException, - SystemException { - - Asseverazione asseverazione = AsseverazioneLocalServiceUtil.getAsseverazione(asseverazioneId); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); - return dettPratica.getUserId() == userId && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; - } - - public static boolean hasAsseverazioneAttiva(long userId, long dettPraticaId) throws PortalException, - SystemException { - - User user = UserLocalServiceUtil.getUser(userId); - return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - user.getScreenName(), new String[] { STATO_ASSEGNATA }) > 0; - } - - public static String ASSEVERAZIONI_DOMANDA = "asseverazioni_domanda"; - public static String ASSEVERAZIONI_VARIANTE = "asseverazioni_variante"; - public static String ASSEVERAZIONI_INTEGRAZIONE = "asseverazioni_integrazione"; - - @SuppressWarnings("serial") - private static final Map> REQUIRED = new HashMap>() { - { - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02, - Arrays. asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03, - Arrays. asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, - Arrays. asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A08, - Arrays. asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, - Arrays. asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A13, - Arrays. asList(TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15, - Arrays. asList(TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.DIRETTORE_LAVORI)); - // Domanda - put(ASSEVERAZIONI_DOMANDA, Arrays. asList(TipoSoggettoUtil.DIRETTORE_LAVORI, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DITTA, TipoSoggettoUtil.COLLAUDATORE, - TipoSoggettoUtil.TITOLARE_DIGITALE)); - // Variante - put(ASSEVERAZIONI_VARIANTE, Collections. emptyList()); - // Integrazioni - put(ASSEVERAZIONI_INTEGRAZIONE, Collections. emptyList()); - // Fine Lavori - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_GIORNALE_LAVORI, - Arrays. asList(TipoSoggettoUtil.DIRETTORE_LAVORI)); - // Collaudo - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_RELAZIONE_COLLAUDO, - Arrays. asList(TipoSoggettoUtil.COLLAUDATORE)); - } - }; - - @SuppressWarnings("serial") - private static final Map> recommended = new HashMap>() { - { - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays.asList(TipoSoggettoUtil.DITTA)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays.asList(TipoSoggettoUtil.DITTA)); - } - }; - - private static final List oneIsEnough = Arrays. asList(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A11, - DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12, DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, - DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_ALTRI, DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_DELEGA); - - public static boolean isAsseverazioneDomandaRequiredByTipoSoggetto(long dettPraticaId, String tipoSoggetto) - throws PortalException, SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - long intPraticaId = dettPratica.getIntPraticaId(); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) - || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - Set nuoviSoggetti = new HashSet<>( - SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, tipoSoggetto)); - List cfNuoviSoggetti = SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto( - dettPraticaId, tipoSoggetto); - List nuoviDelegati = DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(dettPraticaId, - new String[] { tipoSoggetto }, new String[] { AsseverazioniUtil.STATO_ESEGUITA }); - nuoviDelegati.removeAll(cfNuoviSoggetti); - for (String cfDelegato : nuoviDelegati) { - nuoviSoggetti.addAll(SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale( - dettPratica.getIntPraticaId(), cfDelegato, 0L)); - } - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); - Soggetto titolareDigitale = SoggettoLocalServiceUtil - .getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, - titolaredigitaleUser.getScreenName(), tipoSoggetto, 0); - if (Validator.isNotNull(titolareDigitale) - && tipoSoggetto.equalsIgnoreCase(titolareDigitale.getTipologiaSoggetto())) { - nuoviSoggetti.add(titolareDigitale); - } - } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - if (!TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto) - && !TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto)) { - List soggettiPrincipali = SoggettoLocalServiceUtil - .getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, - new String[] { tipoSoggetto }); - nuoviSoggetti.addAll(soggettiPrincipali); - } - } - return nuoviSoggetti.size() > 0; - } else { - boolean collaudatoreNotRequired = dettPratica.getNoCollaudo() || dettPratica.getCollaudoStatico(); - boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() - || dettPratica.getNormLavoriNoDirettore(); - boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici(); - if (TipoSoggettoUtil.TITOLARE_DIGITALE.equalsIgnoreCase(tipoSoggetto)) { - return true; - } else if (TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) && direttoreLavoriNotRequired) { - return checkAsseverazioniRichiestaOriginaria(tipoSoggetto, dettPraticaId); - } else if (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto) && collaudatoreNotRequired) { - return false; - } else if (TipoSoggettoUtil.DITTA.equalsIgnoreCase(tipoSoggetto) && dittaNotRequired) { - return false; - } else if (TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto)) { - return REQUIRED.get(ASSEVERAZIONI_DOMANDA).contains(tipoSoggetto); - } else if (REQUIRED.containsKey(ASSEVERAZIONI_DOMANDA)) { - return checkAsseverazioniRichiestaOriginaria(tipoSoggetto, dettPraticaId); - } - } - return false; - } - - public static boolean isAsseverazioneDomandaRecommendedByTipoSoggetto(long dettPraticaId, String tipoSoggetto) - throws PortalException, SystemException { - - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) - || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - return false; - } - if (recommended.containsKey(ASSEVERAZIONI_DOMANDA)) { - return recommended.get(ASSEVERAZIONI_DOMANDA).contains(tipoSoggetto); - } - return false; - } - - public static boolean isAsseverazioneRequiredByCodiceDoc(String codiceDoc, String tipoSoggetto) { - - if (REQUIRED.containsKey(codiceDoc)) { - return REQUIRED.get(codiceDoc).contains(tipoSoggetto); - } - return false; - } - - public static boolean isAsseverazioneRecommendedByCodiceDoc(String codiceDoc, String tipoSoggetto) { - - if (recommended.containsKey(codiceDoc)) { - return recommended.get(codiceDoc).contains(tipoSoggetto); - } - return false; - } - - public static boolean allAsseverazioniCompleted(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione()) - || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - boolean soggetti = false; - boolean delegati = false; - List asseverazioniEseguite = AsseverazioneLocalServiceUtil.findByDettPratica_InEsito( - dettPraticaId, new String[] { AsseverazioniUtil.STATO_ESEGUITA }, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - if (asseverazioniEseguite.size() == 0) { - return false; - } - List nuoviSoggetti = new ArrayList( - SoggettoLocalServiceUtil.getCfValidTmpByDettPratica(dettPraticaId)); - List nuoviDelegati = new ArrayList( - DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(dettPraticaId, new String[] { - TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.DITTA, - TipoSoggettoUtil.PROGETTISTA }, new String[] { AsseverazioniUtil.STATO_ESEGUITA })); - Set cfAsseverazioni = new HashSet<>(); - for (Asseverazione asseverazione : asseverazioniEseguite) { - cfAsseverazioni.add(asseverazione.getCodiceFiscale()); - } - if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - boolean titolareDigitale = false; - User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); - if (cfAsseverazioni.contains(titolaredigitaleUser.getScreenName())) { - titolareDigitale = true; - } - if (cfAsseverazioni.containsAll(nuoviSoggetti)) { - soggetti = true; - } - nuoviDelegati.removeAll(nuoviSoggetti); - if (cfAsseverazioni.containsAll(nuoviDelegati)) { - delegati = true; - } - if (!soggetti && delegati) { - if (cfAsseverazioni.containsAll(nuoviSoggetti)) { - soggetti = true; - } - } - return titolareDigitale && soggetti && delegati; - } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { - boolean soggettiPrincipali = false; - String[] tipoSoggetti = new String[] { TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.DITTA, - TipoSoggettoUtil.PROGETTISTA }; - List cfSoggettiPrincipali = SoggettoLocalServiceUtil - .getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId, tipoSoggetti); - if (cfAsseverazioni.containsAll(cfSoggettiPrincipali)) { - soggettiPrincipali = true; - } - nuoviSoggetti.removeAll(cfSoggettiPrincipali); - if (cfAsseverazioni.containsAll(nuoviSoggetti)) { - soggetti = true; - } - nuoviDelegati.removeAll(cfSoggettiPrincipali); - nuoviDelegati.removeAll(nuoviSoggetti); - if (cfAsseverazioni.containsAll(nuoviDelegati)) { - delegati = true; - } - return soggettiPrincipali && soggetti && delegati; - } - } else { - for (String tipoSoggetto : REQUIRED.get(ASSEVERAZIONI_DOMANDA)) { - if (isAsseverazioneDomandaRequiredByTipoSoggetto(dettPraticaId, tipoSoggetto)) { - List asseverazioniEseguite = AsseverazioneLocalServiceUtil - .findByDettPratica_Tipologia_InEsito(dettPraticaId, tipoSoggetto, - new String[] { AsseverazioniUtil.STATO_ESEGUITA }, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - if (asseverazioniEseguite.size() == 0) { - return false; - } - } - } - } - return true; - } - - public static boolean isRequiredTerna(String codiceDoc, List ditte, List committenti, - DettPratica dettPratica) throws SystemException { - - if (codiceDoc.equals(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) { - if (SoggettiUtil.isCommittenteAndDitta(committenti, ditte) - && SoggettiUtil.isCollaudatorePresent(dettPratica.getDettPraticaId())) - return true; - else if (SoggettiUtil.isCommittenteAndDitta(committenti, ditte) - && ValidazionePraticaUtil.isCollaudatoreRequired(dettPratica)) - return true; - } - return false; - } - - public static boolean isEnoughOne(String codiceDoc) { - - return oneIsEnough.contains(codiceDoc); - } - - public static boolean signaturesContains(long intPraticaId, String tipoSoggetto, List signatures) - throws SystemException { - - for (String sign : signatures) { - List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, sign); - for (Soggetto soggetto : soggetti) { - if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)) { - return true; - } - } - } - return false; - } - - @SuppressWarnings("serial") - public static final Map iconMapper = new HashMap() { - { - put(TipoSoggettoUtil.COMMITTENTE, "fa-bullseye"); - put(TipoSoggettoUtil.DIRETTORE_LAVORI, "fa-bullhorn"); - put(TipoSoggettoUtil.DITTA, "fa-industry"); - put(TipoSoggettoUtil.GEOLOGO, "fa-globe"); - put(TipoSoggettoUtil.COLLAUDATORE, "fa-wrench"); - put(TipoSoggettoUtil.PROGETTISTA, "fa-object-ungroup"); - } - }; - - public static String retrieveAsseverazioneText(Asseverazione asseverazione, String codiceFiscale) - throws PortalException, SystemException { - - if (!codiceFiscale.equalsIgnoreCase(asseverazione.getCodiceFiscale())) { - return StringPool.BLANK; - } - Object[] params = new Object[] {}; - String result = StringPool.BLANK; - String tipoAsseverazione = asseverazione.getTipologia(); - DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(asseverazione.getIntPraticaId()); - Soggetto soggetto = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto( - asseverazione.getIntPraticaId(), codiceFiscale, asseverazione.getTipologia(), 0); - switch (tipoAsseverazione) { - case TipoSoggettoUtil.COLLAUDATORE: - params = new Object[] { - soggetto.getDescrizioneCompleta(), - ("albo-altro".equalsIgnoreCase(soggetto.getAlbo()) ? soggetto.getAlboDescr() : soggetto - .getAlbo()), soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; - break; - case TipoSoggettoUtil.COMMITTENTE: - params = new Object[] { soggetto.getDescrizioneCompleta() }; - break; - case TipoSoggettoUtil.DIRETTORE_LAVORI: - params = new Object[] { - soggetto.getDescrizioneCompleta(), - (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) ? "Principale" - : StringPool.BLANK) - + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto - .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto - .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, "label-ambito-" - + soggetto.getAmbitoProfessione()))), soggetto.getAlbo(), - soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; - break; - case TipoSoggettoUtil.DITTA: - params = new Object[] { - soggetto.getCodiceFiscale().toUpperCase() + " - " + soggetto.getLegaleRap(), - soggetto.getDenominazione() - + StringPool.SPACE - + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), - dettPratica.getDettPraticaId()) ? "Principale" : StringPool.BLANK) - + StringPool.SPACE - + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto - .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto - .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, "label-ambito-" - + soggetto.getAmbitoProfessione()))) }; - break; - case TipoSoggettoUtil.GEOLOGO: - params = new String[] { soggetto.getDescrizioneCompleta() }; - break; - case TipoSoggettoUtil.PROGETTISTA: - Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - params = new Object[] { - soggetto.getDescrizioneCompleta(), - (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) ? "Principale" - : StringPool.BLANK) - + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto - .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto - .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, "label-ambito-" - + soggetto.getAmbitoProfessione()))), soggetto.getAlbo(), - soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo(), - dettPratica.getTcNuovaCostruzione() ? "X" : StringPool.SPACE, - dettPratica.getTcAdeguamentoSismico() ? "X" : StringPool.SPACE, - dettPratica.getTcMiglioramentoSismico() ? "X" : StringPool.SPACE, - dettPratica.getTcRiparazioneInterventoLocale() ? "X" : StringPool.SPACE, territorio.getZona(), - territorio.getFascia() }; - break; - } - result = LanguageUtil.format(LocaleUtil.ITALIAN, "confirm-asseverazione-" + tipoAsseverazione, params); - // Added fixed bottom - result += LanguageUtil.get(LocaleUtil.ITALIAN, "confirm-asseverazione-bottom"); - return result; - } - - /** - * @author ADT - */ - private static boolean checkAsseverazioniRichiestaOriginaria(String tipoSoggetto, long dettPraticaId) - throws SystemException { - - List soggettiPerTipologia = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( - dettPraticaId, tipoSoggetto); - return soggettiPerTipologia != null && soggettiPerTipologia.size() > 0; - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java deleted file mode 100644 index 45764463..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AzioniPraticheUtil.java +++ /dev/null @@ -1,233 +0,0 @@ -package it.tref.liferay.portos.bo.util; - -import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.util.Constants; -import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; - -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import com.liferay.portal.kernel.exception.PortalException; -import com.liferay.portal.kernel.exception.SystemException; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.workflow.WorkflowConstants; - -public class AzioniPraticheUtil { - - public static final String ACTION_AGGIUNGI_SOGGETTO = "AGGIUNGI_SOGGETTO"; - public static final String ACTION_RIMUOVI_SOGGETTO = "RIMUOVI_SOGGETTO"; - public static final String ACTION_VARIAZIONE_SOGGETTI = "VARIAZIONE_SOGGETTI"; - public static final String ACTION_VARIANTE = "VARIANTE"; - public static final String ACTION_FL_PARZIALE = "FL_PARZIALE"; - public static final String ACTION_FL_TOTALE = "FL_TOTALE"; - public static final String ACTION_ANNULLA = "ANNULLA"; - public static final String ACTION_CO_PARZIALE = "CO_PARZIALE"; - public static final String ACTION_CO_TOTALE = "CO_TOTALE"; - public static final String ACTION_INTEGRAZIONE = "INTEGRAZIONE"; - - public static final String STATE_COMPILAZIONE = "COMPILAZIONE"; - public static final String STATE_VIDIMATO = "VIDIMATO"; - public static final String STATE_SOTTOPOSTO_A_PARERE_AUTORIZZAZIONE = "SP_AUTORIZZAZIONE"; - public static final String STATE_SOTTOPOSTO_A_PARERE_DEPOSITO = "SP_DEPOSITO"; - public static final String STATE_ANNULLATO = "ANNULLATO"; - public static final String STATE_NON_CONFORME = "NON_CONFORME"; - public static final String NON_AUTORIZZATA = "NON_AUTORIZZATA"; - public static final String STATE_INTEGRAZIONE_AUTORIZZAZIONE = "INTEGRAZIONE_AUTORIZZAZIONE"; - public static final String STATE_INTEGRAZIONE_DEPOSITO = "INTEGRAZIONE_DEPOSITO"; - public static final String STATE_FINE_LAVORI_PARZIALE = "FINE_LAVORI_PARZIALE"; - public static final String STATE_FINE_LAVORI_TOTALE = "FINE_LAVORI_TOTALE"; - public static final String STATE_COLLAUDO_PARZIALE = "COLLAUDO_PARZIALE"; - - private static final List ALL_ACTIONS = Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, - ACTION_RIMUOVI_SOGGETTO, ACTION_VARIAZIONE_SOGGETTI, ACTION_VARIANTE, ACTION_FL_PARZIALE, ACTION_FL_TOTALE, - ACTION_ANNULLA, ACTION_CO_PARZIALE, ACTION_CO_TOTALE); - - @SuppressWarnings("serial") - private static Map> STATE_ACTIONS_MAP = new HashMap>() { - { - put(STATE_VIDIMATO, ALL_ACTIONS); - put(STATE_SOTTOPOSTO_A_PARERE_AUTORIZZAZIONE, Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, - ACTION_RIMUOVI_SOGGETTO, ACTION_VARIAZIONE_SOGGETTI, ACTION_ANNULLA)); - put(STATE_SOTTOPOSTO_A_PARERE_DEPOSITO, ALL_ACTIONS); - put(STATE_ANNULLATO, Collections. emptyList()); - put(STATE_NON_CONFORME, Collections. emptyList()); - put(NON_AUTORIZZATA, Collections. emptyList()); - put(STATE_INTEGRAZIONE_AUTORIZZAZIONE, Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, - ACTION_RIMUOVI_SOGGETTO, ACTION_INTEGRAZIONE, ACTION_ANNULLA)); - put(STATE_INTEGRAZIONE_DEPOSITO, Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, - ACTION_INTEGRAZIONE, ACTION_ANNULLA)); - put(STATE_COMPILAZIONE, - Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, ACTION_ANNULLA)); - put(STATE_FINE_LAVORI_PARZIALE, Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, - ACTION_VARIANTE, ACTION_FL_PARZIALE, ACTION_FL_TOTALE, ACTION_CO_PARZIALE)); - put(STATE_FINE_LAVORI_TOTALE, Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, - ACTION_CO_TOTALE, ACTION_CO_PARZIALE)); - put(STATE_COLLAUDO_PARZIALE, Arrays. asList(ACTION_AGGIUNGI_SOGGETTO, ACTION_RIMUOVI_SOGGETTO, - ACTION_VARIANTE, ACTION_CO_PARZIALE, ACTION_CO_TOTALE)); - } - }; - - public static boolean isAllowedAction(long intPraticaId, String action) throws PortalException, SystemException { - - if (!ALL_ACTIONS.contains(action) && !ACTION_INTEGRAZIONE.equalsIgnoreCase(action)) { - throw new SystemException("Azione non presente: " + action); - } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - boolean isDeposito = isDeposito(intPraticaId); - boolean isAutorizzazione = isAutorizzazione(intPraticaId); - String status = StringPool.BLANK; - if (intPratica.getStatus() == WorkflowConstants.STATUS_PENDING) { - if (intPratica.hasRichiestaIntegrazioneAttiva()) { - if (isDeposito) { - status = STATE_INTEGRAZIONE_DEPOSITO; - } else if (isAutorizzazione) { - status = STATE_INTEGRAZIONE_AUTORIZZAZIONE; - } else { - throw new SystemException("Tipo pratica non esiste"); - } - } else if (isDeposito) { - status = STATE_SOTTOPOSTO_A_PARERE_DEPOSITO; - } else if (isAutorizzazione) { - status = STATE_SOTTOPOSTO_A_PARERE_AUTORIZZAZIONE; - } else { - throw new SystemException("Tipo pratica non esiste"); - } - } else if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_VIDIMATO; - } else if (StatoPraticaConstants.NON_CONFORME.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_NON_CONFORME; - } else if (StatoPraticaConstants.AUTORIZZATA.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_VIDIMATO; - } else if (StatoPraticaConstants.NON_AUTORIZZATA.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = NON_AUTORIZZATA; - } else if (StatoPraticaConstants.ANNULLATA.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_ANNULLATO; - } else if (StatoPraticaConstants.VIDIMATA.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_VIDIMATO; - } else if (StatoPraticaConstants.FINE_LAVORI.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_FINE_LAVORI_TOTALE; - } else if (StatoPraticaConstants.FINE_LAVORI_PARZIALE.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_FINE_LAVORI_PARZIALE; - } else if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY) { - status = STATE_COMPILAZIONE; - } else if (StatoPraticaConstants.COLLAUDO_PARZIALE.equalsIgnoreCase(intPratica.getStatoPratica())) { - status = STATE_COLLAUDO_PARZIALE; - } - List actionList = STATE_ACTIONS_MAP.get(status); - if ((actionList == null) || !actionList.contains(action)) { - return false; - } - if (!action.equalsIgnoreCase(ACTION_INTEGRAZIONE) && intPratica.getCollaudoTotale()) { - return false; - } - if (action.equalsIgnoreCase(ACTION_FL_PARZIALE) && intPratica.getFineLavoriTotale()) { - return false; - } - if (action.equalsIgnoreCase(ACTION_FL_TOTALE) && intPratica.getFineLavoriTotale()) { - return false; - } - if (action.equalsIgnoreCase(ACTION_CO_PARZIALE) && !intPratica.getFineLavoriParziale()) { - return false; - } - if (action.equalsIgnoreCase(ACTION_CO_TOTALE) && !intPratica.getFineLavoriTotale()) { - return false; - } - if (action.equalsIgnoreCase(ACTION_VARIANTE) && intPratica.getFineLavoriTotale()) { - return false; - } - if (action.equalsIgnoreCase(ACTION_ANNULLA) - && (intPratica.getFineLavoriTotale() || intPratica.getFineLavoriParziale() || intPratica - .getCollaudoParziale())) { - return false; - } - if (action.equalsIgnoreCase(ACTION_RIMUOVI_SOGGETTO) && intPratica.getCollaudoParziale()) { - return false; - } - return true; - } - - public static boolean canPrintFascicolo(long intPraticaId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - if ((!intPratica.getStatoPratica().equals(StringPool.BLANK) || intPratica.isValidata()) - && !intPratica.getNumeroProgetto().equals(StringPool.BLANK)) { - return true; - } else { - return false; - } - } - - public static boolean canPrintFascicoloVariante(long intPraticaId) throws PortalException, SystemException { - - int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(intPraticaId, - Arrays.asList(new String[] { TipoIntegrazioneUtil.VARIANTE })); - if (nVarianti > 0) { - return true; - } else { - return false; - } - } - - public static boolean canAddSoggetto(long intPraticaId, String tipoSoggetto) throws PortalException, - SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - if (!isAllowedAction(intPraticaId, ACTION_AGGIUNGI_SOGGETTO)) { - return false; - } - if ((!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE - .equalsIgnoreCase(tipoSoggetto)) && (intPratica.isFineLavoriTotale())) { - return false; - } - return true; - } - - public static boolean canRemoveSoggetto(long intPraticaId, String tipoSoggetto) throws PortalException, - SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - if (!isAllowedAction(intPraticaId, ACTION_RIMUOVI_SOGGETTO)) { - return false; - } - if ((!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE - .equalsIgnoreCase(tipoSoggetto)) - && (intPratica.isFineLavoriTotale() || intPratica.getCollaudoParziale())) { - return false; - } - if ((TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) || TipoSoggettoUtil.DITTA - .equalsIgnoreCase(tipoSoggetto)) && intPratica.isFineLavoriParziale()) { - return false; - } - return true; - } - - public static boolean isDeposito(long intPraticaId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - return intPratica.getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO); - } - - public static boolean isAutorizzazione(long intPraticaId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - return intPratica.getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_AUTORIZZAZIONE); - } - - public static boolean canAddVariazioneSoggetti(long intPraticaId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(intPraticaId); - if (!intPratica.getStatoPratica().equals(StringPool.BLANK) - && !intPratica.getNumeroProgetto().equals(StringPool.BLANK)) { - return true; - } else { - return false; - } - } -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java index a17f6ad4..eab50494 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java @@ -23,8 +23,6 @@ import java.util.Map; 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.log.Log; -import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.model.User; import com.liferay.portal.service.UserLocalServiceUtil; @@ -45,22 +43,21 @@ public class DelegheUtil { public static final String TIPO_FINE_LAVORI = "FL"; public static final String TIPO_COLLAUDO = "CL"; - private static final Log _log = LogFactoryUtil.getLog(DelegheUtil.class); - public static boolean hasDelegaFirma(long userId, long docPraticaId, boolean sezioneGeologica) throws PortalException, SystemException { DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId); boolean controllo = true; + DettPratica dettPratica = null; if (DettPratica.class.getName().equals(docPratica.getClassName())) { - controllo = ValidazionePraticaUtil.praticaIsEditable(docPratica.getClassPk()); + dettPratica = DettPraticaServiceUtil.getDettPratica(docPratica.getClassPk()); + controllo = dettPratica.praticaIsEditable(); } if (controllo) { User user = UserLocalServiceUtil.getUser(userId); long owner = 0L; long intPraticaId = 0L; if (DettPratica.class.getName().equals(docPratica.getClassName())) { - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(docPratica.getClassPk()); intPraticaId = dettPratica.getIntPraticaId(); owner = dettPratica.getUserId(); } else if (FineLavori.class.getName().equals(docPratica.getClassName())) { @@ -113,20 +110,8 @@ public class DelegheUtil { // TODO completare e controllare DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId); - boolean controllo = ValidazionePraticaUtil.praticaIsEditable(docPratica.getClassPk()); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(docPratica.getClassPk()); - if (controllo) { - if (docPratica.getUserId() == userId) { - controllo = true; - } else if (dettPratica.getUserId() == userId) { - controllo = true; - } else if (hasDelegaCompilazioneDomanda(userId, docPratica.getClassPk())) { - controllo = true; - } else if (sezioneGeologica && hasDelegaCompilazioneSezioneGeologica(userId, docPratica.getClassPk())) { - controllo = true; - } - } - return controllo; + return dettPratica.praticaIsEditable(); } public static boolean hasCambioStatoDelega(long userId, long delegaId) throws PortalException, SystemException { @@ -149,30 +134,6 @@ public class DelegheUtil { return hasCreazioneDelega(userId, intPraticaId); } - public static boolean hasDelegaCompilazioneDomanda(long userId, long dettPraticaId) throws PortalException, - SystemException { - - boolean controllo = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); - if (controllo) { - User user = UserLocalServiceUtil.getUser(userId); - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( - dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE, - new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (deleghe.isEmpty()) { - controllo = user.getUserId() == dettPratica.getUserId(); - } else { - controllo = false; - for (Delega delega : deleghe) { - if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { - controllo = true; - } - } - } - } - return controllo; - } - public static boolean canCompilaDomanda(long userId, long dettPraticaId) throws PortalException, SystemException { boolean controllo = false; @@ -198,37 +159,12 @@ public class DelegheUtil { return controllo; } - public static boolean hasDelegaFirmaAllegati(long userId, long dettPraticaId) throws PortalException, - SystemException { - - boolean controllo = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); - if (controllo) { - User user = UserLocalServiceUtil.getUser(userId); - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( - dettPratica.getIntPraticaId(), DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI, - new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (deleghe.isEmpty()) { - controllo = hasDelegaCompilazioneDomanda(userId, dettPraticaId); - } else { - controllo = false; - for (Delega delega : deleghe) { - if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { - controllo = true; - } - } - } - } - return controllo; - } - public static Soggetto getPersonaDelegaCompilazioneDomanda(long dettPraticaId) throws SystemException, PortalException { Soggetto soggetto = null; - boolean praticaIsEditable = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); - if (praticaIsEditable) { - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); + if (dettPratica.praticaIsEditable()) { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); @@ -245,37 +181,12 @@ public class DelegheUtil { return soggetto; } - public static boolean hasDelegaCompilazioneSezioneGeologica(long userId, long dettPraticaId) - throws PortalException, SystemException { - - boolean controllo = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); - if (controllo) { - User user = UserLocalServiceUtil.getUser(userId); - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( - dettPratica.getIntPraticaId(), DelegheUtil.TIPO_GEOLOGO, - new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - if (deleghe.isEmpty()) { - controllo = hasDelegaCompilazioneDomanda(userId, dettPraticaId); - } else { - controllo = false; - for (Delega delega : deleghe) { - if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { - controllo = true; - } - } - } - } - return controllo; - } - public static Soggetto getPersonaDelegaCompilazioneSezioneGeologica(long dettPraticaId) throws SystemException, PortalException { Soggetto soggetto = null; - boolean praticaIsEditable = ValidazionePraticaUtil.praticaIsEditable(dettPraticaId); - if (praticaIsEditable) { - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); + DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); + if (dettPratica.praticaIsEditable()) { List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito( dettPratica.getIntPraticaId(), DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); @@ -362,4 +273,4 @@ public class DelegheUtil { put(TIPO_FINE_LAVORI, "fa-window-close"); } }; -} \ 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/util/MailUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java index d91dbd9d..7ecc669e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.util; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.ControlloPratica; @@ -126,9 +127,9 @@ public class MailUtil { String[] ccn = new String[0]; // recupero dati String tipoPratica = StringPool.BLANK; - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); @@ -169,9 +170,9 @@ public class MailUtil { String[] ccn = new String[0]; // recupero dati String tipoPratica = StringPool.BLANK; - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); @@ -211,9 +212,9 @@ public class MailUtil { String[] cc = new String[0]; String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK; - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java index ca94de9b..7c3db84e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PraticaUtil.java @@ -135,16 +135,16 @@ public class PraticaUtil { String statoPraticaCode = StringPool.BLANK; switch (statoPratica) { case StatoPraticaConstants.CONFORME: - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { statoPraticaCode = StatoPraticaConstants.CONFORME; - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { statoPraticaCode = StatoPraticaConstants.AUTORIZZATA; } break; case StatoPraticaConstants.NON_CONFORME: - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { statoPraticaCode = StatoPraticaConstants.NON_CONFORME; - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { statoPraticaCode = StatoPraticaConstants.NON_AUTORIZZATA; } break; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java deleted file mode 100644 index 14b59a97..00000000 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java +++ /dev/null @@ -1,1199 +0,0 @@ -package it.tref.liferay.portos.bo.util; - -import it.tref.liferay.portos.bo.model.Collaudo; -import it.tref.liferay.portos.bo.model.DettPratica; -import it.tref.liferay.portos.bo.model.DocPratica; -import it.tref.liferay.portos.bo.model.FineLavori; -import it.tref.liferay.portos.bo.model.IntPratica; -import it.tref.liferay.portos.bo.model.Soggetto; -import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; -import it.tref.liferay.portos.bo.service.CollaudoServiceUtil; -import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; -import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; -import it.tref.liferay.portos.bo.service.FineLavoriServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; -import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; -import it.tref.liferay.portos.bo.shared.bean.FirmeBean; -import it.tref.liferay.portos.bo.shared.util.Constants; -import it.tref.liferay.portos.bo.shared.util.FirmeUtil; -import it.tref.liferay.portos.bo.shared.util.SezioniUtil; -import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Locale; -import java.util.Map; -import java.util.Set; - -import javax.servlet.http.HttpServletResponse; - -import org.apache.commons.lang.StringUtils; -import org.apache.http.HttpResponse; -import org.apache.http.client.methods.HttpPost; -import org.apache.http.entity.mime.HttpMultipartMode; -import org.apache.http.entity.mime.MultipartEntityBuilder; -import org.apache.http.entity.mime.content.ByteArrayBody; -import org.apache.http.impl.client.CloseableHttpClient; -import org.apache.http.impl.client.HttpClientBuilder; -import org.apache.http.util.EntityUtils; - -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.JSONArray; -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.util.LocaleUtil; -import com.liferay.portal.kernel.util.StringPool; -import com.liferay.portal.kernel.util.Validator; -import com.liferay.portal.kernel.workflow.WorkflowConstants; -import com.liferay.portal.model.Company; -import com.liferay.portal.service.CompanyLocalServiceUtil; - -public class ValidazionePraticaUtil { - - private static final Log _log = LogFactoryUtil.getLog(ValidazionePraticaUtil.class); - - public static boolean praticaIsEditable(long dettPraticaId) throws PortalException, SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - return !intPratica.getSospesa() && !intPratica.isAnnullata() - && !AsseverazioniUtil.hasAsseverazioniAttive(dettPraticaId) - && !ValidazionePraticaUtil.pagamentoIsEnable(dettPraticaId) - && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; - } - - public static boolean praticaIsCompleta(long dettPraticaId) throws SystemException, PortalException { - - return 0 == notCompletedDettagliPrincipali(dettPraticaId).size() - + notCompletedAnagrafeSoggetti(dettPraticaId).size() - + notCompletedDescrizioneEdificio(dettPraticaId).size() - + notCompletedSezioneGeologica(dettPraticaId).size() - + notCompletedSezioneAllegati(dettPraticaId).size(); - } - - public static boolean canEditPratica(long intPraticaId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - return intPratica.getStatus() == WorkflowConstants.STATUS_ANY - || intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE; - } - - public static boolean canDeletePratica(long intPraticaId, long userId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); - return (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || (dettPratica != null && dettPratica - .getStatus() == WorkflowConstants.STATUS_DRAFT) && Validator.isNull(dettPratica.getTipoIntegrazione())) - && intPratica.getUserId() == userId; - } - - public static boolean canEditUsers(long intPraticaId) throws PortalException, SystemException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - return !intPratica.isSospesa() && !intPratica.isAnnullata() && !canEditPratica(intPraticaId) - && !praticaHasVarianteInProgress(intPraticaId) && !intPratica.hasRichiestaIntegrazioneAttiva() - && !praticaHasIntegrazioneInProgress(intPraticaId) && !praticaHasFineLavoriInProgress(intPraticaId) - && !praticaHasCollaudoInProgress(intPraticaId); - } - - public static boolean canCompleteUserEditing(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - return notCompletedAnagrafeSoggetti(dettPraticaId).size() == 0 - && intPratica.getStatus() != WorkflowConstants.STATUS_ANY - && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE - && TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); - } - - public static boolean canAddPagamento(long intPraticaId, long userId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(intPraticaId); - if (Validator.isNull(dettPratica)) { - return false; - } - return pagamentoIsEnable(dettPratica.getDettPraticaId()) - && DelegheUtil.hasDelegaPagamento(userId, dettPratica.getDettPraticaId()); - } - - public static boolean praticaInProgress(long intPraticaId) throws SystemException, PortalException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, - Arrays. asList(TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, - TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); - return Validator.isNotNull(dettPratica) || intPratica.getStatus() == WorkflowConstants.STATUS_ANY - || intPratica.getStatus() == WorkflowConstants.STATUS_INCOMPLETE; - } - - public static boolean praticaCanAddVariante(long intPraticaId) throws SystemException, PortalException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, - Arrays. asList(TipoIntegrazioneUtil.VARIANTE)); - if (Validator.isNotNull(dettPratica)) { - return false; - } - return intPratica.getStatus() != WorkflowConstants.STATUS_ANY - && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE - && !intPratica.hasRichiestaIntegrazioneAttiva() && !praticaHasIntegrazioneInProgress(intPraticaId); - } - - public static boolean praticaCanEditVariante(long intPraticaId) throws SystemException, PortalException { - - return praticaHasVarianteInProgress(intPraticaId); - } - - public static boolean praticaCanDeleteVariante(long intPraticaId) throws SystemException, PortalException { - - return praticaHasVarianteInProgress(intPraticaId); - } - - public static boolean praticaHasVarianteInProgress(long intPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, - Arrays. asList(TipoIntegrazioneUtil.VARIANTE)); - return Validator.isNotNull(dettPratica); - } - - public static boolean praticaCanAddIntegrazione(long intPraticaId) throws SystemException, PortalException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, - Arrays. asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); - if (Validator.isNotNull(dettPratica)) { - return false; - } - return intPratica.getStatus() != WorkflowConstants.STATUS_ANY - && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE - && intPratica.hasRichiestaIntegrazioneAttiva(); - } - - public static boolean praticaCanEditIntegrazione(long intPraticaId) throws SystemException, PortalException { - - return praticaHasIntegrazioneInProgress(intPraticaId); - } - - public static boolean praticaCanDeleteIntegrazione(long intPraticaId) throws SystemException, PortalException { - - return praticaHasIntegrazioneInProgress(intPraticaId); - } - - public static boolean praticaHasIntegrazioneInProgress(long intPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(intPraticaId, - Arrays. asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); - return Validator.isNotNull(dettPratica); - } - - public static boolean praticaHasAnnullamento(long intPraticaId) throws SystemException, PortalException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - return Validator.isNotNull(intPratica) && intPratica.isAnnullata(); - } - - public static boolean praticaCanAddFineLavori(long intPraticaId, String userScreenName) throws SystemException, - PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - return Validator.isNotNull(dettPratica) - && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(intPraticaId, false, true) == 0 - && !praticaHasFineLavoriInProgress(intPraticaId) && !praticaHasVarianteInProgress(intPraticaId) - && !praticaHasIntegrazioneInProgress(intPraticaId); - } - - public static boolean praticaCanEditFineLavori(long intPraticaId, String userScreenName) throws SystemException, - PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - return Validator.isNotNull(dettPratica) - && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) - && praticaHasFineLavoriInProgress(intPraticaId); - } - - public static boolean praticaCanDeleteFineLavori(long intPraticaId, String userScreenName) throws SystemException, - PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - return Validator.isNotNull(dettPratica) - && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) - && praticaHasFineLavoriPaymentPending(intPraticaId); - } - - public static boolean praticaHasFineLavoriInProgress(long intPraticaId) throws SystemException, PortalException { - - FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); - return Validator.isNotNull(fineLavori); - } - - public static boolean praticaHasFineLavoriPaymentPending(long intPraticaId) throws SystemException, PortalException { - - FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(intPraticaId); - if (Validator.isNotNull(fineLavori) && Validator.isNull(fineLavori.getPagamentoId())) { - return true; - } - return false; - } - - public static boolean praticaCanAddCollaudo(long intPraticaId, String userScreenName) throws SystemException, - PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - return Validator.isNotNull(dettPratica) - && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoCollaudo()) - && FineLavoriLocalServiceUtil.countByIntPraticaId(intPraticaId) > 0 - && CollaudoLocalServiceUtil.countByIntPraticaId_Completata(intPraticaId, false) == 0 - && !praticaHasCollaudoInProgress(intPraticaId) && !praticaHasVarianteInProgress(intPraticaId) - && !praticaHasIntegrazioneInProgress(intPraticaId); - } - - public static boolean praticaCanEditCollaudo(long intPraticaId, String userScreenName) throws SystemException, - PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - return Validator.isNotNull(dettPratica) - && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoCollaudo()) - && praticaHasCollaudoInProgress(intPraticaId); - } - - public static boolean praticaCanDeleteCollaudo(long intPraticaId, String userScreenName) throws SystemException, - PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(intPraticaId); - return Validator.isNotNull(dettPratica) - && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoCollaudo()) - && praticaHasCollaudoPaymentPending(intPraticaId); - } - - public static boolean praticaHasCollaudoInProgress(long intPraticaId) throws SystemException, PortalException { - - Collaudo collaudo = CollaudoServiceUtil.getLastEditable(intPraticaId); - return Validator.isNotNull(collaudo); - } - - public static boolean praticaHasCollaudoPaymentPending(long intPraticaId) throws SystemException, PortalException { - - Collaudo collaudo = CollaudoServiceUtil.getLastEditable(intPraticaId); - if (Validator.isNotNull(collaudo) && Validator.isNull(collaudo.getPagamentoId())) { - return true; - } - return false; - } - - public static boolean asseverazioniIsEnable(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return AsseverazioniUtil.hasAsseverazioniAttive(dettPraticaId) - || (dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT - && SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) > 0 - && praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)); - } - - public static boolean pagamentoIsEnable(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId) - && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) - // se è un'integrazione non si paga - && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(dettPratica.getIntPraticaId()); - } - - public static boolean canCompleteDettPraticaEsente(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId) - && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) && !dettPratica.isCompleta() - && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(dettPratica.getIntPraticaId()); - } - - public static boolean canCompleteIntegrazione(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return praticaIsCompleta(dettPraticaId) && !DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId) - && AsseverazioniUtil.allAsseverazioniCompleted(dettPraticaId) - && IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(dettPratica.getIntPraticaId()) - && dettPratica.getStatus() != WorkflowConstants.STATUS_APPROVED; - } - - public static boolean praticaCanAbort(long intPraticaId, long userId) throws SystemException, PortalException { - - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - return Validator.isNotNull(intPratica) && intPratica.getUserId() == userId - && intPratica.getStatus() != WorkflowConstants.STATUS_ANY - && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE - && !intPratica.hasRichiestaIntegrazioneAttiva() && !praticaHasIntegrazioneInProgress(intPraticaId) - && !praticaHasAnnullamento(intPraticaId); - } - - public static boolean pagamentoFineLavoriIsEnable(long fineLavoriId) throws SystemException, PortalException { - - return isFineLavoriDatiCompleted(fineLavoriId) && isFineLavoriAllegatiCompleted(fineLavoriId); - } - - public static boolean canCompleteFineLavoriEsente(long fineLavoriId) throws SystemException, PortalException { - - FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); - return pagamentoFineLavoriIsEnable(fineLavoriId) && fineLavori.getNormEsenteBollo(); - } - - public static boolean pagamentoCollaudoIsEnable(long collaudoId) throws SystemException, PortalException { - - return isCollaudoDatiCompleted(collaudoId) && isCollaudoAllegatiCompleted(collaudoId); - } - - public static boolean canCompleteCollaudoEsente(long collaudoId) throws SystemException, PortalException { - - Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); - return pagamentoCollaudoIsEnable(collaudoId) && collaudo.getNormEsenteBollo(); - } - - public static boolean delegheCompilazioneIsEnable(long dettPraticaId) throws SystemException, PortalException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - return SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) > 0 - && !AsseverazioniUtil.hasAsseverazioniAttive(dettPraticaId); - } - - public static List notCompletedSection(String section, long dettPraticaId) throws PortalException, - SystemException { - - switch (section) { - case SezioniUtil.SEZIONE_DETTAGLI_PRINCIPALI: - return notCompletedDettagliPrincipali(dettPraticaId); - case SezioniUtil.SEZIONE_ANAGRAFE_SOGGETTI: - return notCompletedAnagrafeSoggetti(dettPraticaId); - case SezioniUtil.SEZIONE_DESCRIZIONE_EDIFICIO: - return notCompletedDescrizioneEdificio(dettPraticaId); - case SezioniUtil.SEZIONE_GEOLOGICA: - return notCompletedSezioneGeologica(dettPraticaId); - case SezioniUtil.SEZIONE_ALLEGATI: - return notCompletedSezioneAllegati(dettPraticaId); - default: - return Collections.emptyList(); - } - } - - private static List notCompletedDettagliPrincipali(long dettPraticaId) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List notCompleted = new ArrayList<>(); - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if (Validator.isNull(dettPratica.getPaesaggioLocale()) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q2) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q3) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P4) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q4) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P5) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q5) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { - notCompleted.add("paesaggio-locale"); - } - if (Validator.isNull(dettPratica.getLivelloDiTutela()) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q2) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q3) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P4) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q4) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P5) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q5) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { - notCompleted.add("livello-di-tutela"); - } - if (!intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { - if (Validator.isNull(dettPratica.getEstremiCatastali())) { - notCompleted.add("estremi-catastali"); - } - } - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { - if (Validator.isNull(dettPratica.getLocalizzazioneGeografica()) - || dettPratica.getLocalizzazioneGeografica().startsWith("||")) { - notCompleted.add("Localizzazione geografica mancante"); - } - } else { - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q9)) { - if (!dettPratica.getSanatoriaEdilizia326() && !dettPratica.getSanatoriaEdilizia47() - && !dettPratica.getSanatoriaEdilizia724()) { - notCompleted.add("sanatorie-obbligatorie"); - } - } - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P7) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q7)) { - if (Validator.isNull(dettPratica.getInterventoVoceP7())) { - notCompleted.add("intervento-voce-p7"); - } - } - if (dettPratica.getIntervFinPub() && Validator.isNull(dettPratica.getIntervFinPubDesc())) { - notCompleted.add("interv-fin-pub-desc"); - } - if (dettPratica.getTcAltriInterventi() && Validator.isNull(dettPratica.getTcAltriInterventiDesc())) { - notCompleted.add("tc-altri-interventi"); - } - if (Validator.isNull(dettPratica.getDescLongIntervento())) { - notCompleted.add("desc-long-intervento"); - } - if (Validator.isNull(dettPratica.getDestinazione()) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { - notCompleted.add("destinazione"); - } - if (Validator.isNull(dettPratica.getVia())) { - notCompleted.add("via"); - } - if (Validator.isNull(dettPratica.getLocalizzazioneGeografica()) - || dettPratica.getLocalizzazioneGeografica().startsWith("||")) { - notCompleted.add("Localizzazione geografica mancante"); - } - boolean tipologiaCostruttiva = dettPratica.getTcNuovaCostruzione() - || dettPratica.getTcNuovaCostruzionePertinenza() || dettPratica.getTcCostruzioniEsistenti() - || dettPratica.getTcManutOrdStraord() || dettPratica.getTcAltriInterventi() - || dettPratica.getTcNoOpereEscavazione(); - if (!tipologiaCostruttiva && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) - && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { - notCompleted.add("Tipologia intervento mancante"); - } - } - return notCompleted; - } - - // ADT - public static boolean isCollaudatoreRequired(DettPratica dettPratica) { - - return dettPratica.getNoCollaudo() || dettPratica.getCollaudoStatico(); - } - - private static List notCompletedAnagrafeSoggetti(long dettPraticaId) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - long intPraticaId = dettPratica.getIntPraticaId(); - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); - boolean collaudatoreNotRequired = dettPratica.getNoCollaudo() || dettPratica.getCollaudoStatico() - || dettPratica.getNormLavoriInProprio() || dettPratica.getNominaCollaudatore(); - boolean direttoreLavoriNotRequired = dettPratica.getLavoriPubblici() || dettPratica.getNormLavoriNoDirettore() - || dettPratica.getNormLavoriInProprio() || dettPratica.getNominaDirettoreLavori(); - boolean dittaNotRequired = dettPratica.getNormLavoriInProprio() || dettPratica.getLavoriPubblici() - || dettPratica.getNominaImpresa(); - List soggettiRichiesti = new ArrayList<>(); - List notCompleted = new ArrayList<>(); - switch (intPratica.getTipoProcedura()) { - case Constants.PROCEDURA_P1: - case Constants.PROCEDURA_Q1: - case Constants.PROCEDURA_P8: - case Constants.PROCEDURA_Q8: - case Constants.PROCEDURA_P9: - case Constants.PROCEDURA_Q9: - soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); - soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA); - break; - case Constants.PROCEDURA_P2: - case Constants.PROCEDURA_P4: - case Constants.PROCEDURA_P5: - case Constants.PROCEDURA_P6: - case Constants.PROCEDURA_P7: - case Constants.PROCEDURA_Q2: - case Constants.PROCEDURA_Q4: - case Constants.PROCEDURA_Q5: - case Constants.PROCEDURA_Q6: - case Constants.PROCEDURA_Q7: - soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); - soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA); - soggettiRichiesti.add(TipoSoggettoUtil.DITTA); - soggettiRichiesti.add(TipoSoggettoUtil.DIRETTORE_LAVORI); - soggettiRichiesti.add(TipoSoggettoUtil.COLLAUDATORE); - break; - case Constants.PROCEDURA_P3: - case Constants.PROCEDURA_Q3: - soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); - soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA); - soggettiRichiesti.add(TipoSoggettoUtil.ARCHEOLOGO); - break; - case Constants.PROCEDURA_P10: - case Constants.PROCEDURA_Q10: - soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); - break; - } - boolean isDelegaCommittente = SoggettiUtil.isTitolareInCommittenti(intPraticaId) - || Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCommittente()); - if (!isDelegaCommittente) { - notCompleted.add("delega-committente"); - } - boolean isDelegaFinelavori = direttoreLavoriNotRequired - || Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoFineLavori()) - || !soggettiRichiesti.contains(TipoSoggettoUtil.DIRETTORE_LAVORI); - if (!isDelegaFinelavori) { - notCompleted.add("delega-direttoreLavori"); - } - boolean isDelegaCollaudo = collaudatoreNotRequired - || Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCollaudo()) - || !soggettiRichiesti.contains(TipoSoggettoUtil.COLLAUDATORE); - if (!isDelegaCollaudo) { - notCompleted.add("delega-collaudatore"); - } - List soggettiPratica = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPraticaId); - boolean dlPresente = false; - boolean collaudatorePresente = false; - boolean dittaPresente = false; - boolean progettistaPresente = false; - for (Soggetto soggetto : soggettiPratica) { - soggettiRichiesti.remove(soggetto.getTipologiaSoggetto()); - if (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(soggetto.getTipologiaSoggetto())) { - dlPresente = true; - } else if (TipoSoggettoUtil.COLLAUDATORE.equals(soggetto.getTipologiaSoggetto())) { - collaudatorePresente = true; - } else if (TipoSoggettoUtil.DITTA.equals(soggetto.getTipologiaSoggetto())) { - dittaPresente = true; - } else if (TipoSoggettoUtil.PROGETTISTA.equals(soggetto.getTipologiaSoggetto())) { - progettistaPresente = true; - } - } - if (direttoreLavoriNotRequired) { - soggettiRichiesti.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); - if (dlPresente) { - StringBuilder sb = new StringBuilder(); - sb.append("Rimuovere ") - .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" - + TipoSoggettoUtil.DIRETTORE_LAVORI)).append(" da soggetti censiti o deselezionare \""); - if (dettPratica.getNormLavoriNoDirettore()) { - sb.append(LanguageUtil.get(LocaleUtil.getDefault(), - LanguageUtil.get(LocaleUtil.getDefault(), "norm-lavori-no-direttore"))); - } else if (dettPratica.getNominaDirettoreLavori()) { - sb.append(LanguageUtil.get(LocaleUtil.getDefault(), - LanguageUtil.get(LocaleUtil.getDefault(), "nomina-direttore-lavori"))); - } - sb.append(StringPool.QUOTE); - notCompleted.add(sb.toString()); - } - } - if (collaudatoreNotRequired) { - soggettiRichiesti.remove(TipoSoggettoUtil.COLLAUDATORE); - if (collaudatorePresente) { - StringBuilder sb = new StringBuilder(); - sb.append("Rimuovere ") - .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" - + TipoSoggettoUtil.COLLAUDATORE)).append(" da soggetti censiti o deselezionare \""); - if (dettPratica.getNoCollaudo()) { - sb.append(LanguageUtil.get(LocaleUtil.getDefault(), - LanguageUtil.get(LocaleUtil.getDefault(), "no-collaudo"))); - } else if (dettPratica.getCollaudoStatico()) { - sb.append(LanguageUtil.get(LocaleUtil.getDefault(), - LanguageUtil.get(LocaleUtil.getDefault(), "collaudo-statico"))); - } - sb.append(StringPool.QUOTE); - notCompleted.add(sb.toString()); - } - } - if (dittaNotRequired) { - soggettiRichiesti.remove(TipoSoggettoUtil.DITTA); - if (dittaPresente) { - StringBuilder sb = new StringBuilder(); - sb.append("Rimuovere ") - .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + TipoSoggettoUtil.DITTA)) - .append(" da soggetti censiti o deselezionare \""); - if (dettPratica.getNormLavoriInProprio()) { - sb.append(LanguageUtil.get(LocaleUtil.getDefault(), - LanguageUtil.get(LocaleUtil.getDefault(), "norm-lavori-in-proprio"))); - } else if (dettPratica.getNominaImpresa()) { - sb.append(LanguageUtil.get(LocaleUtil.getDefault(), - LanguageUtil.get(LocaleUtil.getDefault(), "nomina-impresa"))); - } - sb.append(StringPool.QUOTE); - notCompleted.add(sb.toString()); - } - } - if (collaudatorePresente) { - String codFiscaleCollaudatore = dettPratica.getCodiceFiscalePrincipaleCollaudatore(); - if (Validator.isNotNull(dettPratica.getCodiceFiscaleDelegatoCollaudo())) { - codFiscaleCollaudatore = dettPratica.getCodiceFiscaleDelegatoCollaudo(); - } - if (progettistaPresente - && codFiscaleCollaudatore.equalsIgnoreCase(dettPratica.getCodiceFiscalePrincipaleProgettista())) { - notCompleted.add("Il collaudatore non può essere il progettista"); - } - if (dlPresente - && codFiscaleCollaudatore.equalsIgnoreCase(dettPratica.getCodiceFiscalePrincipaleDirettoreLavori())) { - notCompleted.add("Il collaudatore non può essere il direttore lavori"); - } - } - for (String soggetto : soggettiRichiesti) { - notCompleted.add("gc-soggetto-" + soggetto + "-principale-not-present"); - } - int soggettiIncompleti = SoggettoLocalServiceUtil.countTmpNotCompletedByDettPratica(dettPraticaId); - if (soggettiIncompleti > 0) { - notCompleted.add("gc-soggetti-not-completed"); - } - return notCompleted; - } - - private static final List INFRASTRUTTURE = Arrays. asList("1A", "2A", "A4A", "A4B", "A4C", "A4D", - "A4E", "A4F", "A5A", "B4A", "B4B", "B4C", "B5A"); - - private static List notCompletedDescrizioneEdificio(long dettPraticaId) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - List notCompleted = new ArrayList<>(); - // Se in "Dettagli/Destinazione" è selezionato "altri interventi" rendere non obbligatoria la compilazione della - // sezione "descrizione interventi" - if (dettPratica.getDestinazione().equals("3") || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q2) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { - return notCompleted; - } - // se infrastruttura controllo solo DATI INFRASTRUTTURA - if (INFRASTRUTTURE.contains(dettPratica.getDestinazione())) { - boolean isCompleted = dettPratica.getDeInfStradaleStrada() || dettPratica.getDeInfStradalePonte() - || dettPratica.getDeInfStradaleAltro() || dettPratica.getDeInfIdraulicaLong() - || dettPratica.getDeInfIdraulicaTrasv() || dettPratica.getDeInfIdraulicaAltro() - || dettPratica.getDeInfOperaAccStradale() || dettPratica.getDeInfOperaAccIdraulica() - || dettPratica.getDeInfOperaAccAltro() || dettPratica.getDeInfAltraInfrastruttura() - || Validator.isNotNull(dettPratica.getDeInfAltroDesc()); - if (!isCompleted) { - notCompleted.add("de-inf-title"); - } - return notCompleted; - } - // se non infrastruttura controllo il resto - if (Validator.isNull(dettPratica.getDePiani())) { - notCompleted.add("de-piani"); - } - if (Validator.isNull(dettPratica.getDeAltezza())) { - notCompleted.add("de-altezza"); - } - if (Validator.isNull(dettPratica.getDeInterrati())) { - notCompleted.add("de-interrati"); - } - if (Validator.isNull(dettPratica.getDeSuperficie())) { - notCompleted.add("de-superficie"); - } - if (Validator.isNull(dettPratica.getDeCostruzione())) { - notCompleted.add("de-costruzione"); - } - if (Validator.isNull(dettPratica.getDeUso())) { - notCompleted.add("de-uso"); - } - if (Validator.isNull(dettPratica.getDeUtilizzazione())) { - notCompleted.add("de-utilizzazione"); - } - if (Validator.isNull(dettPratica.getDePrivata())) { - notCompleted.add("de-privata"); - } - if (Validator.isNull(dettPratica.getDePubblica())) { - notCompleted.add("de-pubblica"); - } - boolean isComponentiCostruttiveDisabled = !dettPratica.getTcNuovaCostruzione() - && dettPratica.getTcRiparazioneInterventoLocale(); - if (isComponentiCostruttiveDisabled) { - return notCompleted; - } - boolean elevazioni = (Validator.isNotNull(dettPratica.getDccStruttureEleMuraturePietrame()) - || Validator.isNotNull(dettPratica.getDccStruttureEleMuratureLaterizio()) - || Validator.isNotNull(dettPratica.getDccStruttureEleMuratureMisto()) || Validator - .isNotNull(dettPratica.getDccStruttureEleMuratureStoriche())) - || (Validator.isNotNull(dettPratica.getDccStruttureEleMistoCA()) - || Validator.isNotNull(dettPratica.getDccStruttureEleMistoAcciaio()) - || Validator.isNotNull(dettPratica.getDccStruttureEleMistoMuratura()) || Validator - .isNotNull(dettPratica.getDccStruttureEleMistoLegno())) - || Validator.isNotNull(dettPratica.getDccStruttureElePrefabbricato()) - || (Validator.isNotNull(dettPratica.getDccStruttureEleAltro()) && Validator.isNotNull(dettPratica - .getDccStruttureEleAltroDescrizione())); - if (!elevazioni) { - notCompleted.add("dcc-strutture-ele"); - } - boolean orizzontamenti = Validator.isNotNull(dettPratica.getDccOrizzontamentiCAAcciaio()) - || Validator.isNotNull(dettPratica.getDccOrizzontamentiLamieraGrecata()) - || Validator.isNotNull(dettPratica.getDccOrizzontamentiLegno()) - || Validator.isNotNull(dettPratica.getDccOrizzontamentiLegnoCA()) - || Validator.isNotNull(dettPratica.getDccOrizzontamentiVolte()) - || (Validator.isNotNull(dettPratica.getDccOrizzontamentiAltro()) && Validator.isNotNull(dettPratica - .getDccOrizzontamentiAltroDescrizione())); - if (!orizzontamenti) { - notCompleted.add("dcc-orizzontamenti"); - } - boolean coperture = Validator.isNotNull(dettPratica.getDccCoperturaCAAcciaio()) - || Validator.isNotNull(dettPratica.getDccCoperturaLamieraGrecata()) - || Validator.isNotNull(dettPratica.getDccCoperturaLeggere()) - || Validator.isNotNull(dettPratica.getDccCoperturaLegno()) - || Validator.isNotNull(dettPratica.getDccCoperturaLegnoCA()) - || Validator.isNotNull(dettPratica.getDccCoperturaPannelli()) - || Validator.isNotNull(dettPratica.getDccCoperturaPVCTelonati()) - || (Validator.isNotNull(dettPratica.getDccCoperturaAltro()) && Validator.isNotNull(dettPratica - .getDccCoperturaAltroDesrizione())); - if (!coperture) { - notCompleted.add("dcc-copertura"); - } - boolean non_strutturali = Validator.isNotNull(dettPratica.getDccElemNonStrutLaterizio()) - || Validator.isNotNull(dettPratica.getDccElemNonStrutCalcestruzzo()) - || Validator.isNotNull(dettPratica.getDccElemNonStrutCartongesso()) - || Validator.isNotNull(dettPratica.getDccElemNonStrutLegno()) - || (Validator.isNotNull(dettPratica.getDccElemNonStrutAltro()) && Validator.isNotNull(dettPratica - .getDccElemNonStrutAltroDescrizione())); - if (!non_strutturali) { - notCompleted.add("dcc-non_strutturali"); - } - boolean rinforzo = Validator.isNotNull(dettPratica.getDccOpereDiRinforzoInsCatene()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoInsCordoli()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoIniArmate()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoPlaccaggi()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoIrrSolai()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoRinforziFRP()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoTelaiECerchiature()) - || Validator.isNotNull(dettPratica.getDccOpereDiRinforzoInsRompitratta()) - || (Validator.isNotNull(dettPratica.getDccOpereDiRinforzoAltro()) && Validator.isNotNull(dettPratica - .getDccOpereDiRinforzoAltroDescrizione())); - if (!rinforzo) { - notCompleted.add("dcc-opere-di-rinforzo"); - } - return notCompleted; - } - - public static List notCompletedSezioneGeologica(long dettPraticaId) throws PortalException, SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List notCompleted = new ArrayList<>(); - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(dettPratica.getIntPraticaId()); - boolean geologo = false; - for (Soggetto soggetto : soggetti) { - if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.GEOLOGO)) { - geologo = true; - break; - } - } - // Se check NormArt3com3 sez. geologica non obbligatoria - if (dettPratica.getNormArt3com3() && !geologo) { - return Collections.emptyList(); - } - notCompleted.addAll(notCompletedDatiSezionGeologica(dettPraticaId)); - String pericolositaGeomorfologicaPai = dettPratica.getGeoPericolositaGeomorfica(); - String rischioGeomorfologicoPai = dettPratica.getGeoRischioGeomorfologicoPai(); - String pericolositaIdraulicaPai = dettPratica.getGeoPericolositaIdraulicaPai(); - String rischioIdraulicoPai = dettPratica.getGeoRischioIdraulicoPai(); - if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), "A22", - QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { - if (Validator.isNotNull(pericolositaGeomorfologicaPai) - && pericolositaGeomorfologicaPai.equalsIgnoreCase("NA") - && Validator.isNotNull(rischioGeomorfologicoPai) && rischioGeomorfologicoPai.equalsIgnoreCase("NA") - && Validator.isNotNull(pericolositaIdraulicaPai) && pericolositaIdraulicaPai.equalsIgnoreCase("NA") - && Validator.isNotNull(rischioIdraulicoPai) && rischioIdraulicoPai.equalsIgnoreCase("NA")) { - notCompleted.add("Nessun allegato per A22 - " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A22")); - } - } - if ((Validator.isNotNull(pericolositaGeomorfologicaPai) && !pericolositaGeomorfologicaPai - .equalsIgnoreCase("NA")) - || (Validator.isNotNull(rischioGeomorfologicoPai) && !rischioGeomorfologicoPai.equalsIgnoreCase("NA")) - || (Validator.isNotNull(pericolositaIdraulicaPai) && !pericolositaIdraulicaPai.equalsIgnoreCase("NA")) - || (Validator.isNotNull(rischioIdraulicoPai) && !rischioIdraulicoPai.equalsIgnoreCase("NA"))) { - if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), "A23", - QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { - notCompleted.add("Nessun allegato per A23 - " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A23")); - } - if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(dettPratica.getIntPraticaId(), "A22", - QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { - notCompleted.add("Nessun allegato per A22 - " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A22")); - } - } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - notCompleted.addAll(firmeMancanti(intPratica, dettPratica, DocumentiPraticaUtil.getDocGeologo())); - return notCompleted; - } - - private static List firmeMancanti(IntPratica intPratica, DettPratica dettPratica, List tipologie) - throws SystemException, PortalException { - - List notCompleted = new ArrayList<>(); - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPratica.getIntPraticaId()); - String cfTitolare = intPratica.getUserName(); - long intPraticaId = intPratica.getIntPraticaId(); - for (String tipologia : tipologie) { - List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, - tipologia, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - Set firmeMancanti = new HashSet<>(); - for (DocPratica doc : docs) { - List firmeObbligatorie = getFirmeObbligatorie(tipologia, dettPratica); - FirmeBean firmeBean = FirmeUtil.deserialize(doc.getJsonFirmatari()); - List firmePresenti = firmeBean.allSignatures(); - for (Soggetto soggetto : soggetti) { - if (firmePresenti.contains(soggetto.getCodiceFiscale().toLowerCase())) { - firmeObbligatorie.remove(soggetto.getTipologiaSoggetto()); - } - } - if (firmePresenti.contains(cfTitolare)) { - firmeObbligatorie.remove(TipoSoggettoUtil.TITOLARE_DIGITALE); - } - for (String firma : firmeObbligatorie) { - firmeMancanti.add(firma); - } - } - if (!firmeMancanti.isEmpty()) { - List tipologieMancanti = new ArrayList<>(); - for (String firmaMancante : firmeMancanti) { - tipologieMancanti.add(LanguageUtil.get(Locale.getDefault(), "gc-soggetto-" + firmaMancante)); - } - notCompleted.add(tipologia + " - " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + tipologia) - + ", firme mancanti: " + StringUtils.join(tipologieMancanti, StringPool.COMMA_AND_SPACE)); - } - } - return notCompleted; - } - - private static List notCompletedDatiSezionGeologica(long dettPraticaId) throws PortalException, - SystemException { - - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - List notCompleted = new ArrayList<>(); - if (Validator.isNull(dettPratica.getGeoRischioGeomorfologicoPai())) { - notCompleted.add("geo-rischio-geomorfologico-pai"); - } - if (Validator.isNull(dettPratica.getGeoPericolositaIdraulicaPai())) { - notCompleted.add("geo-pericolosita-idraulica-pai"); - } - if (Validator.isNull(dettPratica.getGeoRischioIdraulicoPai())) { - notCompleted.add("geo-rischio-idraulico-pai"); - } - if (Validator.isNull(dettPratica.getGeoPericolositaGeomorfica())) { - notCompleted.add("geo-pericolosita-geomorfica"); - } - return notCompleted; - } - - private static List notCompletedSezioneAllegati(long dettPraticaId) throws PortalException, SystemException { - - List notCompleted = new ArrayList<>(); - DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId); - long intPraticaId = dettPratica.getIntPraticaId(); - IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(intPraticaId); - Set docObbligatori = DocumentiPraticaUtil.getDocObbligatoriDomanda(intPratica, dettPratica); - for (String docObbligatorio : docObbligatori) { - List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, - docObbligatorio, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - if (docs.isEmpty()) { - notCompleted.add("Nessun allegato per " + docObbligatorio + " - " - + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + docObbligatorio)); - } - } - notCompleted.addAll(firmeMancanti(intPratica, dettPratica, DocumentiPraticaUtil.getDocDomanda())); - return notCompleted; - } - - private static List getSignaturePerSubject(long intPraticaId, List signatures, String tipoSoggetto, - long docPraticaClassPk) throws SystemException { - - List signaturesPerSubject = new ArrayList(); - for (String sign : signatures) { - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(intPraticaId, - sign, docPraticaClassPk); - for (Soggetto soggetto : soggetti) { - if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto) && !signaturesPerSubject.contains(sign)) { - signaturesPerSubject.add(sign); - } - } - } - return signaturesPerSubject; - } - - public static boolean isAllRequiredValid(String codiceDoc, long intPraticaId, List signatures, - List tipologiaSoggetti, DocPratica docPratica) throws SystemException { - - for (String tipoSoggetto : tipologiaSoggetti) { - boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); - if (isRequired) { - List signaturesPerSubject = getSignaturePerSubject(intPraticaId, signatures, tipoSoggetto, - docPratica.getClassPk()); - if (signaturesPerSubject.isEmpty()) { - return false; - } - } - } - return true; - } - - public static boolean isFineLavoriDatiCompleted(long fineLavoriId) throws PortalException, SystemException { - - return notCompletedFineLavoriDati(fineLavoriId).isEmpty(); - } - - public static List notCompletedFineLavoriDati(long fineLavoriId) throws PortalException, SystemException { - - FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); - List notCompleted = new ArrayList<>(); - if (Validator.isNull(fineLavori.getParziale())) { - notCompleted.add("fl-tipo"); - } - if (fineLavori.getParziale() - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(fineLavori.getIntPraticaId(), false) > 0) { - notCompleted.add("fl-parziale-not-possibile"); - } - if (Validator.isNull(fineLavori.getDataFineLavori())) { - notCompleted.add("fl-data-fine"); - } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(fineLavori.getIntPraticaId()); - if (Validator.isNull(fineLavori.getDataFineLavori()) - || fineLavori.getDataFineLavori().before(intPratica.getDtPratica())) { - notCompleted.add("fl-data-fine-early"); - } - if (Validator.isNull(fineLavori.getCodiceFiscaleDelegato())) { - notCompleted.add("fl-dir-lav"); - } - return notCompleted; - } - - private static boolean isFineLavoriAllegatiCompleted(long fineLavoriId) throws PortalException, SystemException { - - FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(fineLavoriId); - long intPraticaId = fineLavori.getIntPraticaId(); - for (String codiceDoc : DocumentiPraticaUtil.getDocObbligatoriFineLavori()) { - List docs = DocPraticaLocalServiceUtil.findByClassPk_Tipologia(fineLavoriId, codiceDoc, - QueryUtil.ALL_POS, QueryUtil.ALL_POS); - if (docs.isEmpty()) { - return false; // Ci dev'essere almeno un allegato per tipo obbligatorio - } - for (DocPratica doc : docs) { - FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); - List signatures = firme.allSignatures(); - if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, TipoSoggettoUtil.getAllSubjects(), doc)) { - return false; // Return false if is required per this subjectType but it is not present - } - } - } - return true; - } - - public static boolean isCollaudoDatiCompleted(long collaudoId) throws PortalException, SystemException { - - return notCompletedCollaudoDati(collaudoId).isEmpty(); - } - - public static List notCompletedCollaudoDati(long collaudoId) throws PortalException, SystemException { - - Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); - List notCompleted = new ArrayList<>(); - if (Validator.isNull(collaudo.getParziale())) { - notCompleted.add("col-tipo"); - } - if (collaudo.getParziale() - && CollaudoLocalServiceUtil.countByIntPraticaId_Parziale(collaudo.getIntPraticaId(), false) > 0) { - notCompleted.add("col-parziale-not-possibile"); - } - if (!collaudo.getParziale() - && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(collaudo.getIntPraticaId(), - false, true) == 0) { - notCompleted.add("col-totale-not-possibile"); - } - if (Validator.isNull(collaudo.getDataCollaudo())) { - notCompleted.add("col-data-fine"); - } - if (Validator.isNull(collaudo.getCodiceFiscaleDelegato())) { - notCompleted.add("col-collaudatore"); - } - return notCompleted; - } - - private static boolean isCollaudoAllegatiCompleted(long collaudoId) throws PortalException, SystemException { - - Collaudo collaudo = CollaudoServiceUtil.getCollaudo(collaudoId); - long intPraticaId = collaudo.getIntPraticaId(); - for (String codiceDoc : DocumentiPraticaUtil.getDocObbligatoriCollaudo()) { - List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, - codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); - if (docs.isEmpty()) { - return false; // Ci dev'essere almeno un allegato per tipo obbligatorio - } - for (DocPratica doc : docs) { - FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); - List signatures = firme.allSignatures(); - if (!isAllRequiredValid(codiceDoc, intPraticaId, signatures, TipoSoggettoUtil.getAllSubjects(), doc)) { - return false; // Return false if is required per this subjectType but it is not present - } - } - } - return true; - } - - public static boolean isAsseverazioneSignedByOwner(String fileName, byte[] fileBytes, long companyId, - String codiceFiscaleOwner, String jsonFirmatariApplicativo) throws Exception { - - List signatures = gatherSignatures(fileName, fileBytes, companyId, jsonFirmatariApplicativo); - for (String cfSoggetto : signatures) { - if (cfSoggetto.equalsIgnoreCase(codiceFiscaleOwner)) { - return true; - } - } - return false; - } - - public static boolean isAllegatoSignedBySubjects(String fileName, byte[] fileBytes, long companyId, - List cfSoggetti, String jsonFirmatariApplicativo) throws Exception { - - List signatures = gatherSignatures(fileName, fileBytes, companyId, jsonFirmatariApplicativo); - for (String cfSign : signatures) { - for (String cfSoggetto : cfSoggetti) { - if (cfSign.equalsIgnoreCase(cfSoggetto)) { - return true; - } - } - } - return false; - } - - public static boolean isAllegatoSignedBySubjectsAndPerson(String fileName, byte[] fileBytes, long companyId, - List cfSoggetti, String codiceFiscalePersona, String jsonFirmatariApplicativo) throws Exception { - - List signatures = gatherSignatures(fileName, fileBytes, companyId, jsonFirmatariApplicativo); - boolean isSignedPersona = false; - boolean isSignedSoggetti = false; - for (String cfPersona : signatures) { - if (cfPersona.equalsIgnoreCase(codiceFiscalePersona)) { - isSignedPersona = true; - break; - } - } - if (isSignedPersona) { - for (String cfSoggetto : cfSoggetti) { - for (String cfSign : signatures) { - if (cfSoggetto.equalsIgnoreCase(cfSign)) { - isSignedSoggetti = true; - break; - } - } - } - } - return isSignedPersona && isSignedSoggetti; - } - - public static List gatherSignatures(String fileName, byte[] fileBytes, long companyId, - String jsonFirmatariApplicativo) throws PortalException, SystemException, IOException { - - List signatures = new ArrayList<>(); - if (Validator.isNotNull(jsonFirmatariApplicativo)) { - FirmeBean firme = FirmeUtil.deserialize(jsonFirmatariApplicativo); - signatures = firme.allSignatures(); - } - if (Validator.isNotNull(fileBytes)) { - signatures.addAll(extractSigns(companyId, fileName, fileBytes)); - } - return signatures; - } - - private static Set extractSigns(long companyId, String fileName, byte[] fileBytes) throws IOException, - PortalException, SystemException { - - Company company = CompanyLocalServiceUtil.getCompany(companyId); - String urlPdfExtractor = (String) company.getExpandoBridge().getAttribute("url_pdf_extractor", false); - HttpPost request = new HttpPost(urlPdfExtractor); - MultipartEntityBuilder builder = MultipartEntityBuilder.create(); - builder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE); - builder.addPart("file", new ByteArrayBody(fileBytes, fileName)); - request.setEntity(builder.build()); - CloseableHttpClient client = HttpClientBuilder.create().build(); - HttpResponse httpResponse = client.execute(request); - int statusCode = httpResponse.getStatusLine().getStatusCode(); - String responseBody = EntityUtils.toString(httpResponse.getEntity(), StringPool.UTF8); - client.close(); - if (statusCode == HttpServletResponse.SC_OK || statusCode == HttpServletResponse.SC_CREATED) { - JSONArray arrayFirme = JSONFactoryUtil.createJSONObject(responseBody).getJSONArray("cf"); - Set cf = new HashSet<>(); - for (int i = 0; i < arrayFirme.length(); i++) { - cf.add(arrayFirme.getString(i)); - } - return cf; - } else { - _log.warn("P7M REST extractor error. Response: " + new String(responseBody)); - } - return Collections.emptySet(); - } - - private static List getFirmeObbligatorie(String tipologiaAllegato, DettPratica dettPratica) - throws PortalException, SystemException { - - List firme = new ArrayList<>(); - if (FIRME_OBBLIGATORIE.containsKey(tipologiaAllegato)) { - firme.addAll(FIRME_OBBLIGATORIE.get(tipologiaAllegato)); - } - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); - if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) - || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { - firme.remove(TipoSoggettoUtil.PROGETTISTA); - } - List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(dettPratica.getIntPraticaId()); - boolean dir_lavori = false; - for (Soggetto soggetto : soggetti) { - if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)) { - dir_lavori = true; - break; - } - } - if (!dir_lavori) - firme.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); - return firme; - } - - @SuppressWarnings("serial") - private static final Map> FIRME_OBBLIGATORIE = new HashMap>(19) { - { - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09, - Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, TipoSoggettoUtil.PROGETTISTA)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A11, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A16, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A18, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A19, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A20, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A21, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A22, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A23, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, - TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.ARCHEOLOGO)); - put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A28, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); - } - }; -} diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java index 0186f1fb..080fc752 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/WorkflowUtil.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.util; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; @@ -143,9 +144,9 @@ public class WorkflowUtil { } IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); - if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + if (intPratica.isAutorizzazione()) { return true; - } else if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + } else if (intPratica.isDeposito()) { return false; } else { throw new SystemException("PRATICA_ZONA non esiste per zona " + territorio.getZona()); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/indexer/ControlloPraticaIndexer.java similarity index 99% rename from liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java rename to liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/indexer/ControlloPraticaIndexer.java index 03b25195..b52163d0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/indexer/ControlloPraticaIndexer.java @@ -1,5 +1,6 @@ -package it.tref.liferay.portos.bo.indexer; +package it.mwg.sismica.bo.indexer; +import it.mwg.sismica.bo.shared.util.PortosIndexField; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.DettPratica; @@ -19,7 +20,6 @@ import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaActionableDynamicQuery; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.PortosIndexField; import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.text.Format; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/indexer/IntPraticaIndexer.java similarity index 99% rename from liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java rename to liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/indexer/IntPraticaIndexer.java index 000fc5b3..718e22d6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/indexer/IntPraticaIndexer.java @@ -1,5 +1,7 @@ -package it.tref.liferay.portos.bo.indexer; +package it.mwg.sismica.bo.indexer; +import it.mwg.sismica.bo.shared.util.PortosIndexField; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; @@ -17,8 +19,6 @@ import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.persistence.IntPraticaActionableDynamicQuery; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.PortosIndexField; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.text.Format; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/ControlloPraticaAdvancedSearch.java similarity index 98% rename from liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java rename to liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/ControlloPraticaAdvancedSearch.java index a7b07a9d..21f5ffe4 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/ControlloPraticaAdvancedSearch.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/ControlloPraticaAdvancedSearch.java @@ -1,11 +1,11 @@ -package it.tref.liferay.portos.bo.search; +package it.mwg.sismica.bo.search; +import it.mwg.sismica.bo.shared.util.PortosIndexField; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.util.PortosIndexField; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import java.text.DateFormat; import java.text.Format; @@ -49,7 +49,6 @@ import com.liferay.portal.model.Role; import com.liferay.portal.model.User; import com.liferay.portal.service.OrganizationLocalServiceUtil; import com.liferay.portal.service.RoleLocalServiceUtil; -import com.liferay.portal.service.RoleLocalServiceUtil; public class ControlloPraticaAdvancedSearch { @@ -600,8 +599,7 @@ public class ControlloPraticaAdvancedSearch { } if (Validator.isNotNull(geologi) && !geologi.equals(-1L) && !geologi.equals(0L)) { - TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "geologi", - geologi); + TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "geologi", geologi); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } @@ -612,8 +610,7 @@ public class ControlloPraticaAdvancedSearch { } if (Validator.isNotNull(unitaOperativa) && !unitaOperativa.equals("-1")) { - TermQuery uoQuery = TermQueryFactoryUtil.create(searchContext, "unitaOperativa", - unitaOperativa); + TermQuery uoQuery = TermQueryFactoryUtil.create(searchContext, "unitaOperativa", unitaOperativa); booleanQuery.add(uoQuery, BooleanClauseOccur.MUST); } @@ -659,10 +656,11 @@ public class ControlloPraticaAdvancedSearch { String tipoProcedura = ParamUtil.getString(request, PortosIndexField.TIPO_PROCEDURA); if (Validator.isNotNull(tipoProcedura) && !tipoProcedura.equals("-1")) { String[] procSplit = StringUtils.split(tipoProcedura, "|"); - if(procSplit.length > 0){ - for(String proc : procSplit){ + if (procSplit.length > 0) { + for (String proc : procSplit) { BooleanQuery bq = BooleanQueryFactoryUtil.create(searchContext); - TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.TIPO_PROCEDURA, proc); + TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.TIPO_PROCEDURA, + proc); bq.add(termQuery, BooleanClauseOccur.SHOULD); booleanQuery.add(bq, BooleanClauseOccur.MUST); } @@ -700,4 +698,4 @@ public class ControlloPraticaAdvancedSearch { sortes.add(sort); return sortes.toArray(new Sort[0]); } -} \ 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/search/IntPraticaAdvancedSearch.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/IntPraticaAdvancedSearch.java similarity index 99% rename from liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java rename to liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/IntPraticaAdvancedSearch.java index 2c51961b..202429f8 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/search/IntPraticaAdvancedSearch.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/search/IntPraticaAdvancedSearch.java @@ -1,8 +1,8 @@ -package it.tref.liferay.portos.bo.search; +package it.mwg.sismica.bo.search; +import it.mwg.sismica.bo.shared.util.PortosIndexField; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; -import it.tref.liferay.portos.bo.util.PortosIndexField; import java.text.DateFormat; import java.text.Format; @@ -84,7 +84,7 @@ public class IntPraticaAdvancedSearch { booleanQuery.add(termQuery, BooleanClauseOccur.MUST); // Condizioni aggiuntive query(request, user, booleanQuery, searchContext); - + hits = SearchEngineUtil.search(searchContext, booleanQuery); logResults(user, booleanQuery, hits); } catch (SearchException | ParseException e) { @@ -268,7 +268,7 @@ public class IntPraticaAdvancedSearch { */ private static void query(HttpServletRequest request, User user, BooleanQuery booleanQuery, SearchContext searchContext) { - + String istruttoreId = ParamUtil.getString(request, "istruttore"); String unitaOperativa = ParamUtil.getString(request, "unitaOperativa"); Long geologi = ParamUtil.getLong(request, "geologi"); @@ -306,7 +306,7 @@ public class IntPraticaAdvancedSearch { } queryStatoPratica(request, booleanQuery, searchContext); addRequiredTerms(booleanQuery, PortosIndexField.COMMITTENTI, ParamUtil.getString(request, "committente")); - + addRequiredTerms(booleanQuery, PortosIndexField.ISTRUTTORE_FULL_NAME, ParamUtil.getString(request, "tecnicoIstruttore")); addRequiredTerms(booleanQuery, PortosIndexField.PROPRIETARIO_DIGITALE_FULL_NAME, @@ -321,31 +321,31 @@ public class IntPraticaAdvancedSearch { } queryComune(request, booleanQuery, searchContext); queryDate(request, booleanQuery, searchContext); - + if (Validator.isNotNull(istruttoreId) && !istruttoreId.equals("-1") && !istruttoreId.equals("0")) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "istruttoreUserId", istruttoreId); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } - + if (Validator.isNotNull(unitaOperativa) && !unitaOperativa.equals("-1")) { TermQuery uoQuery = TermQueryFactoryUtil.create(searchContext, "unitaOperativa", unitaOperativa); booleanQuery.add(uoQuery, BooleanClauseOccur.MUST); } - + if (Validator.isNotNull(geologi) && !geologi.equals(-1L) && !geologi.equals(0L)) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "geologi", geologi); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } - - if (Validator.isNotNull(parereGeologo) && !parereGeologo.equals(-1L)) { + + if (Validator.isNotNull(parereGeologo) && !parereGeologo.equals(-1L)) { TermQuery singleGroupIdQuery = TermQueryFactoryUtil.create(searchContext, "parereGeologo", parereGeologo); booleanQuery.add(singleGroupIdQuery, BooleanClauseOccur.MUST); } - + } catch (ParseException | java.text.ParseException e) { _log.error(e, e); } @@ -482,7 +482,7 @@ public class IntPraticaAdvancedSearch { booleanQuery.add(termQuery, BooleanClauseOccur.MUST); } } - + private static void queryTipoProcedura(HttpServletRequest request, BooleanQuery booleanQuery, SearchContext searchContext) throws ParseException { @@ -529,7 +529,7 @@ public class IntPraticaAdvancedSearch { else if (statoPratica.equals(StatoPraticaConstants.VARIATA)) termQuery = TermQueryFactoryUtil.create(searchContext, "variata", StringPool.TRUE); else if(statoPratica.equals(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE)) - termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 1L); + termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 1L); else if (!statoPratica.equals("-1")) termQuery = TermQueryFactoryUtil.create(searchContext, PortosIndexField.STATO_PRATICA, statoPratica); if (Validator.isNotNull(termQuery)) 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 e1f78d11..aefa1107 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 @@ -3,6 +3,7 @@ */ package it.mwg.sismica.bo.util; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.ControlloPratica; @@ -20,7 +21,6 @@ import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; 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.WorkflowConstants; import java.io.Serializable; import java.sql.Connection; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java index 59c8c111..94cad2e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java @@ -8,19 +8,31 @@ package it.tref.liferay.portos.bo.model.impl; +import it.tref.liferay.portos.bo.model.DettPratica; +import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Soggetto; +import it.tref.liferay.portos.bo.model.Territorio; +import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; +import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; +import it.tref.liferay.portos.bo.util.SoggettiUtil; import java.io.Serializable; +import java.util.Locale; import java.util.Map; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONDeserializer; import com.liferay.portal.kernel.json.JSONFactoryUtil; +import com.liferay.portal.kernel.language.LanguageUtil; +import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.service.UserLocalServiceUtil; /** * The extended model implementation for the Asseverazione service. Represents a row in the @@ -52,7 +64,7 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl { } @Override - public String getModello() throws PortalException, SystemException { + public String getModello() throws SystemException{ String modello = StringPool.BLANK; switch (this.getTipologia()) { @@ -85,4 +97,94 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl { } return modello; } + + @Override + public boolean hasCambioStatoAsseverazione(long userId) throws PortalException, SystemException { + + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(getDettPraticaId()); + return dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT + && (dettPratica.getUserId() == userId || getCodiceFiscale().equalsIgnoreCase( + UserLocalServiceUtil.getUser(userId).getScreenName())); + } + + @Override + public boolean hasGestisciFileAsseverazione(long userId) throws PortalException, SystemException { + + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(getDettPraticaId()); + return dettPratica.getUserId() == userId && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT; + } + + @Override + public String retrieveText(String codiceFiscale) throws PortalException, SystemException{ + + if (!codiceFiscale.equalsIgnoreCase(getCodiceFiscale())) { + return StringPool.BLANK; + } + Object[] params = new Object[] {}; + String result = StringPool.BLANK; + String tipoAsseverazione = getTipologia(); + DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(getDettPraticaId()); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + Soggetto soggetto = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto( + getIntPraticaId(), codiceFiscale, getTipologia(), 0); + switch (tipoAsseverazione) { + case TipoSoggettoUtil.COLLAUDATORE: + params = new Object[] { + soggetto.getDescrizioneCompleta(), + ("albo-altro".equalsIgnoreCase(soggetto.getAlbo()) ? soggetto.getAlboDescr() : soggetto + .getAlbo()), soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; + break; + case TipoSoggettoUtil.COMMITTENTE: + params = new Object[] { soggetto.getDescrizioneCompleta() }; + break; + case TipoSoggettoUtil.DIRETTORE_LAVORI: + params = new Object[] { + soggetto.getDescrizioneCompleta(), + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) + ? "Principale" : StringPool.BLANK) + + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto + .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto + .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, "label-ambito-" + + soggetto.getAmbitoProfessione()))), soggetto.getAlbo(), + soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo() }; + break; + case TipoSoggettoUtil.DITTA: + params = new Object[] { + soggetto.getCodiceFiscale().toUpperCase() + " - " + soggetto.getLegaleRap(), + soggetto.getDenominazione() + + StringPool.SPACE + + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), + dettPratica.getDettPraticaId()) ? "Principale" : StringPool.BLANK) + + StringPool.SPACE + + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto + .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto + .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, "label-ambito-" + + soggetto.getAmbitoProfessione()))) }; + break; + case TipoSoggettoUtil.GEOLOGO: + params = new String[] { soggetto.getDescrizioneCompleta() }; + break; + case TipoSoggettoUtil.PROGETTISTA: + Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); + params = new Object[] { + soggetto.getDescrizioneCompleta(), + (SoggettiUtil.isSoggettoPrincipale(soggetto.getSoggettoId(), dettPratica.getDettPraticaId()) + ? "Principale" : StringPool.BLANK) + + (Validator.isNull(soggetto.getAmbitoProfessione()) ? StringPool.BLANK : (soggetto + .getAmbitoProfessione().equalsIgnoreCase("ambitoProf-altro") ? soggetto + .getAmbitoAttivita() : LanguageUtil.get(Locale.ITALIAN, "label-ambito-" + + soggetto.getAmbitoProfessione()))), soggetto.getAlbo(), + soggetto.getProvinciaAlbo(), soggetto.getNumIscrAlbo(), + dettPratica.getTcNuovaCostruzione() ? "X" : StringPool.SPACE, + dettPratica.getTcAdeguamentoSismico() ? "X" : StringPool.SPACE, + dettPratica.getTcMiglioramentoSismico() ? "X" : StringPool.SPACE, + dettPratica.getTcRiparazioneInterventoLocale() ? "X" : StringPool.SPACE, territorio.getZona(), + territorio.getFascia() }; + break; + } + result = LanguageUtil.format(LocaleUtil.ITALIAN, "confirm-asseverazione-" + tipoAsseverazione, params); + // Added fixed bottom + result += LanguageUtil.get(LocaleUtil.ITALIAN, "confirm-asseverazione-bottom"); + return result; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java index e46780f9..4239662c 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java @@ -8,12 +8,22 @@ package it.tref.liferay.portos.bo.model.impl; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; +import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; +import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.shared.bean.FirmeBean; +import it.tref.liferay.portos.bo.shared.util.FirmeUtil; +import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; +import java.util.ArrayList; +import java.util.List; import java.util.Locale; +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.log.Log; @@ -49,9 +59,9 @@ public class CollaudoImpl extends CollaudoBaseImpl { StringBuilder sb = new StringBuilder(); try { IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { sb.append("Deposito "); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { sb.append("Autorizzazione "); } sb.append("n. "); @@ -86,4 +96,65 @@ public class CollaudoImpl extends CollaudoBaseImpl { return getTitle(); } + + @Override + public boolean canCompleteCollaudoEsente() throws SystemException, PortalException { + + return pagamentoCollaudoIsEnable() && getNormEsenteBollo(); + } + + private boolean isCollaudoAllegatiCompleted() throws PortalException, SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + for (String codiceDoc : DocumentiPraticaUtil.getDocObbligatoriCollaudo()) { + List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(getIntPraticaId(), + codiceDoc, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + if (docs.isEmpty()) { + return false; // Ci dev'essere almeno un allegato per tipo obbligatorio + } + for (DocPratica doc : docs) { + FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); + List signatures = firme.allSignatures(); + if (!intPratica.isAllRequiredValid(codiceDoc, signatures, TipoSoggettoUtil.getAllSubjects(), doc)) { + return false; // Return false if is required per this subjectType but it is not present + } + } + } + return true; + } + + @Override + public boolean isCollaudoDatiCompleted() throws PortalException, SystemException { + + return notCompletedCollaudoDati().isEmpty(); + } + + @Override + public List notCompletedCollaudoDati() throws SystemException { + + List notCompleted = new ArrayList<>(); + if (Validator.isNull(getParziale())) { + notCompleted.add("col-tipo"); + } + if (getParziale() && CollaudoLocalServiceUtil.countByIntPraticaId_Parziale(getIntPraticaId(), false) > 0) { + notCompleted.add("col-parziale-not-possibile"); + } + if (!getParziale() + && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(getIntPraticaId(), false, true) == 0) { + notCompleted.add("col-totale-not-possibile"); + } + if (Validator.isNull(getDataCollaudo())) { + notCompleted.add("col-data-fine"); + } + if (Validator.isNull(getCodiceFiscaleDelegato())) { + notCompleted.add("col-collaudatore"); + } + return notCompleted; + } + + @Override + public boolean pagamentoCollaudoIsEnable() throws SystemException, PortalException { + + return isCollaudoDatiCompleted() && isCollaudoAllegatiCompleted(); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java index dd20c18f..213a72d6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java @@ -8,13 +8,43 @@ package it.tref.liferay.portos.bo.model.impl; +import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; +import it.tref.liferay.portos.bo.model.Asseverazione; +import it.tref.liferay.portos.bo.model.Delega; +import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.model.Soggetto; +import it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil; +import it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.service.IntPraticaServiceUtil; +import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; +import it.tref.liferay.portos.bo.shared.bean.FirmeBean; +import it.tref.liferay.portos.bo.shared.util.Constants; +import it.tref.liferay.portos.bo.shared.util.FirmeUtil; +import it.tref.liferay.portos.bo.shared.util.SezioniUtil; +import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; +import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; +import it.tref.liferay.portos.bo.util.DelegheUtil; +import it.tref.liferay.portos.bo.util.SoggettiUtil; import java.text.SimpleDateFormat; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; import java.util.Locale; +import java.util.Map; +import java.util.Set; +import java.util.TreeSet; +import org.apache.commons.lang.StringUtils; + +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.language.LanguageUtil; @@ -24,6 +54,9 @@ import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; +import com.liferay.portal.model.User; +import com.liferay.portal.service.UserLocalServiceUtil; /** * The extended model implementation for the DettPratica service. Represents a row in the @@ -54,9 +87,9 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { IntPratica intPratica = null; try { intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { sb.append("Deposito "); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { sb.append("Autorizzazione "); } sb.append("n. "); @@ -128,4 +161,1034 @@ public class DettPraticaImpl extends DettPraticaBaseImpl { .append(StringPool.CLOSE_PARENTHESIS); return sb.toString(); } + + @Override + public boolean allAsseverazioniCompleted() throws PortalException, SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(getTipoIntegrazione()) + || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(getTipoIntegrazione())) { + boolean soggetti = false; + boolean delegati = false; + List asseverazioniEseguite = AsseverazioneLocalServiceUtil.findByDettPratica_Esito( + getDettPraticaId(), AsseverazioniUtil.STATO_ESEGUITA, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + if (asseverazioniEseguite.size() == 0) { + return false; + } + List nuoviSoggetti = new ArrayList( + SoggettoLocalServiceUtil.getCfValidTmpByDettPratica(getDettPraticaId())); + List nuoviDelegati = new ArrayList( + DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(getDettPraticaId(), new String[] { + TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO, TipoSoggettoUtil.DITTA, + TipoSoggettoUtil.PROGETTISTA }, new String[] { AsseverazioniUtil.STATO_ESEGUITA })); + Set cfAsseverazioni = new HashSet<>(); + for (Asseverazione asseverazione : asseverazioniEseguite) { + cfAsseverazioni.add(asseverazione.getCodiceFiscale()); + } + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(getTipoIntegrazione())) { + boolean titolareDigitale = false; + User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); + if (cfAsseverazioni.contains(titolaredigitaleUser.getScreenName())) { + titolareDigitale = true; + } + if (cfAsseverazioni.containsAll(nuoviSoggetti)) { + soggetti = true; + } + nuoviDelegati.removeAll(nuoviSoggetti); + if (cfAsseverazioni.containsAll(nuoviDelegati)) { + delegati = true; + } + if (!soggetti && delegati) { + if (cfAsseverazioni.containsAll(nuoviSoggetti)) { + soggetti = true; + } + } + return titolareDigitale && soggetti && delegati; + } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(getTipoIntegrazione())) { + boolean soggettiPrincipali = false; + String[] tipoSoggetti = new String[] { TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.DITTA, + TipoSoggettoUtil.PROGETTISTA }; + List cfSoggettiPrincipali = SoggettoLocalServiceUtil + .getCfSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(getDettPraticaId(), + tipoSoggetti); + if (cfAsseverazioni.containsAll(cfSoggettiPrincipali)) { + soggettiPrincipali = true; + } + nuoviSoggetti.removeAll(cfSoggettiPrincipali); + if (cfAsseverazioni.containsAll(nuoviSoggetti)) { + soggetti = true; + } + nuoviDelegati.removeAll(cfSoggettiPrincipali); + nuoviDelegati.removeAll(nuoviSoggetti); + if (cfAsseverazioni.containsAll(nuoviDelegati)) { + delegati = true; + } + return soggettiPrincipali && soggetti && delegati; + } + } else { + for (String tipoSoggetto : AsseverazioniUtil.getRequired(AsseverazioniUtil.ASSEVERAZIONI_DOMANDA)) { + if (isAsseverazioneDomandaRequiredByTipoSoggetto(tipoSoggetto)) { + List asseverazioniEseguite = AsseverazioneLocalServiceUtil + .findByDettPratica_Tipologia_Esito(getDettPraticaId(), tipoSoggetto, + AsseverazioniUtil.STATO_ESEGUITA, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + if (asseverazioniEseguite.size() == 0) { + return false; + } + } + } + } + return true; + } + + @Override + public boolean asseverazioniIsEnable() throws SystemException, PortalException { + + return hasAsseverazioniAttive() + || (getStatus() == WorkflowConstants.STATUS_DRAFT + && SoggettoLocalServiceUtil.countValidTmpByIntPratica(getIntPraticaId()) > 0 + && praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId())); + } + + @Override + public boolean canCompleteDettPraticaEsente() throws SystemException, PortalException { + + return praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId()) + && allAsseverazioniCompleted() && !isCompleta() + && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId()); + } + + @Override + public boolean canCompleteIntegrazione() throws SystemException, PortalException { + + return praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId()) + && allAsseverazioniCompleted() + && IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId()) + && getStatus() != WorkflowConstants.STATUS_APPROVED; + } + + @Override + public boolean canCompleteUserEditing() throws SystemException, PortalException { + + IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(getIntPraticaId()); + return notCompletedAnagrafeSoggetti().size() == 0 && intPratica.getStatus() != WorkflowConstants.STATUS_ANY + && intPratica.getStatus() != WorkflowConstants.STATUS_INCOMPLETE + && TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(getTipoIntegrazione()); + } + + private boolean checkAsseverazioniRichiestaOriginaria(String tipoSoggetto) throws SystemException { + + List soggettiPerTipologia = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( + getDettPraticaId(), tipoSoggetto); + return soggettiPerTipologia != null && soggettiPerTipologia.size() > 0; + } + + @Override + public boolean delegheCompilazioneIsEnable() throws SystemException, PortalException { + + return SoggettoLocalServiceUtil.countValidTmpByIntPratica(getIntPraticaId()) > 0 && !hasAsseverazioniAttive(); + } + + private List firmeMancanti(IntPratica intPratica, List tipologie) throws PortalException, + SystemException { + + List notCompleted = new ArrayList<>(); + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPratica.getIntPraticaId()); + String cfTitolare = intPratica.getUserName(); + long intPraticaId = intPratica.getIntPraticaId(); + for (String tipologia : tipologie) { + List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(intPraticaId, + tipologia, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + Set firmeMancanti = new HashSet<>(); + for (DocPratica doc : docs) { + List firmeObbligatorie = getFirmeObbligatorie(tipologia); + FirmeBean firmeBean = FirmeUtil.deserialize(doc.getJsonFirmatari()); + List firmePresenti = firmeBean.allSignatures(); + for (Soggetto soggetto : soggetti) { + if (firmePresenti.contains(soggetto.getCodiceFiscale().toLowerCase())) { + firmeObbligatorie.remove(soggetto.getTipologiaSoggetto()); + } + } + if (firmePresenti.contains(cfTitolare)) { + firmeObbligatorie.remove(TipoSoggettoUtil.TITOLARE_DIGITALE); + } + for (String firma : firmeObbligatorie) { + firmeMancanti.add(firma); + } + } + if (!firmeMancanti.isEmpty()) { + List tipologieMancanti = new ArrayList<>(); + for (String firmaMancante : firmeMancanti) { + tipologieMancanti.add(LanguageUtil.get(Locale.getDefault(), "gc-soggetto-" + firmaMancante)); + } + notCompleted.add(tipologia + " - " + + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + tipologia) + + ", firme mancanti: " + StringUtils.join(tipologieMancanti, StringPool.COMMA_AND_SPACE)); + } + } + return notCompleted; + } + + @Override + public Set getDocObbligatoriDomanda() throws PortalException, SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + Set docObbligatori = new TreeSet<>(); + switch (intPratica.getTipoProcedura()) { + case Constants.PROCEDURA_P1: + case Constants.PROCEDURA_Q1: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + break; + case Constants.PROCEDURA_P2: + case Constants.PROCEDURA_Q2: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + break; + case Constants.PROCEDURA_P3: + case Constants.PROCEDURA_Q3: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24); + break; + case Constants.PROCEDURA_P4: + case Constants.PROCEDURA_Q4: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); + if (getTcViarch()) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24); + } + break; + case Constants.PROCEDURA_P5: + case Constants.PROCEDURA_Q5: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + if (getTcViarch()) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24); + } + break; + case Constants.PROCEDURA_P6: + case Constants.PROCEDURA_P7: + case Constants.PROCEDURA_Q6: + case Constants.PROCEDURA_Q7: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A11); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); + if (getTcViarch()) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24); + } + break; + case Constants.PROCEDURA_P8: + case Constants.PROCEDURA_Q8: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A19); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A20); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A21); + break; + case Constants.PROCEDURA_P9: + case Constants.PROCEDURA_Q9: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A16); + if (getSanatoriaEdilizia326()) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17); + } + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A18); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A19); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A20); + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A21); + break; + case Constants.PROCEDURA_P10: + case Constants.PROCEDURA_Q10: + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12); + break; + } + if (getTcCostruzioniEsistenti() || getTcNuovaCostruzionePertinenza() || getTcManutOrdStraord()) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A26); + } + if (!getTcNoOpereEscavazione() + && (!intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q8) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P8) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q9) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) && !intPratica + .getTipoProcedura().equals(Constants.PROCEDURA_P1))) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10); + } + if (richiestoA24()) { + docObbligatori.add(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24); + } + return docObbligatori; + } + + private List getFirmeObbligatorie(String tipologiaAllegato) throws PortalException, SystemException { + + List firme = new ArrayList<>(); + if (FIRME_OBBLIGATORIE.containsKey(tipologiaAllegato)) { + firme.addAll(FIRME_OBBLIGATORIE.get(tipologiaAllegato)); + } + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { + firme.remove(TipoSoggettoUtil.PROGETTISTA); + } + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(getIntPraticaId()); + boolean dir_lavori = false; + for (Soggetto soggetto : soggetti) { + if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.DIRETTORE_LAVORI)) { + dir_lavori = true; + break; + } + } + if (!dir_lavori) + firme.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); + return firme; + } + + @Override + public boolean hasAnnullaAsseverazioni(long userId) throws SystemException { + + return hasAsseverazioniAttive() && getUserId() == userId && getStatus() == WorkflowConstants.STATUS_DRAFT; + } + + @Override + public boolean hasAsseverazioneAttiva(long userId) throws PortalException, SystemException { + + return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_Esito(getDettPraticaId(), + UserLocalServiceUtil.getUser(userId).getScreenName(), AsseverazioniUtil.STATO_ASSEGNATA) > 0; + } + + @Override + public boolean hasAsseverazioniAttive() throws SystemException { + + return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(getDettPraticaId(), new String[] { + AsseverazioniUtil.STATO_ASSEGNATA, AsseverazioniUtil.STATO_ESEGUITA }) > 0; + } + + @Override + public boolean hasDelegaCompilazioneDomanda(long userId) throws PortalException, SystemException { + + boolean controllo = praticaIsEditable(); + if (controllo) { + User user = UserLocalServiceUtil.getUser(userId); + List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(getIntPraticaId(), + DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + if (deleghe.isEmpty()) { + controllo = user.getUserId() == getUserId(); + } else { + controllo = false; + for (Delega delega : deleghe) { + if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { + controllo = true; + } + } + } + } + return controllo; + } + + @Override + public boolean hasDelegaCompilazioneSezioneGeologica(long userId) throws PortalException, SystemException { + + boolean controllo = praticaIsEditable(); + if (controllo) { + User user = UserLocalServiceUtil.getUser(userId); + List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(getIntPraticaId(), + DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, + QueryUtil.ALL_POS, null); + if (deleghe.isEmpty()) { + controllo = hasDelegaCompilazioneDomanda(userId); + } else { + controllo = false; + for (Delega delega : deleghe) { + if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { + controllo = true; + } + } + } + } + return controllo; + } + + @Override + public boolean hasDelegaFirmaAllegati(long userId) throws PortalException, SystemException { + + boolean controllo = praticaIsEditable(); + if (controllo) { + User user = UserLocalServiceUtil.getUser(userId); + List deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(getIntPraticaId(), + DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI, new String[] { DelegheUtil.STATO_ASSEGNATA }, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + if (deleghe.isEmpty()) { + controllo = hasDelegaCompilazioneDomanda(userId); + } else { + controllo = false; + for (Delega delega : deleghe) { + if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) { + controllo = true; + } + } + } + } + return controllo; + } + + @Override + public boolean hasRichiediAsseverazioni(long userId) throws SystemException, PortalException { + + return !hasAsseverazioniAttive() && getUserId() == userId && praticaIsCompleta() + && getStatus() == WorkflowConstants.STATUS_DRAFT; + } + + @Override + public boolean isAsseverazioneDomandaRecommendedByTipoSoggetto(String tipoSoggetto) { + + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(getTipoIntegrazione()) + || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(getTipoIntegrazione())) { + return false; + } + if (Validator.isNotNull(AsseverazioniUtil.getRecommended(AsseverazioniUtil.ASSEVERAZIONI_DOMANDA))) { + return AsseverazioniUtil.getRecommended(AsseverazioniUtil.ASSEVERAZIONI_DOMANDA).contains(tipoSoggetto); + } + return false; + } + + @Override + public boolean isAsseverazioneDomandaRequiredByTipoSoggetto(String tipoSoggetto) throws PortalException, + SystemException { + + long intPraticaId = getIntPraticaId(); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(getTipoIntegrazione()) + || TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(getTipoIntegrazione())) { + Set nuoviSoggetti = new HashSet<>( + SoggettoLocalServiceUtil.getValidTmpByDettPratica_TipologiaSoggetto(getDettPraticaId(), + tipoSoggetto)); + List cfNuoviSoggetti = SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto( + getDettPraticaId(), tipoSoggetto); + List nuoviDelegati = DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito( + getDettPraticaId(), new String[] { tipoSoggetto }, + new String[] { AsseverazioniUtil.STATO_ESEGUITA }); + nuoviDelegati.removeAll(cfNuoviSoggetti); + for (String cfDelegato : nuoviDelegati) { + nuoviSoggetti.addAll(SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(getIntPraticaId(), + cfDelegato, 0L)); + } + if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(getTipoIntegrazione())) { + User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId()); + Soggetto titolareDigitale = SoggettoLocalServiceUtil + .getValidTmpByIntPratica_CodiceFiscale_TipologiaSoggetto(intPraticaId, + titolaredigitaleUser.getScreenName(), tipoSoggetto, 0); + if (Validator.isNotNull(titolareDigitale) + && tipoSoggetto.equalsIgnoreCase(titolareDigitale.getTipologiaSoggetto())) { + nuoviSoggetti.add(titolareDigitale); + } + } else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(getTipoIntegrazione())) { + if (!TipoSoggettoUtil.GEOLOGO.equalsIgnoreCase(tipoSoggetto) + && !TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto)) { + List soggettiPrincipali = SoggettoLocalServiceUtil + .getSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(getDettPraticaId(), + new String[] { tipoSoggetto }); + nuoviSoggetti.addAll(soggettiPrincipali); + } + } + return nuoviSoggetti.size() > 0; + } else { + boolean collaudatoreNotRequired = getNoCollaudo() || getCollaudoStatico(); + boolean direttoreLavoriNotRequired = getLavoriPubblici() || getNormLavoriNoDirettore(); + boolean dittaNotRequired = getNormLavoriInProprio() || getLavoriPubblici(); + if (TipoSoggettoUtil.TITOLARE_DIGITALE.equalsIgnoreCase(tipoSoggetto)) { + return true; + } else if (TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) && direttoreLavoriNotRequired) { + return checkAsseverazioniRichiestaOriginaria(tipoSoggetto); + } else if (TipoSoggettoUtil.COLLAUDATORE.equalsIgnoreCase(tipoSoggetto) && collaudatoreNotRequired) { + return false; + } else if (TipoSoggettoUtil.DITTA.equalsIgnoreCase(tipoSoggetto) && dittaNotRequired) { + return false; + } else if (TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto)) { + return AsseverazioniUtil.getRequired(AsseverazioniUtil.ASSEVERAZIONI_DOMANDA).contains(tipoSoggetto); + } else if (Validator.isNotNull(AsseverazioniUtil.getRequired(AsseverazioniUtil.ASSEVERAZIONI_DOMANDA))) { + return checkAsseverazioniRichiestaOriginaria(tipoSoggetto); + } + } + return false; + } + + @Override + public boolean isCollaudatoreRequired() { + + return getNoCollaudo() || getCollaudoStatico(); + } + + @Override + public boolean isRequiredTerna(String codiceDoc, List ditte, List committenti) + throws SystemException { + + if (codiceDoc.equals(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17)) { + if (SoggettiUtil.isCommittenteAndDitta(committenti, ditte) + && SoggettiUtil.isCollaudatorePresent(getDettPraticaId())) { + return true; + } else if (SoggettiUtil.isCommittenteAndDitta(committenti, ditte) && isCollaudatoreRequired()) { + return true; + } + } + return false; + } + + private List notCompletedAnagrafeSoggetti() throws PortalException, SystemException { + + long intPraticaId = getIntPraticaId(); + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + boolean collaudatoreNotRequired = getNoCollaudo() || getCollaudoStatico() || getNormLavoriInProprio() + || getNominaCollaudatore(); + boolean direttoreLavoriNotRequired = getLavoriPubblici() || getNormLavoriNoDirettore() + || getNormLavoriInProprio() || getNominaDirettoreLavori(); + boolean dittaNotRequired = getNormLavoriInProprio() || getLavoriPubblici() || getNominaImpresa(); + List soggettiRichiesti = new ArrayList<>(); + List notCompleted = new ArrayList<>(); + switch (intPratica.getTipoProcedura()) { + case Constants.PROCEDURA_P1: + case Constants.PROCEDURA_Q1: + case Constants.PROCEDURA_P8: + case Constants.PROCEDURA_Q8: + case Constants.PROCEDURA_P9: + case Constants.PROCEDURA_Q9: + soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); + soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA); + break; + case Constants.PROCEDURA_P2: + case Constants.PROCEDURA_P4: + case Constants.PROCEDURA_P5: + case Constants.PROCEDURA_P6: + case Constants.PROCEDURA_P7: + case Constants.PROCEDURA_Q2: + case Constants.PROCEDURA_Q4: + case Constants.PROCEDURA_Q5: + case Constants.PROCEDURA_Q6: + case Constants.PROCEDURA_Q7: + soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); + soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA); + soggettiRichiesti.add(TipoSoggettoUtil.DITTA); + soggettiRichiesti.add(TipoSoggettoUtil.DIRETTORE_LAVORI); + soggettiRichiesti.add(TipoSoggettoUtil.COLLAUDATORE); + break; + case Constants.PROCEDURA_P3: + case Constants.PROCEDURA_Q3: + soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); + soggettiRichiesti.add(TipoSoggettoUtil.PROGETTISTA); + soggettiRichiesti.add(TipoSoggettoUtil.ARCHEOLOGO); + break; + case Constants.PROCEDURA_P10: + case Constants.PROCEDURA_Q10: + soggettiRichiesti.add(TipoSoggettoUtil.COMMITTENTE); + break; + } + boolean isDelegaCommittente = SoggettiUtil.isTitolareInCommittenti(intPraticaId) + || Validator.isNotNull(getCodiceFiscaleDelegatoCommittente()); + if (!isDelegaCommittente) { + notCompleted.add("delega-committente"); + } + boolean isDelegaFinelavori = direttoreLavoriNotRequired + || Validator.isNotNull(getCodiceFiscaleDelegatoFineLavori()) + || !soggettiRichiesti.contains(TipoSoggettoUtil.DIRETTORE_LAVORI); + if (!isDelegaFinelavori) { + notCompleted.add("delega-direttoreLavori"); + } + boolean isDelegaCollaudo = collaudatoreNotRequired || Validator.isNotNull(getCodiceFiscaleDelegatoCollaudo()) + || !soggettiRichiesti.contains(TipoSoggettoUtil.COLLAUDATORE); + if (!isDelegaCollaudo) { + notCompleted.add("delega-collaudatore"); + } + List soggettiPratica = SoggettoLocalServiceUtil.getValidTmpByIntPratica(intPraticaId); + boolean dlPresente = false; + boolean collaudatorePresente = false; + boolean dittaPresente = false; + boolean progettistaPresente = false; + for (Soggetto soggetto : soggettiPratica) { + soggettiRichiesti.remove(soggetto.getTipologiaSoggetto()); + if (TipoSoggettoUtil.DIRETTORE_LAVORI.equals(soggetto.getTipologiaSoggetto())) { + dlPresente = true; + } else if (TipoSoggettoUtil.COLLAUDATORE.equals(soggetto.getTipologiaSoggetto())) { + collaudatorePresente = true; + } else if (TipoSoggettoUtil.DITTA.equals(soggetto.getTipologiaSoggetto())) { + dittaPresente = true; + } else if (TipoSoggettoUtil.PROGETTISTA.equals(soggetto.getTipologiaSoggetto())) { + progettistaPresente = true; + } + } + if (direttoreLavoriNotRequired) { + soggettiRichiesti.remove(TipoSoggettoUtil.DIRETTORE_LAVORI); + if (dlPresente) { + StringBuilder sb = new StringBuilder(); + sb.append("Rimuovere ") + .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + + TipoSoggettoUtil.DIRETTORE_LAVORI)).append(" da soggetti censiti o deselezionare \""); + if (getNormLavoriNoDirettore()) { + sb.append(LanguageUtil.get(LocaleUtil.getDefault(), + LanguageUtil.get(LocaleUtil.getDefault(), "norm-lavori-no-direttore"))); + } else if (getNominaDirettoreLavori()) { + sb.append(LanguageUtil.get(LocaleUtil.getDefault(), + LanguageUtil.get(LocaleUtil.getDefault(), "nomina-direttore-lavori"))); + } + sb.append(StringPool.QUOTE); + notCompleted.add(sb.toString()); + } + } + if (collaudatoreNotRequired) { + soggettiRichiesti.remove(TipoSoggettoUtil.COLLAUDATORE); + if (collaudatorePresente) { + StringBuilder sb = new StringBuilder(); + sb.append("Rimuovere ") + .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + + TipoSoggettoUtil.COLLAUDATORE)).append(" da soggetti censiti o deselezionare \""); + if (getNoCollaudo()) { + sb.append(LanguageUtil.get(LocaleUtil.getDefault(), + LanguageUtil.get(LocaleUtil.getDefault(), "no-collaudo"))); + } else if (getCollaudoStatico()) { + sb.append(LanguageUtil.get(LocaleUtil.getDefault(), + LanguageUtil.get(LocaleUtil.getDefault(), "collaudo-statico"))); + } + sb.append(StringPool.QUOTE); + notCompleted.add(sb.toString()); + } + } + if (dittaNotRequired) { + soggettiRichiesti.remove(TipoSoggettoUtil.DITTA); + if (dittaPresente) { + StringBuilder sb = new StringBuilder(); + sb.append("Rimuovere ") + .append(LanguageUtil.get(LocaleUtil.getDefault(), "gc-soggetto-" + TipoSoggettoUtil.DITTA)) + .append(" da soggetti censiti o deselezionare \""); + if (getNormLavoriInProprio()) { + sb.append(LanguageUtil.get(LocaleUtil.getDefault(), + LanguageUtil.get(LocaleUtil.getDefault(), "norm-lavori-in-proprio"))); + } else if (getNominaImpresa()) { + sb.append(LanguageUtil.get(LocaleUtil.getDefault(), + LanguageUtil.get(LocaleUtil.getDefault(), "nomina-impresa"))); + } + sb.append(StringPool.QUOTE); + notCompleted.add(sb.toString()); + } + } + if (collaudatorePresente) { + String codFiscaleCollaudatore = getCodiceFiscalePrincipaleCollaudatore(); + if (Validator.isNotNull(getCodiceFiscaleDelegatoCollaudo())) { + codFiscaleCollaudatore = getCodiceFiscaleDelegatoCollaudo(); + } + if (progettistaPresente && codFiscaleCollaudatore.equalsIgnoreCase(getCodiceFiscalePrincipaleProgettista())) { + notCompleted.add("Il collaudatore non può essere il progettista"); + } + if (dlPresente && codFiscaleCollaudatore.equalsIgnoreCase(getCodiceFiscalePrincipaleDirettoreLavori())) { + notCompleted.add("Il collaudatore non può essere il direttore lavori"); + } + } + for (String soggetto : soggettiRichiesti) { + notCompleted.add("gc-soggetto-" + soggetto + "-principale-not-present"); + } + int soggettiIncompleti = SoggettoLocalServiceUtil.countTmpNotCompletedByDettPratica(getDettPraticaId()); + if (soggettiIncompleti > 0) { + notCompleted.add("gc-soggetti-not-completed"); + } + return notCompleted; + } + + private List notCompletedDatiSezionGeologica() { + + List notCompleted = new ArrayList<>(); + if (Validator.isNull(getGeoRischioGeomorfologicoPai())) { + notCompleted.add("geo-rischio-geomorfologico-pai"); + } + if (Validator.isNull(getGeoPericolositaIdraulicaPai())) { + notCompleted.add("geo-pericolosita-idraulica-pai"); + } + if (Validator.isNull(getGeoRischioIdraulicoPai())) { + notCompleted.add("geo-rischio-idraulico-pai"); + } + if (Validator.isNull(getGeoPericolositaGeomorfica())) { + notCompleted.add("geo-pericolosita-geomorfica"); + } + return notCompleted; + } + + private List notCompletedDescrizioneEdificio() throws PortalException, SystemException { + + IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(getIntPraticaId()); + List notCompleted = new ArrayList<>(); + // Se in "Dettagli/Destinazione" è selezionato "altri interventi" rendere non obbligatoria la compilazione della + // sezione "descrizione interventi" + if (getDestinazione().equals("3") || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q2) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { + return notCompleted; + } + // se infrastruttura controllo solo DATI INFRASTRUTTURA + if (INFRASTRUTTURE.contains(getDestinazione())) { + boolean isCompleted = getDeInfStradaleStrada() || getDeInfStradalePonte() || getDeInfStradaleAltro() + || getDeInfIdraulicaLong() || getDeInfIdraulicaTrasv() || getDeInfIdraulicaAltro() + || getDeInfOperaAccStradale() || getDeInfOperaAccIdraulica() || getDeInfOperaAccAltro() + || getDeInfAltraInfrastruttura() || Validator.isNotNull(getDeInfAltroDesc()); + if (!isCompleted) { + notCompleted.add("de-inf-title"); + } + return notCompleted; + } + // se non infrastruttura controllo il resto + if (Validator.isNull(getDePiani())) { + notCompleted.add("de-piani"); + } + if (Validator.isNull(getDeAltezza())) { + notCompleted.add("de-altezza"); + } + if (Validator.isNull(getDeInterrati())) { + notCompleted.add("de-interrati"); + } + if (Validator.isNull(getDeSuperficie())) { + notCompleted.add("de-superficie"); + } + if (Validator.isNull(getDeCostruzione())) { + notCompleted.add("de-costruzione"); + } + if (Validator.isNull(getDeUso())) { + notCompleted.add("de-uso"); + } + if (Validator.isNull(getDeUtilizzazione())) { + notCompleted.add("de-utilizzazione"); + } + if (Validator.isNull(getDePrivata())) { + notCompleted.add("de-privata"); + } + if (Validator.isNull(getDePubblica())) { + notCompleted.add("de-pubblica"); + } + boolean isComponentiCostruttiveDisabled = !getTcNuovaCostruzione() && getTcRiparazioneInterventoLocale(); + if (isComponentiCostruttiveDisabled) { + return notCompleted; + } + boolean elevazioni = (Validator.isNotNull(getDccStruttureEleMuraturePietrame()) + || Validator.isNotNull(getDccStruttureEleMuratureLaterizio()) + || Validator.isNotNull(getDccStruttureEleMuratureMisto()) || Validator + .isNotNull(getDccStruttureEleMuratureStoriche())) + || (Validator.isNotNull(getDccStruttureEleMistoCA()) + || Validator.isNotNull(getDccStruttureEleMistoAcciaio()) + || Validator.isNotNull(getDccStruttureEleMistoMuratura()) || Validator + .isNotNull(getDccStruttureEleMistoLegno())) + || Validator.isNotNull(getDccStruttureElePrefabbricato()) + || (Validator.isNotNull(getDccStruttureEleAltro()) && Validator + .isNotNull(getDccStruttureEleAltroDescrizione())); + if (!elevazioni) { + notCompleted.add("dcc-strutture-ele"); + } + boolean orizzontamenti = Validator.isNotNull(getDccOrizzontamentiCAAcciaio()) + || Validator.isNotNull(getDccOrizzontamentiLamieraGrecata()) + || Validator.isNotNull(getDccOrizzontamentiLegno()) + || Validator.isNotNull(getDccOrizzontamentiLegnoCA()) + || Validator.isNotNull(getDccOrizzontamentiVolte()) + || (Validator.isNotNull(getDccOrizzontamentiAltro()) && Validator + .isNotNull(getDccOrizzontamentiAltroDescrizione())); + if (!orizzontamenti) { + notCompleted.add("dcc-orizzontamenti"); + } + boolean coperture = Validator.isNotNull(getDccCoperturaCAAcciaio()) + || Validator.isNotNull(getDccCoperturaLamieraGrecata()) + || Validator.isNotNull(getDccCoperturaLeggere()) + || Validator.isNotNull(getDccCoperturaLegno()) + || Validator.isNotNull(getDccCoperturaLegnoCA()) + || Validator.isNotNull(getDccCoperturaPannelli()) + || Validator.isNotNull(getDccCoperturaPVCTelonati()) + || (Validator.isNotNull(getDccCoperturaAltro()) && Validator + .isNotNull(getDccCoperturaAltroDesrizione())); + if (!coperture) { + notCompleted.add("dcc-copertura"); + } + boolean non_strutturali = Validator.isNotNull(getDccElemNonStrutLaterizio()) + || Validator.isNotNull(getDccElemNonStrutCalcestruzzo()) + || Validator.isNotNull(getDccElemNonStrutCartongesso()) + || Validator.isNotNull(getDccElemNonStrutLegno()) + || (Validator.isNotNull(getDccElemNonStrutAltro()) && Validator + .isNotNull(getDccElemNonStrutAltroDescrizione())); + if (!non_strutturali) { + notCompleted.add("dcc-non_strutturali"); + } + boolean rinforzo = Validator.isNotNull(getDccOpereDiRinforzoInsCatene()) + || Validator.isNotNull(getDccOpereDiRinforzoInsCordoli()) + || Validator.isNotNull(getDccOpereDiRinforzoIniArmate()) + || Validator.isNotNull(getDccOpereDiRinforzoPlaccaggi()) + || Validator.isNotNull(getDccOpereDiRinforzoIrrSolai()) + || Validator.isNotNull(getDccOpereDiRinforzoRinforziFRP()) + || Validator.isNotNull(getDccOpereDiRinforzoTelaiECerchiature()) + || Validator.isNotNull(getDccOpereDiRinforzoInsRompitratta()) + || (Validator.isNotNull(getDccOpereDiRinforzoAltro()) && Validator + .isNotNull(getDccOpereDiRinforzoAltroDescrizione())); + if (!rinforzo) { + notCompleted.add("dcc-opere-di-rinforzo"); + } + return notCompleted; + } + + private List notCompletedDettagliPrincipali() throws PortalException, SystemException { + + List notCompleted = new ArrayList<>(); + IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(getIntPraticaId()); + if (Validator.isNull(getPaesaggioLocale()) && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q2) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q3) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P4) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q4) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P5) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q5) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { + notCompleted.add("paesaggio-locale"); + } + if (Validator.isNull(getLivelloDiTutela()) && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P2) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q2) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P3) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q3) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P4) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q4) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P5) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q5) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { + notCompleted.add("livello-di-tutela"); + } + if (!intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { + if (Validator.isNull(getEstremiCatastali())) { + notCompleted.add("estremi-catastali"); + } + } + if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P10) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q10)) { + if (Validator.isNull(getLocalizzazioneGeografica()) || getLocalizzazioneGeografica().startsWith("||")) { + notCompleted.add("Localizzazione geografica mancante"); + } + } else { + if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P9) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q9)) { + if (!getSanatoriaEdilizia326() && !getSanatoriaEdilizia47() && !getSanatoriaEdilizia724()) { + notCompleted.add("sanatorie-obbligatorie"); + } + } + if (intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P7) + || intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q7)) { + if (Validator.isNull(getInterventoVoceP7())) { + notCompleted.add("intervento-voce-p7"); + } + } + if (getIntervFinPub() && Validator.isNull(getIntervFinPubDesc())) { + notCompleted.add("interv-fin-pub-desc"); + } + if (getTcAltriInterventi() && Validator.isNull(getTcAltriInterventiDesc())) { + notCompleted.add("tc-altri-interventi"); + } + if (Validator.isNull(getDescLongIntervento())) { + notCompleted.add("desc-long-intervento"); + } + if (Validator.isNull(getDestinazione()) && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { + notCompleted.add("destinazione"); + } + if (Validator.isNull(getVia())) { + notCompleted.add("via"); + } + if (Validator.isNull(getLocalizzazioneGeografica()) || getLocalizzazioneGeografica().startsWith("||")) { + notCompleted.add("Localizzazione geografica mancante"); + } + boolean tipologiaCostruttiva = getTcNuovaCostruzione() || getTcNuovaCostruzionePertinenza() + || getTcCostruzioniEsistenti() || getTcManutOrdStraord() || getTcAltriInterventi() + || getTcNoOpereEscavazione(); + if (!tipologiaCostruttiva && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_P1) + && !intPratica.getTipoProcedura().equals(Constants.PROCEDURA_Q1)) { + notCompleted.add("Tipologia intervento mancante"); + } + } + return notCompleted; + } + + @Override + public List notCompletedSection(String section) throws PortalException, SystemException { + + switch (section) { + case SezioniUtil.SEZIONE_DETTAGLI_PRINCIPALI: + return notCompletedDettagliPrincipali(); + case SezioniUtil.SEZIONE_ANAGRAFE_SOGGETTI: + return notCompletedAnagrafeSoggetti(); + case SezioniUtil.SEZIONE_DESCRIZIONE_EDIFICIO: + return notCompletedDescrizioneEdificio(); + case SezioniUtil.SEZIONE_GEOLOGICA: + return notCompletedSezioneGeologica(); + case SezioniUtil.SEZIONE_ALLEGATI: + return notCompletedSezioneAllegati(); + default: + return Collections.emptyList(); + } + } + + private List notCompletedSezioneAllegati() throws PortalException, SystemException { + + List notCompleted = new ArrayList<>(); + IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(getIntPraticaId()); + for (String docObbligatorio : getDocObbligatoriDomanda()) { + List docs = DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(getIntPraticaId(), + docObbligatorio, QueryUtil.ALL_POS, QueryUtil.ALL_POS); + if (docs.isEmpty()) { + notCompleted.add("Nessun allegato per " + docObbligatorio + " - " + + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-" + docObbligatorio)); + } + } + notCompleted.addAll(firmeMancanti(intPratica, DocumentiPraticaUtil.getDocDomanda())); + return notCompleted; + } + + @Override + public List notCompletedSezioneGeologica() throws PortalException, SystemException { + + List notCompleted = new ArrayList<>(); + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica(getIntPraticaId()); + boolean geologo = false; + for (Soggetto soggetto : soggetti) { + if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.GEOLOGO)) { + geologo = true; + break; + } + } + // Se check NormArt3com3 sez. geologica non obbligatoria + if (getNormArt3com3() && !geologo) { + return Collections.emptyList(); + } + notCompleted.addAll(notCompletedDatiSezionGeologica()); + String pericolositaGeomorfologicaPai = getGeoPericolositaGeomorfica(); + String rischioGeomorfologicoPai = getGeoRischioGeomorfologicoPai(); + String pericolositaIdraulicaPai = getGeoPericolositaIdraulicaPai(); + String rischioIdraulicoPai = getGeoRischioIdraulicoPai(); + if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(getIntPraticaId(), "A22", QueryUtil.ALL_POS, + QueryUtil.ALL_POS).isEmpty()) { + if (Validator.isNotNull(pericolositaGeomorfologicaPai) + && pericolositaGeomorfologicaPai.equalsIgnoreCase("NA") + && Validator.isNotNull(rischioGeomorfologicoPai) && rischioGeomorfologicoPai.equalsIgnoreCase("NA") + && Validator.isNotNull(pericolositaIdraulicaPai) && pericolositaIdraulicaPai.equalsIgnoreCase("NA") + && Validator.isNotNull(rischioIdraulicoPai) && rischioIdraulicoPai.equalsIgnoreCase("NA")) { + notCompleted.add("Nessun allegato per A22 - " + + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A22")); + } + } + if ((Validator.isNotNull(pericolositaGeomorfologicaPai) && !pericolositaGeomorfologicaPai + .equalsIgnoreCase("NA")) + || (Validator.isNotNull(rischioGeomorfologicoPai) && !rischioGeomorfologicoPai.equalsIgnoreCase("NA")) + || (Validator.isNotNull(pericolositaIdraulicaPai) && !pericolositaIdraulicaPai.equalsIgnoreCase("NA")) + || (Validator.isNotNull(rischioIdraulicoPai) && !rischioIdraulicoPai.equalsIgnoreCase("NA"))) { + if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(getIntPraticaId(), "A23", + QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { + notCompleted.add("Nessun allegato per A23 - " + + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A23")); + } + if (DocPraticaLocalServiceUtil.getValidTmpByIntPratica_Tipologia(getIntPraticaId(), "A22", + QueryUtil.ALL_POS, QueryUtil.ALL_POS).isEmpty()) { + notCompleted.add("Nessun allegato per A22 - " + + LanguageUtil.get(LocaleUtil.getDefault(), "label-documenti-tipologia-A22")); + } + } + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + notCompleted.addAll(firmeMancanti(intPratica, DocumentiPraticaUtil.getDocGeologo())); + return notCompleted; + } + + @Override + public boolean pagamentoIsEnable() throws SystemException, PortalException { + + return praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId()) + && allAsseverazioniCompleted() + // se è un'integrazione non si paga + && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId()); + } + + @Override + public boolean praticaIsCompleta() throws SystemException, PortalException { + + return 0 == notCompletedDettagliPrincipali().size() + notCompletedAnagrafeSoggetti().size() + + notCompletedDescrizioneEdificio().size() + notCompletedSezioneGeologica().size() + + notCompletedSezioneAllegati().size(); + } + + @Override + public boolean praticaIsEditable() throws PortalException, SystemException { + + IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(getIntPraticaId()); + return !intPratica.getSospesa() && !intPratica.isAnnullata() && !hasAsseverazioniAttive() + && !pagamentoIsEnable() && getStatus() == WorkflowConstants.STATUS_DRAFT; + } + + @Override + public boolean richiestoA24() { + + return (getLavoriPubblici() || getIntervFinPub()) && !getIntervInAreaDiInteresse() + && !getIntervNonModificante() && !getIntervNonAssoggettabile(); + } + + private static final Map> FIRME_OBBLIGATORIE = new HashMap>(19) { + { + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A01, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A02, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A03, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A04, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A05, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A09, + Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, TipoSoggettoUtil.PROGETTISTA)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A10, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A11, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A12, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A15, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A16, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A17, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A18, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A19, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A20, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A21, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A22, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A23, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.GEOLOGO)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A24, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE, + TipoSoggettoUtil.PROGETTISTA, TipoSoggettoUtil.DIRETTORE_LAVORI, TipoSoggettoUtil.ARCHEOLOGO)); + put(DocumentiPraticaUtil.TIPOLOGIA_ALLEGATO_A28, Arrays. asList(TipoSoggettoUtil.TITOLARE_DIGITALE)); + } + }; + + private static final List INFRASTRUTTURE = Arrays. asList("1A", "2A", "A4A", "A4B", "A4C", "A4D", + "A4E", "A4F", "A5A", "B4A", "B4B", "B4C", "B5A"); } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java index 4f1a6d12..e3a2bc80 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java @@ -8,12 +8,21 @@ package it.tref.liferay.portos.bo.model.impl; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; +import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.IntPratica; +import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.shared.bean.FirmeBean; +import it.tref.liferay.portos.bo.shared.util.FirmeUtil; +import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; +import java.util.ArrayList; +import java.util.List; import java.util.Locale; +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.log.Log; @@ -50,9 +59,9 @@ public class FineLavoriImpl extends FineLavoriBaseImpl { StringBuilder sb = new StringBuilder(); try { IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { sb.append("Deposito "); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { sb.append("Autorizzazione "); } sb.append("n. "); @@ -86,4 +95,65 @@ public class FineLavoriImpl extends FineLavoriBaseImpl { return getTitle(); } + + @Override + public boolean canCompleteFineLavoriEsente() throws SystemException, PortalException { + + return pagamentoFineLavoriIsEnable() && getNormEsenteBollo(); + } + + private boolean isFineLavoriAllegatiCompleted() throws PortalException, SystemException { + + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + for (String codiceDoc : DocumentiPraticaUtil.getDocObbligatoriFineLavori()) { + List docs = DocPraticaLocalServiceUtil.findByClassPk_Tipologia(getFineLavoriId(), codiceDoc, + QueryUtil.ALL_POS, QueryUtil.ALL_POS); + if (docs.isEmpty()) { + return false; // Ci dev'essere almeno un allegato per tipo obbligatorio + } + for (DocPratica doc : docs) { + FirmeBean firme = FirmeUtil.deserialize(doc.getJsonFirmatari()); + List signatures = firme.allSignatures(); + if (!intPratica.isAllRequiredValid(codiceDoc, signatures, TipoSoggettoUtil.getAllSubjects(), doc)) { + return false; // Return false if is required per this subjectType but it is not present + } + } + } + return true; + } + + @Override + public boolean isFineLavoriDatiCompleted() throws PortalException, SystemException { + + return notCompletedFineLavoriDati().isEmpty(); + } + + @Override + public List notCompletedFineLavoriDati() throws PortalException, SystemException { + + List notCompleted = new ArrayList<>(); + if (Validator.isNull(getParziale())) { + notCompleted.add("fl-tipo"); + } + if (getParziale() && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale(getIntPraticaId(), false) > 0) { + notCompleted.add("fl-parziale-not-possibile"); + } + if (Validator.isNull(getDataFineLavori())) { + notCompleted.add("fl-data-fine"); + } + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId()); + if (Validator.isNull(getDataFineLavori()) || getDataFineLavori().before(intPratica.getDtPratica())) { + notCompleted.add("fl-data-fine-early"); + } + if (Validator.isNull(getCodiceFiscaleDelegato())) { + notCompleted.add("fl-dir-lav"); + } + return notCompleted; + } + + @Override + public boolean pagamentoFineLavoriIsEnable() throws SystemException, PortalException { + + return isFineLavoriDatiCompleted() && isFineLavoriAllegatiCompleted(); + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java index be4aaa10..79fd8812 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java @@ -15,21 +15,40 @@ import static java.lang.Math.pow; import static java.lang.Math.round; import static java.lang.Math.sin; import static java.lang.Math.sqrt; +import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; +import it.mwg.sismica.bo.shared.util.AzioniPraticheUtil; +import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; +import it.tref.liferay.portos.bo.model.DocPratica; +import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.Provincia; +import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Territorio; +import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; +import it.tref.liferay.portos.bo.service.CollaudoServiceUtil; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.DettPraticaServiceUtil; +import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; +import it.tref.liferay.portos.bo.service.FineLavoriServiceUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil; +import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; +import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; +import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; +import it.tref.liferay.portos.bo.util.DelegheUtil; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import java.util.Locale; import org.apache.commons.lang.StringUtils; +import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.LogFactoryUtil; @@ -37,6 +56,7 @@ import com.liferay.portal.kernel.util.HtmlUtil; import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.Validator; +import com.liferay.portal.kernel.workflow.WorkflowConstants; /** * The extended model implementation for the IntPratica service. Represents a row in the @@ -92,6 +112,12 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { return Validator.isNotNull(this.getDtAnnullamento()); } + @Override + public boolean isAutorizzazione() throws PortalException, SystemException { + + return getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_AUTORIZZAZIONE); + } + @Override public boolean isChiusa() throws SystemException { @@ -105,6 +131,12 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { return completata; } + @Override + public boolean isDeposito() throws PortalException, SystemException { + + return getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO); + } + @Override public int getTipoRichiesta() { switch (getTipoProcedura()) { @@ -183,6 +215,276 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { return distanzaOrtodromica; } + @Override + public boolean canAddPagamento(long userId) throws PortalException, SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(getIntPraticaId()); + if (Validator.isNull(dettPratica)) { + return false; + } + return dettPratica.pagamentoIsEnable() + && DelegheUtil.hasDelegaPagamento(userId, dettPratica.getDettPraticaId()); + } + + @Override + public boolean canAddSoggetto(String tipoSoggetto) throws PortalException, SystemException { + + if (!isAllowedAction(AzioniPraticheUtil.ACTION_AGGIUNGI_SOGGETTO)) { + return false; + } + if ((!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE + .equalsIgnoreCase(tipoSoggetto)) && (isFineLavoriTotale())) { + return false; + } + return true; + } + + @Override + public boolean canAddVariazioneSoggetti() { + + return !getStatoPratica().equals(StringPool.BLANK) && !getNumeroProgetto().equals(StringPool.BLANK); + } + + @Override + public boolean canDeletePratica(long userId) throws PortalException, SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditableByIntPratica(getIntPraticaId()); + return (getStatus() == WorkflowConstants.STATUS_ANY || (dettPratica != null && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT) + && Validator.isNull(dettPratica.getTipoIntegrazione())) + && getUserId() == userId; + } + + @Override + public boolean canEditPratica() throws PortalException, SystemException { + + return getStatus() == WorkflowConstants.STATUS_ANY || getStatus() == WorkflowConstants.STATUS_INCOMPLETE; + } + + @Override + public boolean canEditUsers() throws PortalException, SystemException { + + return !isSospesa() && !isAnnullata() && !canEditPratica() && !praticaHasVarianteInProgress() + && !hasRichiestaIntegrazioneAttiva() && !praticaHasIntegrazioneInProgress() + && !praticaHasFineLavoriInProgress() && !praticaHasCollaudoInProgress(); + } + + @Override + public boolean canPrintFascicolo() { + + return (!getStatoPratica().equals(StringPool.BLANK) || isValidata()) + && !getNumeroProgetto().equals(StringPool.BLANK); + } + + @Override + public boolean canPrintFascicoloVariante() throws SystemException { + + int nVarianti = DettPraticaLocalServiceUtil.countCompletedByIntPraticaAndTipoPratica(getIntPraticaId(), + Arrays. asList(TipoIntegrazioneUtil.VARIANTE)); + return nVarianti > 0; + } + + @Override + public boolean canRemoveSoggetto(String tipoSoggetto) throws SystemException { + + if (!isAllowedAction(AzioniPraticheUtil.ACTION_RIMUOVI_SOGGETTO)) { + return false; + } + if ((!TipoSoggettoUtil.COMMITTENTE.equalsIgnoreCase(tipoSoggetto) && !TipoSoggettoUtil.COLLAUDATORE + .equalsIgnoreCase(tipoSoggetto)) && (isFineLavoriTotale() || getCollaudoParziale())) { + return false; + } + if ((TipoSoggettoUtil.DIRETTORE_LAVORI.equalsIgnoreCase(tipoSoggetto) || TipoSoggettoUtil.DITTA + .equalsIgnoreCase(tipoSoggetto)) && isFineLavoriParziale()) { + return false; + } + return true; + } + + @Override + public boolean isAllRequiredValid(String codiceDoc, List signatures, List tipologiaSoggetti, + DocPratica docPratica) throws SystemException { + + for (String tipoSoggetto : tipologiaSoggetti) { + boolean isRequired = AsseverazioniUtil.isAsseverazioneRequiredByCodiceDoc(codiceDoc, tipoSoggetto); + if (isRequired) { + List signaturesPerSubject = getSignaturePerSubject(signatures, tipoSoggetto, + docPratica.getClassPk()); + if (signaturesPerSubject.isEmpty()) { + return false; + } + } + } + return true; + } + + @Override + public boolean praticaCanAbort(long userId) throws SystemException { + + return getUserId() == userId && getStatus() != WorkflowConstants.STATUS_ANY + && getStatus() != WorkflowConstants.STATUS_INCOMPLETE && !hasRichiestaIntegrazioneAttiva() + && !praticaHasIntegrazioneInProgress() && !praticaHasAnnullamento(); + } + + @Override + public boolean praticaCanAddCollaudo(String userScreenName) throws SystemException, PortalException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(getIntPraticaId()); + return Validator.isNotNull(dettPratica) + && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoCollaudo()) + && FineLavoriLocalServiceUtil.countByIntPraticaId(getIntPraticaId()) > 0 + && CollaudoLocalServiceUtil.countByIntPraticaId_Completata(getIntPraticaId(), false) == 0 + && !praticaHasCollaudoInProgress() && !praticaHasVarianteInProgress() + && !praticaHasIntegrazioneInProgress(); + } + + @Override + public boolean praticaCanAddFineLavori(String userScreenName) throws SystemException, PortalException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(getIntPraticaId()); + return Validator.isNotNull(dettPratica) + && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) + && FineLavoriLocalServiceUtil.countByIntPraticaId_Parziale_Completata(getIntPraticaId(), false, true) == 0 + && !praticaHasFineLavoriInProgress() && !praticaHasVarianteInProgress() + && !praticaHasIntegrazioneInProgress(); + } + + @Override + public boolean praticaCanAddIntegrazione() throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(getIntPraticaId(), + Arrays. asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); + if (Validator.isNotNull(dettPratica)) { + return false; + } + return getStatus() != WorkflowConstants.STATUS_ANY && getStatus() != WorkflowConstants.STATUS_INCOMPLETE + && hasRichiestaIntegrazioneAttiva(); + } + + @Override + public boolean praticaCanAddVariante() throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(getIntPraticaId(), + Arrays. asList(TipoIntegrazioneUtil.VARIANTE)); + if (Validator.isNotNull(dettPratica)) { + return false; + } + return getStatus() != WorkflowConstants.STATUS_ANY && getStatus() != WorkflowConstants.STATUS_INCOMPLETE + && !hasRichiestaIntegrazioneAttiva() && !praticaHasIntegrazioneInProgress(); + } + + @Override + public boolean praticaCanDeleteCollaudo(String userScreenName) throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(getIntPraticaId()); + return Validator.isNotNull(dettPratica) + && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoCollaudo()) + && praticaHasCollaudoPaymentPending(); + } + + @Override + public boolean praticaCanDeleteFineLavori(String userScreenName) throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(getIntPraticaId()); + return Validator.isNotNull(dettPratica) + && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) + && praticaHasFineLavoriPaymentPending(); + } + + @Override + public boolean praticaCanDeleteIntegrazione() throws SystemException { + + return praticaHasIntegrazioneInProgress(); + } + + @Override + public boolean praticaCanDeleteVariante() throws SystemException { + + return praticaHasVarianteInProgress(); + } + + @Override + public boolean praticaCanEditCollaudo(String userScreenName) throws SystemException { + + return userScreenName.equalsIgnoreCase(getCodiceFiscaleDelegatoCollaudo()) && praticaHasCollaudoInProgress(); + } + + @Override + public boolean praticaCanEditFineLavori(String userScreenName) throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastCompletedByIntPratica(getIntPraticaId()); + return Validator.isNotNull(dettPratica) + && userScreenName.equalsIgnoreCase(dettPratica.getCodiceFiscaleDelegatoFineLavori()) + && praticaHasFineLavoriInProgress(); + } + + @Override + public boolean praticaCanEditIntegrazione() throws SystemException { + + return praticaHasIntegrazioneInProgress(); + } + + @Override + public boolean praticaCanEditVariante() throws SystemException { + + return praticaHasVarianteInProgress(); + } + + @Override + public boolean praticaHasAnnullamento() { + + return isAnnullata(); + } + + @Override + public boolean praticaHasCollaudoInProgress() throws SystemException { + + return Validator.isNotNull(CollaudoServiceUtil.getLastEditable(getIntPraticaId())); + } + + @Override + public boolean praticaHasCollaudoPaymentPending() throws SystemException { + + Collaudo collaudo = CollaudoServiceUtil.getLastEditable(getIntPraticaId()); + return Validator.isNotNull(collaudo) && Validator.isNull(collaudo.getPagamentoId()); + } + + @Override + public boolean praticaHasFineLavoriInProgress() throws SystemException { + + return Validator.isNotNull(FineLavoriServiceUtil.getLastEditable(getIntPraticaId())); + } + + @Override + public boolean praticaHasFineLavoriPaymentPending() throws SystemException { + + FineLavori fineLavori = FineLavoriServiceUtil.getLastEditable(getIntPraticaId()); + return Validator.isNotNull(fineLavori) && Validator.isNull(fineLavori.getPagamentoId()); + } + + @Override + public boolean praticaHasIntegrazioneInProgress() throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(getIntPraticaId(), + Arrays. asList(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE)); + return Validator.isNotNull(dettPratica); + } + + private List getSignaturePerSubject(List signatures, String tipoSoggetto, long docPraticaClassPk) + throws SystemException { + + List signaturesPerSubject = new ArrayList(); + for (String sign : signatures) { + List soggetti = SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(getIntPraticaId(), + sign, docPraticaClassPk); + for (Soggetto soggetto : soggetti) { + if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto) && !signaturesPerSubject.contains(sign)) { + signaturesPerSubject.add(sign); + } + } + } + return signaturesPerSubject; + } + @Override public boolean hasRichiestaIntegrazioneAttiva() { @@ -192,4 +494,115 @@ public class IntPraticaImpl extends IntPraticaBaseImpl { || StatoPraticaConstants.DECRETO_SANZIONE.equals(stato) || StatoPraticaConstants.PERIZIA_SANZIONE.equals(stato); } + + @Override + public boolean isAllowedAction(String action) throws SystemException { + + if (!AzioniPraticheUtil.actionExists(action) + && !AzioniPraticheUtil.ACTION_INTEGRAZIONE.equalsIgnoreCase(action)) { + throw new SystemException("Azione non presente: " + action); + } + boolean isDeposito = getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_DEPOSITO); + boolean isAutorizzazione = getTipoPratica().equalsIgnoreCase(Constants.TIPO_PRATICA_AUTORIZZAZIONE); + String status = StringPool.BLANK; + if (getStatus() == WorkflowConstants.STATUS_PENDING) { + if (hasRichiestaIntegrazioneAttiva()) { + if (isDeposito) { + status = AzioniPraticheUtil.STATE_INTEGRAZIONE_DEPOSITO; + } else if (isAutorizzazione) { + status = AzioniPraticheUtil.STATE_INTEGRAZIONE_AUTORIZZAZIONE; + } else { + throw new SystemException("Tipo pratica non esiste"); + } + } else if (isDeposito) { + status = AzioniPraticheUtil.STATE_SOTTOPOSTO_A_PARERE_DEPOSITO; + } else if (isAutorizzazione) { + status = AzioniPraticheUtil.STATE_SOTTOPOSTO_A_PARERE_AUTORIZZAZIONE; + } else { + throw new SystemException("Tipo pratica non esiste"); + } + } else if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_VIDIMATO; + } else if (StatoPraticaConstants.NON_CONFORME.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_NON_CONFORME; + } else if (StatoPraticaConstants.AUTORIZZATA.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_VIDIMATO; + } else if (StatoPraticaConstants.NON_AUTORIZZATA.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.NON_AUTORIZZATA; + } else if (StatoPraticaConstants.ANNULLATA.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_ANNULLATO; + } else if (StatoPraticaConstants.VIDIMATA.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_VIDIMATO; + } else if (StatoPraticaConstants.FINE_LAVORI.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_FINE_LAVORI_TOTALE; + } else if (StatoPraticaConstants.FINE_LAVORI_PARZIALE.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_FINE_LAVORI_PARZIALE; + } else if (getStatus() == WorkflowConstants.STATUS_ANY) { + status = AzioniPraticheUtil.STATE_COMPILAZIONE; + } else if (StatoPraticaConstants.COLLAUDO_PARZIALE.equalsIgnoreCase(getStatoPratica())) { + status = AzioniPraticheUtil.STATE_COLLAUDO_PARZIALE; + } + List actionList = AzioniPraticheUtil.getStateActionsMap(status); + if ((actionList == null) || !actionList.contains(action)) { + return false; + } + if (!action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_INTEGRAZIONE) && getCollaudoTotale()) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_FL_PARZIALE) && getFineLavoriTotale()) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_FL_TOTALE) && getFineLavoriTotale()) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_CO_PARZIALE) && !getFineLavoriParziale()) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_CO_TOTALE) && !getFineLavoriTotale()) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_VARIANTE) && getFineLavoriTotale()) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_ANNULLA) + && (getFineLavoriTotale() || getFineLavoriParziale() || getCollaudoParziale())) { + return false; + } + if (action.equalsIgnoreCase(AzioniPraticheUtil.ACTION_RIMUOVI_SOGGETTO) && getCollaudoParziale()) { + return false; + } + return true; + } + + @Override + public boolean praticaHasVarianteInProgress() throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(getIntPraticaId(), + Arrays. asList(TipoIntegrazioneUtil.VARIANTE)); + return Validator.isNotNull(dettPratica); + } + + @Override + public boolean praticaInProgress() throws SystemException { + + DettPratica dettPratica = DettPraticaServiceUtil.getLastEditabledByIntPraticaAndTipoPratica(getIntPraticaId(), + Arrays. asList(TipoIntegrazioneUtil.VARIANTE, TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, + TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO)); + return Validator.isNotNull(dettPratica) || getStatus() == WorkflowConstants.STATUS_ANY + || getStatus() == WorkflowConstants.STATUS_INCOMPLETE; + } + + @Override + public boolean signaturesContains(String tipoSoggetto, List signatures) throws SystemException { + + for (String sign : signatures) { + List soggetti = SoggettoLocalServiceUtil.findByIntPratica_CodiceFiscale(getIntPraticaId(), sign); + for (Soggetto soggetto : soggetti) { + if (soggetto.getTipologiaSoggetto().equals(tipoSoggetto)) { + return true; + } + } + } + return false; + } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java index aaacf418..1f380691 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java @@ -1,10 +1,10 @@ package it.tref.liferay.portos.bo.model.listener; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import java.util.Date; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java index f4902f5b..72664f0a 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java @@ -1,5 +1,7 @@ package it.tref.liferay.portos.bo.portlet; +import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; @@ -10,7 +12,6 @@ import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil; @@ -26,9 +27,7 @@ import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean; import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; -import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.io.File; @@ -229,7 +228,8 @@ public class FascicoloPortlet extends MVCPortlet { ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); User user = UserLocalServiceUtil.fetchUserByScreenName(companyId, nuovoSoggettoCF); if (Validator.isNotNull(user)) { - if (!ValidazionePraticaUtil.praticaInProgress(intPraticaId)) { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + if (!intPratica.praticaInProgress()) { _log.info("cambiaTitolare: cfNuovoTitolare " + nuovoSoggettoCF + " intpratica" + intPraticaId); IntPraticaServiceUtil.cambiaTitolare(intPraticaId, user.getUserId(), serviceContext); SessionMessages.add(actionRequest, "success-cambio-titolare"); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java index c3bf9ca0..5a1bd89d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.portlet; +import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; @@ -8,7 +9,6 @@ import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.search.IntPraticaAdvancedSearch; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java index 8b0b69b7..b7cda847 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.portlet; +import it.mwg.sismica.bo.search.ControlloPraticaAdvancedSearch; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.ControlloPratica; @@ -7,7 +8,6 @@ import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.ParereGeologo; import it.tref.liferay.portos.bo.model.Provincia; import it.tref.liferay.portos.bo.model.Territorio; -import it.tref.liferay.portos.bo.search.ControlloPraticaAdvancedSearch; import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil; import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java index 40644f22..aaf88ec0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java @@ -1,8 +1,8 @@ package it.tref.liferay.portos.bo.report.builder.builder; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoAllegatoBean; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java index 6048ecb9..03e18206 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java @@ -1,5 +1,7 @@ package it.tref.liferay.portos.bo.report.builder.builder; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Comune; @@ -27,8 +29,6 @@ import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.io.Serializable; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java index af9007f4..ff8845be 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.scheduler; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.IntPratica; @@ -11,7 +12,6 @@ import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.ProtocollazioneUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.dto.ReportDto; import it.tref.liferay.portos.report.shared.dto.ReportResultDto; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java index d62a3fe1..4c52283d 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java @@ -1,5 +1,6 @@ package it.tref.liferay.portos.bo.scheduler; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Comune; @@ -25,9 +26,7 @@ import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment; @@ -268,9 +267,10 @@ public class SchedulerInvioDocumento implements MessageListener { String[] cc = new String[0]; String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK; - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } String url = FascicoloURLUtil.getFascicoloFEViewURL(avviso.getCompanyId(), avviso.getIntPraticaId(), @@ -314,10 +314,8 @@ public class SchedulerInvioDocumento implements MessageListener { MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to, cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, allegati, serviceContext); String[] suapEnabled = new String[] { StatoPraticaConstants.CONFORME, StatoPraticaConstants.NON_CONFORME }; - if ((AzioniPraticheUtil.isAutorizzazione(intPraticaId) && ArrayUtil.contains(suapEnabled, - avviso.getTipoDocumento())) + if ((intPratica.isAutorizzazione() && ArrayUtil.contains(suapEnabled, avviso.getTipoDocumento())) || (StatoPraticaConstants.VIDIMATA.equals(avviso.getTipoDocumento()))) { - IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); String eMail = StringPool.BLANK; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java index fe1928de..d86453c5 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneLocalServiceClpInvoker.java @@ -222,153 +222,88 @@ public class AsseverazioneLocalServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName188 = "findByIntPratica"; + _methodName188 = "countByCodiceFiscale_Esito"; _methodParameterTypes188 = new String[] { - "long", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" + "java.lang.String", "java.lang.String" }; - _methodName189 = "findByDettPratica"; + _methodName189 = "findByCodiceFiscale_Esito"; _methodParameterTypes189 = new String[] { - "long", "int", "int", + "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName190 = "countByIntPratica"; - - _methodParameterTypes190 = new String[] { "long" }; - - _methodName191 = "countByDettPratica"; + _methodName190 = "findByCodiceFiscale_InEsito"; - _methodParameterTypes191 = new String[] { "long" }; - - _methodName192 = "findByIntPratica_CodiceFiscale"; - - _methodParameterTypes192 = new String[] { - "long", "java.lang.String", "int", "int", + _methodParameterTypes190 = new String[] { + "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName193 = "countByIntPratica_CodiceFiscale"; + _methodName191 = "findByDettPratica"; - _methodParameterTypes193 = new String[] { "long", "java.lang.String" }; - - _methodName194 = "findByCodiceFiscale_InEsito"; - - _methodParameterTypes194 = new String[] { - "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes191 = new String[] { + "long", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName195 = "countByCodiceFiscale_InEsito"; + _methodName192 = "countByDettPratica_CodiceFiscale_Esito"; - _methodParameterTypes195 = new String[] { - "java.lang.String", "java.lang.String[][]" + _methodParameterTypes192 = new String[] { + "long", "java.lang.String", "java.lang.String" }; - _methodName196 = "findByIntPratica_CodiceFiscale_InEsito"; + _methodName193 = "findByDettPratica_CodiceFiscale_Esito"; - _methodParameterTypes196 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes193 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName197 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName194 = "findByDettPratica_Esito"; - _methodParameterTypes197 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes194 = new String[] { + "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName198 = "countByIntPratica_CodiceFiscale_InEsito"; + _methodName195 = "countByDettPratica_InEsito"; - _methodParameterTypes198 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; + _methodParameterTypes195 = new String[] { "long", "java.lang.String[][]" }; - _methodName199 = "countByDettPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes199 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; + _methodName196 = "findByDettPratica_InEsito"; - _methodName200 = "findByIntPratica_InEsito"; - - _methodParameterTypes200 = new String[] { + _methodParameterTypes196 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName201 = "countByIntPratica_InEsito"; - - _methodParameterTypes201 = new String[] { "long", "java.lang.String[][]" }; + _methodName197 = "findByDettPratica_Tipologia_Esito"; - _methodName202 = "findByDettPratica_InEsito"; - - _methodParameterTypes202 = new String[] { - "long", "java.lang.String[][]", "int", "int", + _methodParameterTypes197 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName203 = "countByDettPratica_InEsito"; - - _methodParameterTypes203 = new String[] { "long", "java.lang.String[][]" }; - - _methodName204 = "findByCodiceFiscale_Tipologia_InEsito"; + _methodName198 = "findByIntPratica_CodiceFiscale_Esito"; - _methodParameterTypes204 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]", - "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName205 = "countByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes205 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]" - }; - - _methodName206 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes206 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]", "int", "int", + _methodParameterTypes198 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName207 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; + _methodName199 = "countByIntPratica_Esito"; - _methodParameterTypes207 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]" - }; + _methodParameterTypes199 = new String[] { "long", "java.lang.String" }; - _methodName208 = "findByIntPratica_Tipologia_InEsito"; + _methodName200 = "findByIntPratica_Esito"; - _methodParameterTypes208 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName209 = "findByDettPratica_Tipologia_InEsito"; - - _methodParameterTypes209 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes200 = new String[] { + "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - - _methodName210 = "countByIntPratica_Tipologia_InEsito"; - - _methodParameterTypes210 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName211 = "countByDettPratica_Tipologia_InEsito"; - - _methodParameterTypes211 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -612,49 +547,55 @@ public class AsseverazioneLocalServiceClpInvoker { if (_methodName188.equals(name) && Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); + return AsseverazioneLocalServiceUtil.countByCodiceFiscale_Esito((java.lang.String)arguments[0], + (java.lang.String)arguments[1]); } if (_methodName189.equals(name) && Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), + return AsseverazioneLocalServiceUtil.findByCodiceFiscale_Esito((java.lang.String)arguments[0], + (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); + ((Integer)arguments[3]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } if (_methodName190.equals(name) && Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); + return AsseverazioneLocalServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], + (java.lang.String[])arguments[1], + ((Integer)arguments[2]).intValue(), + ((Integer)arguments[3]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } if (_methodName191.equals(name) && Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); + return AsseverazioneLocalServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), + ((Integer)arguments[1]).intValue(), + ((Integer)arguments[2]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); } if (_methodName192.equals(name) && Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - ((Integer)arguments[2]).intValue(), - ((Integer)arguments[3]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); + return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.String)arguments[2]); } if (_methodName193.equals(name) && Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1]); + return AsseverazioneLocalServiceUtil.findByDettPratica_CodiceFiscale_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.String)arguments[2], + ((Integer)arguments[3]).intValue(), + ((Integer)arguments[4]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } if (_methodName194.equals(name) && Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], - (java.lang.String[])arguments[1], + return AsseverazioneLocalServiceUtil.findByDettPratica_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); @@ -662,25 +603,23 @@ public class AsseverazioneLocalServiceClpInvoker { if (_methodName195.equals(name) && Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], + return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1]); } if (_methodName196.equals(name) && Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], + return AsseverazioneLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), + (java.lang.String[])arguments[1], + ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); + (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } if (_methodName197.equals(name) && Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], + return AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), ((Integer)arguments[4]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); @@ -688,111 +627,28 @@ public class AsseverazioneLocalServiceClpInvoker { if (_methodName198.equals(name) && Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); + return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.String)arguments[2], + ((Integer)arguments[3]).intValue(), + ((Integer)arguments[4]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } if (_methodName199.equals(name) && Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); + return AsseverazioneLocalServiceUtil.countByIntPratica_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1]); } if (_methodName200.equals(name) && Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1], - ((Integer)arguments[2]).intValue(), - ((Integer)arguments[3]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); - } - - if (_methodName201.equals(name) && - Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1]); - } - - if (_methodName202.equals(name) && - Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1], + return AsseverazioneLocalServiceUtil.findByIntPratica_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName203.equals(name) && - Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1]); - } - - if (_methodName204.equals(name) && - Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName205.equals(name) && - Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - - if (_methodName206.equals(name) && - Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - (java.lang.String[])arguments[3], - ((Integer)arguments[4]).intValue(), - ((Integer)arguments[5]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); - } - - if (_methodName207.equals(name) && - Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - (java.lang.String[])arguments[3]); - } - - if (_methodName208.equals(name) && - Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName209.equals(name) && - Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { - return AsseverazioneLocalServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName210.equals(name) && - Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - - if (_methodName211.equals(name) && - Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) { - return AsseverazioneLocalServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - throw new UnsupportedOperationException(); } @@ -898,26 +754,4 @@ public class AsseverazioneLocalServiceClpInvoker { private String[] _methodParameterTypes199; private String _methodName200; private String[] _methodParameterTypes200; - private String _methodName201; - private String[] _methodParameterTypes201; - private String _methodName202; - private String[] _methodParameterTypes202; - private String _methodName203; - private String[] _methodParameterTypes203; - private String _methodName204; - private String[] _methodParameterTypes204; - private String _methodName205; - private String[] _methodParameterTypes205; - private String _methodName206; - private String[] _methodParameterTypes206; - private String _methodName207; - private String[] _methodParameterTypes207; - private String _methodName208; - private String[] _methodParameterTypes208; - private String _methodName209; - private String[] _methodParameterTypes209; - private String _methodName210; - private String[] _methodParameterTypes210; - private String _methodName211; - private String[] _methodParameterTypes211; } \ 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/base/AsseverazioneServiceClpInvoker.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java index 55d312da..72233435 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/AsseverazioneServiceClpInvoker.java @@ -65,153 +65,61 @@ public class AsseverazioneServiceClpInvoker { "com.liferay.portal.service.ServiceContext" }; - _methodName157 = "findByIntPratica"; + _methodName157 = "countByCodiceFiscale_Esito"; _methodParameterTypes157 = new String[] { - "long", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" + "java.lang.String", "java.lang.String" }; - _methodName158 = "findByDettPratica"; + _methodName158 = "findByCodiceFiscale_Esito"; _methodParameterTypes158 = new String[] { - "long", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName159 = "countByIntPratica"; - - _methodParameterTypes159 = new String[] { "long" }; - - _methodName160 = "countByDettPratica"; - - _methodParameterTypes160 = new String[] { "long" }; - - _methodName161 = "findByIntPratica_CodiceFiscale"; - - _methodParameterTypes161 = new String[] { - "long", "java.lang.String", "int", "int", + "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName162 = "countByIntPratica_CodiceFiscale"; - - _methodParameterTypes162 = new String[] { "long", "java.lang.String" }; + _methodName159 = "findByCodiceFiscale_InEsito"; - _methodName163 = "findByCodiceFiscale_InEsito"; - - _methodParameterTypes163 = new String[] { + _methodParameterTypes159 = new String[] { "java.lang.String", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName164 = "countByCodiceFiscale_InEsito"; - - _methodParameterTypes164 = new String[] { - "java.lang.String", "java.lang.String[][]" - }; - - _methodName165 = "findByIntPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes165 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName166 = "findByDettPratica_CodiceFiscale_InEsito"; + _methodName160 = "findByDettPratica_CodiceFiscale_Esito"; - _methodParameterTypes166 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes160 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName167 = "countByIntPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes167 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName168 = "countByDettPratica_CodiceFiscale_InEsito"; - - _methodParameterTypes168 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName169 = "findByIntPratica_InEsito"; + _methodName161 = "findByIntPratica_CodiceFiscale_Esito"; - _methodParameterTypes169 = new String[] { - "long", "java.lang.String[][]", "int", "int", + _methodParameterTypes161 = new String[] { + "long", "java.lang.String", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName170 = "countByIntPratica_InEsito"; + _methodName162 = "countByDettPratica_InEsito"; - _methodParameterTypes170 = new String[] { "long", "java.lang.String[][]" }; + _methodParameterTypes162 = new String[] { "long", "java.lang.String[][]" }; - _methodName171 = "findByDettPratica_InEsito"; + _methodName163 = "findByDettPratica_InEsito"; - _methodParameterTypes171 = new String[] { + _methodParameterTypes163 = new String[] { "long", "java.lang.String[][]", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - _methodName172 = "countByDettPratica_InEsito"; - - _methodParameterTypes172 = new String[] { "long", "java.lang.String[][]" }; - - _methodName173 = "findByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes173 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]", - "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName174 = "countByCodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes174 = new String[] { - "java.lang.String", "java.lang.String", "java.lang.String[][]" - }; - - _methodName175 = "findByIntPratica_CodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes175 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; - - _methodName176 = "countByIntPratica_CodiceFiscale_Tipologia_InEsito"; - - _methodParameterTypes176 = new String[] { - "long", "java.lang.String", "java.lang.String", - "java.lang.String[][]" - }; - - _methodName177 = "findByIntPratica_Tipologia_InEsito"; + _methodName164 = "countByIntPratica_Esito"; - _methodParameterTypes177 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", - "com.liferay.portal.kernel.util.OrderByComparator" - }; + _methodParameterTypes164 = new String[] { "long", "java.lang.String" }; - _methodName178 = "findByDettPratica_Tipologia_InEsito"; + _methodName165 = "findByIntPratica_Esito"; - _methodParameterTypes178 = new String[] { - "long", "java.lang.String", "java.lang.String[][]", "int", "int", + _methodParameterTypes165 = new String[] { + "long", "java.lang.String", "int", "int", "com.liferay.portal.kernel.util.OrderByComparator" }; - - _methodName179 = "countByIntPratica_Tipologia_InEsito"; - - _methodParameterTypes179 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; - - _methodName180 = "countByDettPratica_Tipologia_InEsito"; - - _methodParameterTypes180 = new String[] { - "long", "java.lang.String", "java.lang.String[][]" - }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -283,48 +191,55 @@ public class AsseverazioneServiceClpInvoker { if (_methodName157.equals(name) && Arrays.deepEquals(_methodParameterTypes157, parameterTypes)) { - return AsseverazioneServiceUtil.findByIntPratica(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), - ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); + return AsseverazioneServiceUtil.countByCodiceFiscale_Esito((java.lang.String)arguments[0], + (java.lang.String)arguments[1]); } if (_methodName158.equals(name) && Arrays.deepEquals(_methodParameterTypes158, parameterTypes)) { - return AsseverazioneServiceUtil.findByDettPratica(((Long)arguments[0]).longValue(), - ((Integer)arguments[1]).intValue(), + return AsseverazioneServiceUtil.findByCodiceFiscale_Esito((java.lang.String)arguments[0], + (java.lang.String)arguments[1], ((Integer)arguments[2]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[3]); + ((Integer)arguments[3]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } if (_methodName159.equals(name) && Arrays.deepEquals(_methodParameterTypes159, parameterTypes)) { - return AsseverazioneServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); + return AsseverazioneServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], + (java.lang.String[])arguments[1], + ((Integer)arguments[2]).intValue(), + ((Integer)arguments[3]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } if (_methodName160.equals(name) && Arrays.deepEquals(_methodParameterTypes160, parameterTypes)) { - return AsseverazioneServiceUtil.countByDettPratica(((Long)arguments[0]).longValue()); + return AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.String)arguments[2], + ((Integer)arguments[3]).intValue(), + ((Integer)arguments[4]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } if (_methodName161.equals(name) && Arrays.deepEquals(_methodParameterTypes161, parameterTypes)) { - return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - ((Integer)arguments[2]).intValue(), + return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1], (java.lang.String)arguments[2], ((Integer)arguments[3]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); + ((Integer)arguments[4]).intValue(), + (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); } if (_methodName162.equals(name) && Arrays.deepEquals(_methodParameterTypes162, parameterTypes)) { - return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1]); + return AsseverazioneServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), + (java.lang.String[])arguments[1]); } if (_methodName163.equals(name) && Arrays.deepEquals(_methodParameterTypes163, parameterTypes)) { - return AsseverazioneServiceUtil.findByCodiceFiscale_InEsito((java.lang.String)arguments[0], + return AsseverazioneServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue(), @@ -333,137 +248,19 @@ public class AsseverazioneServiceClpInvoker { if (_methodName164.equals(name) && Arrays.deepEquals(_methodParameterTypes164, parameterTypes)) { - return AsseverazioneServiceUtil.countByCodiceFiscale_InEsito((java.lang.String)arguments[0], - (java.lang.String[])arguments[1]); + return AsseverazioneServiceUtil.countByIntPratica_Esito(((Long)arguments[0]).longValue(), + (java.lang.String)arguments[1]); } if (_methodName165.equals(name) && Arrays.deepEquals(_methodParameterTypes165, parameterTypes)) { - return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), + return AsseverazioneServiceUtil.findByIntPratica_Esito(((Long)arguments[0]).longValue(), (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName166.equals(name) && - Arrays.deepEquals(_methodParameterTypes166, parameterTypes)) { - return AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName167.equals(name) && - Arrays.deepEquals(_methodParameterTypes167, parameterTypes)) { - return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - - if (_methodName168.equals(name) && - Arrays.deepEquals(_methodParameterTypes168, parameterTypes)) { - return AsseverazioneServiceUtil.countByDettPratica_CodiceFiscale_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - - if (_methodName169.equals(name) && - Arrays.deepEquals(_methodParameterTypes169, parameterTypes)) { - return AsseverazioneServiceUtil.findByIntPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1], - ((Integer)arguments[2]).intValue(), - ((Integer)arguments[3]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); - } - - if (_methodName170.equals(name) && - Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { - return AsseverazioneServiceUtil.countByIntPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1]); - } - - if (_methodName171.equals(name) && - Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) { - return AsseverazioneServiceUtil.findByDettPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1], ((Integer)arguments[2]).intValue(), ((Integer)arguments[3]).intValue(), (com.liferay.portal.kernel.util.OrderByComparator)arguments[4]); } - if (_methodName172.equals(name) && - Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) { - return AsseverazioneServiceUtil.countByDettPratica_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String[])arguments[1]); - } - - if (_methodName173.equals(name) && - Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { - return AsseverazioneServiceUtil.findByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName174.equals(name) && - Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) { - return AsseverazioneServiceUtil.countByCodiceFiscale_Tipologia_InEsito((java.lang.String)arguments[0], - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - - if (_methodName175.equals(name) && - Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { - return AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - (java.lang.String[])arguments[3], - ((Integer)arguments[4]).intValue(), - ((Integer)arguments[5]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[6]); - } - - if (_methodName176.equals(name) && - Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) { - return AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String)arguments[2], - (java.lang.String[])arguments[3]); - } - - if (_methodName177.equals(name) && - Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { - return AsseverazioneServiceUtil.findByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName178.equals(name) && - Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { - return AsseverazioneServiceUtil.findByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], - (java.lang.String[])arguments[2], - ((Integer)arguments[3]).intValue(), - ((Integer)arguments[4]).intValue(), - (com.liferay.portal.kernel.util.OrderByComparator)arguments[5]); - } - - if (_methodName179.equals(name) && - Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { - return AsseverazioneServiceUtil.countByIntPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - - if (_methodName180.equals(name) && - Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { - return AsseverazioneServiceUtil.countByDettPratica_Tipologia_InEsito(((Long)arguments[0]).longValue(), - (java.lang.String)arguments[1], (java.lang.String[])arguments[2]); - } - throw new UnsupportedOperationException(); } @@ -503,34 +300,4 @@ public class AsseverazioneServiceClpInvoker { private String[] _methodParameterTypes164; private String _methodName165; private String[] _methodParameterTypes165; - private String _methodName166; - private String[] _methodParameterTypes166; - private String _methodName167; - private String[] _methodParameterTypes167; - private String _methodName168; - private String[] _methodParameterTypes168; - private String _methodName169; - private String[] _methodParameterTypes169; - private String _methodName170; - private String[] _methodParameterTypes170; - private String _methodName171; - private String[] _methodParameterTypes171; - private String _methodName172; - private String[] _methodParameterTypes172; - private String _methodName173; - private String[] _methodParameterTypes173; - private String _methodName174; - private String[] _methodParameterTypes174; - private String _methodName175; - private String[] _methodParameterTypes175; - private String _methodName176; - private String[] _methodParameterTypes176; - private String _methodName177; - private String[] _methodParameterTypes177; - private String _methodName178; - private String[] _methodParameterTypes178; - private String _methodName179; - private String[] _methodParameterTypes179; - private String _methodName180; - private String[] _methodParameterTypes180; } \ 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/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 83161125..3cfceeac 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 @@ -362,6 +362,27 @@ public class IntPraticaLocalServiceClpInvoker { _methodName225 = "hasRichiestaIntegrazioneAttiva"; _methodParameterTypes225 = new String[] { "long" }; + + _methodName226 = "searchAltriProgetti"; + + _methodParameterTypes226 = new String[] { + "javax.servlet.http.HttpServletRequest", + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName227 = "searchArchivioProgetti"; + + _methodParameterTypes227 = new String[] { + "javax.servlet.http.HttpServletRequest", + "com.liferay.portal.model.User", "int", "int" + }; + + _methodName228 = "searchMieiProgetti"; + + _methodParameterTypes228 = new String[] { + "javax.servlet.http.HttpServletRequest", + "com.liferay.portal.model.User", "int", "int" + }; } public Object invokeMethod(String name, String[] parameterTypes, @@ -814,6 +835,30 @@ public class IntPraticaLocalServiceClpInvoker { return IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(((Long)arguments[0]).longValue()); } + if (_methodName226.equals(name) && + Arrays.deepEquals(_methodParameterTypes226, parameterTypes)) { + return IntPraticaLocalServiceUtil.searchAltriProgetti((javax.servlet.http.HttpServletRequest)arguments[0], + (com.liferay.portal.model.User)arguments[1], + ((Integer)arguments[2]).intValue(), + ((Integer)arguments[3]).intValue()); + } + + if (_methodName227.equals(name) && + Arrays.deepEquals(_methodParameterTypes227, parameterTypes)) { + return IntPraticaLocalServiceUtil.searchArchivioProgetti((javax.servlet.http.HttpServletRequest)arguments[0], + (com.liferay.portal.model.User)arguments[1], + ((Integer)arguments[2]).intValue(), + ((Integer)arguments[3]).intValue()); + } + + if (_methodName228.equals(name) && + Arrays.deepEquals(_methodParameterTypes228, parameterTypes)) { + return IntPraticaLocalServiceUtil.searchMieiProgetti((javax.servlet.http.HttpServletRequest)arguments[0], + (com.liferay.portal.model.User)arguments[1], + ((Integer)arguments[2]).intValue(), + ((Integer)arguments[3]).intValue()); + } + throw new UnsupportedOperationException(); } @@ -959,4 +1004,10 @@ public class IntPraticaLocalServiceClpInvoker { private String[] _methodParameterTypes224; private String _methodName225; private String[] _methodParameterTypes225; + private String _methodName226; + private String[] _methodParameterTypes226; + private String _methodName227; + private String[] _methodParameterTypes227; + private String _methodName228; + private String[] _methodParameterTypes228; } \ 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/http/AsseverazioneServiceSoap.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/AsseverazioneServiceSoap.java index bbcb931c..b9161588 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/AsseverazioneServiceSoap.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/AsseverazioneServiceSoap.java @@ -156,60 +156,12 @@ public class AsseverazioneServiceSoap { } } - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica( - long intPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws RemoteException { - try { - java.util.List returnValue = - AsseverazioneServiceUtil.findByIntPratica(intPraticaId, start, - end, orderByComparator); - - return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByDettPratica( - long dettPraticaId, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws RemoteException { - try { - java.util.List returnValue = - AsseverazioneServiceUtil.findByDettPratica(dettPraticaId, - start, end, orderByComparator); - - return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByIntPratica(long intPraticaId) - throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByIntPratica(intPraticaId); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByDettPratica(long dettPraticaId) + public static int countByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito) throws RemoteException { try { - int returnValue = AsseverazioneServiceUtil.countByDettPratica(dettPraticaId); + int returnValue = AsseverazioneServiceUtil.countByCodiceFiscale_Esito(codiceFiscale, + esito); return returnValue; } @@ -220,14 +172,15 @@ public class AsseverazioneServiceSoap { } } - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_CodiceFiscale( - long intPraticaId, java.lang.String codiceFiscale, int start, int end, + public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByCodiceFiscale_Esito( + java.lang.String codiceFiscale, java.lang.String esito, int start, + int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws RemoteException { try { java.util.List returnValue = - AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, start, end, orderByComparator); + AsseverazioneServiceUtil.findByCodiceFiscale_Esito(codiceFiscale, + esito, start, end, orderByComparator); return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); } @@ -238,21 +191,6 @@ public class AsseverazioneServiceSoap { } } - public static int countByIntPratica_CodiceFiscale(long intPraticaId, - java.lang.String codiceFiscale) throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByCodiceFiscale_InEsito( java.lang.String codiceFiscale, java.lang.String[] esiti, int start, int end, @@ -272,50 +210,15 @@ public class AsseverazioneServiceSoap { } } - public static int countByCodiceFiscale_InEsito( - java.lang.String codiceFiscale, java.lang.String[] esiti) - throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByCodiceFiscale_InEsito(codiceFiscale, - esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws RemoteException { - try { - java.util.List returnValue = - AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); - - return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByDettPratica_CodiceFiscale_InEsito( + public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByDettPratica_CodiceFiscale_Esito( long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws RemoteException { try { java.util.List returnValue = - AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti, start, end, orderByComparator); + AsseverazioneServiceUtil.findByDettPratica_CodiceFiscale_Esito(dettPraticaId, + codiceFiscale, esito, start, end, orderByComparator); return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); } @@ -326,46 +229,15 @@ public class AsseverazioneServiceSoap { } } - public static int countByIntPratica_CodiceFiscale_InEsito( + public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_CodiceFiscale_Esito( long intPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti) throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, java.lang.String codiceFiscale, - java.lang.String[] esiti) throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_InEsito( - long intPraticaId, java.lang.String[] esiti, int start, int end, + java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws RemoteException { try { java.util.List returnValue = - AsseverazioneServiceUtil.findByIntPratica_InEsito(intPraticaId, - esiti, start, end, orderByComparator); + AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_Esito(intPraticaId, + codiceFiscale, esito, start, end, orderByComparator); return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); } @@ -376,10 +248,10 @@ public class AsseverazioneServiceSoap { } } - public static int countByIntPratica_InEsito(long intPraticaId, + public static int countByDettPratica_InEsito(long dettPraticaId, java.lang.String[] esiti) throws RemoteException { try { - int returnValue = AsseverazioneServiceUtil.countByIntPratica_InEsito(intPraticaId, + int returnValue = AsseverazioneServiceUtil.countByDettPratica_InEsito(dettPraticaId, esiti); return returnValue; @@ -409,84 +281,11 @@ public class AsseverazioneServiceSoap { } } - public static int countByDettPratica_InEsito(long dettPraticaId, - java.lang.String[] esiti) throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByDettPratica_InEsito(dettPraticaId, - esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws RemoteException { - try { - java.util.List returnValue = - AsseverazioneServiceUtil.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - - return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByCodiceFiscale_Tipologia_InEsito( - java.lang.String codiceFiscale, java.lang.String tipologia, - java.lang.String[] esiti) throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, - tipologia, esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti, int start, - int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws RemoteException { - try { - java.util.List returnValue = - AsseverazioneServiceUtil.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti, start, end, - orderByComparator); - - return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, java.lang.String codiceFiscale, - java.lang.String tipologia, java.lang.String[] esiti) - throws RemoteException { + public static int countByIntPratica_Esito(long intPraticaId, + java.lang.String esito) throws RemoteException { try { - int returnValue = AsseverazioneServiceUtil.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esiti); + int returnValue = AsseverazioneServiceUtil.countByIntPratica_Esito(intPraticaId, + esito); return returnValue; } @@ -497,15 +296,14 @@ public class AsseverazioneServiceSoap { } } - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_Tipologia_InEsito( - long intPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, + public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByIntPratica_Esito( + long intPraticaId, java.lang.String esito, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws RemoteException { try { java.util.List returnValue = - AsseverazioneServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti, start, end, orderByComparator); + AsseverazioneServiceUtil.findByIntPratica_Esito(intPraticaId, + esito, start, end, orderByComparator); return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); } @@ -516,56 +314,5 @@ public class AsseverazioneServiceSoap { } } - public static it.tref.liferay.portos.bo.model.AsseverazioneSoap[] findByDettPratica_Tipologia_InEsito( - long dettPraticaId, java.lang.String tipologia, - java.lang.String[] esiti, int start, int end, - com.liferay.portal.kernel.util.OrderByComparator orderByComparator) - throws RemoteException { - try { - java.util.List returnValue = - AsseverazioneServiceUtil.findByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti, start, end, orderByComparator); - - return it.tref.liferay.portos.bo.model.AsseverazioneSoap.toSoapModels(returnValue); - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByIntPratica_Tipologia_InEsito(long intPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByIntPratica_Tipologia_InEsito(intPraticaId, - tipologia, esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - - public static int countByDettPratica_Tipologia_InEsito(long dettPraticaId, - java.lang.String tipologia, java.lang.String[] esiti) - throws RemoteException { - try { - int returnValue = AsseverazioneServiceUtil.countByDettPratica_Tipologia_InEsito(dettPraticaId, - tipologia, esiti); - - return returnValue; - } - catch (Exception e) { - _log.error(e, e); - - throw new RemoteException(e.getMessage()); - } - } - private static Log _log = LogFactoryUtil.getLog(AsseverazioneServiceSoap.class); } \ 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/AsseverazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java index 6aec0ba4..24157530 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java @@ -8,6 +8,7 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.DettPratica; @@ -19,10 +20,8 @@ import it.tref.liferay.portos.bo.service.base.AsseverazioneLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.AsseverazioniUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; import it.tref.liferay.portos.bo.util.DelegheUtil; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.dto.ReportDto; @@ -238,7 +237,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase .replace("{{!rischio}}", rischio ? StringPool.SPACE : "X") .replace("{{strategico}}", strategico ? "X" : StringPool.SPACE).replace("{{albo}}", albo) .replace("{{albop}}", albop).replace("{{albon}}", albon); - if (DocumentiPraticaUtil.richiestoA24(dettPratica)) { + if (dettPratica.richiestoA24()) { html = html.replaceAll("\\s*##A25(.*?)##\\s*", StringPool.BLANK); } else { html = html @@ -456,8 +455,7 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase String testoAsseverazione = testoAsseverazione(asseverazione.getTipologia(), asseverazione.getCodiceFiscale(), asseverazione.getDettPraticaId(), relazioni); if (Validator.isNull(testoAsseverazione)) { - testoAsseverazione = AsseverazioniUtil.retrieveAsseverazioneText(asseverazione, - asseverazione.getCodiceFiscale()); + testoAsseverazione = asseverazione.retrieveText(asseverazione.getCodiceFiscale()); } IntPratica intPratica = intPraticaLocalService.getIntPratica(asseverazione.getIntPraticaId()); Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId()); @@ -493,8 +491,8 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase @Override public void concludiAsseverazioniExpired(long dettPraticaId) throws IOException, SystemException, PortalException { - List asseverazioni = findByDettPratica_InEsito(dettPraticaId, - new String[] { AsseverazioniUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + List asseverazioni = findByDettPratica_Esito(dettPraticaId, AsseverazioniUtil.STATO_ASSEGNATA, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); for (Asseverazione asseverazione : asseverazioni) { cambioStatoAsseverazione(asseverazione.getUserId(), asseverazione.getAsseverazioneId(), AsseverazioniUtil.STATO_EXPIRED); @@ -578,43 +576,17 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public List findByIntPratica(long intPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + public int countByCodiceFiscale_Esito(String codiceFiscale, String esito) throws SystemException { - return asseverazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); + return asseverazionePersistence.countByCodiceFiscale_InEsito(codiceFiscale, esito); } @Override - public List findByDettPratica(long dettPraticaId, int start, int end, + public List findByCodiceFiscale_Esito(String codiceFiscale, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByDettPratica(dettPraticaId, start, end, orderByComparator); - } - - @Override - public int countByIntPratica(long intPraticaId) throws SystemException { - - return asseverazionePersistence.countByIntPratica(intPraticaId); - } - - @Override - public int countByDettPratica(long dettPraticaId) throws SystemException { - - return asseverazionePersistence.countByDettPratica(dettPraticaId); - } - - @Override - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazionePersistence.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, - orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { - - return asseverazionePersistence.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); + return asseverazionePersistence + .findByCodiceFiscale_InEsito(codiceFiscale, esito, start, end, orderByComparator); } @Override @@ -626,59 +598,32 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { - - return asseverazionePersistence.countByCodiceFiscale_InEsito(codiceFiscale, esiti); - } - - @Override - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazionePersistence.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, - start, end, orderByComparator); - } - - @Override - public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazionePersistence.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti, - start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) - throws SystemException { + public List findByDettPratica(long dettPraticaId, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); + return asseverazionePersistence.findByDettPratica(dettPraticaId, start, end, orderByComparator); } @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, String[] esiti) + public int countByDettPratica_CodiceFiscale_Esito(long dettPraticaId, String codiceFiscale, String esito) throws SystemException { - return asseverazionePersistence.countByIntPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti); + return asseverazionePersistence.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esito); } @Override - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + public List findByDettPratica_CodiceFiscale_Esito(long dettPraticaId, String codiceFiscale, + String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { - - return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esiti); + return asseverazionePersistence.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esito, + start, end, orderByComparator); } @Override - public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, + public List findByDettPratica_Esito(long dettPraticaId, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); + return asseverazionePersistence.findByDettPratica_InEsito(dettPraticaId, esito, start, end, orderByComparator); } @Override @@ -688,64 +633,36 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase } @Override - public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazionePersistence.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, - end, orderByComparator); - } - - @Override - public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) - throws SystemException { - - return asseverazionePersistence.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); - } - - @Override - public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, - String codiceFiscale, String tipologia, String[] esiti, int start, int end, + public List findByDettPratica_InEsito(long dettPraticaId, String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, - String tipologia, String[] esiti) throws SystemException { - - return asseverazionePersistence.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, - tipologia, esiti); + return asseverazionePersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator); } @Override - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, + public List findByDettPratica_Tipologia_Esito(long dettPraticaId, String tipologia, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, - orderByComparator); + return asseverazionePersistence.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esito, start, + end, orderByComparator); } @Override - public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + public List findByIntPratica_CodiceFiscale_Esito(long intPraticaId, String codiceFiscale, + String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, - end, orderByComparator); + return asseverazionePersistence.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esito, + start, end, orderByComparator); } - @Override - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) - throws SystemException { + public int countByIntPratica_Esito(long intPraticaId, String esito) throws SystemException { - return asseverazionePersistence.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); + return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esito); } - @Override - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti) - throws SystemException { + public List findByIntPratica_Esito(long intPraticaId, String esito, int start, int end, + OrderByComparator orderByComparator) throws SystemException { - return asseverazionePersistence.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti); + return asseverazionePersistence.findByIntPratica_InEsito(intPraticaId, esito, start, end, orderByComparator); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java index 0b7c6e80..6b8af3c7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java @@ -9,8 +9,8 @@ package it.tref.liferay.portos.bo.service.impl; import it.tref.liferay.portos.bo.model.Asseverazione; +import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.service.base.AsseverazioneServiceBaseImpl; -import it.tref.liferay.portos.bo.util.AsseverazioniUtil; import java.io.IOException; import java.util.List; @@ -46,7 +46,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, SystemException, PortalException { - if (AsseverazioniUtil.hasCambioStatoAsseverazione(getUserId(), asseverazioneId)) { + Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); + if (asseverazione.hasCambioStatoAsseverazione(getUserId())) { asseverazioneLocalService.cambioStatoAsseverazione(getUserId(), asseverazioneId, stato); } else { throw new SystemException("annulla-asseverazione-non-possibile"); @@ -57,7 +58,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { public void cambioStatoAsseverazioni(long dettPraticaId, String stato) throws IOException, SystemException, PrincipalException, PortalException { - if (AsseverazioniUtil.hasRichiediAsseverazioni(getUserId(), dettPraticaId)) { + DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + if (dettPratica.hasRichiediAsseverazioni(getUserId())) { asseverazioneLocalService.cambioStatoAsseverazioni(dettPraticaId, stato); } else { throw new SystemException("annulla-asseverazione-non-possibile"); @@ -68,7 +70,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { public void richiediAsseverazioni(long dettPraticaId, ServiceContext serviceContext) throws PrincipalException, PortalException, SystemException { - if (AsseverazioniUtil.hasRichiediAsseverazioni(getUserId(), dettPraticaId)) { + DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + if (dettPratica.hasRichiediAsseverazioni(getUserId())) { asseverazioneLocalService.richiediAsseverazioni(dettPraticaId, serviceContext); } else { throw new SystemException("richiedi-asseverazione-non-possibile"); @@ -78,7 +81,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { @Override public void resetAsseverazione(long dettPraticaId, long asseverazioneId) throws PortalException, SystemException { - if (AsseverazioniUtil.hasAnnullaAsseverazioni(getUserId(), dettPraticaId)) { + DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + if (dettPratica.hasAnnullaAsseverazioni(getUserId())) { asseverazioneLocalService.resetAsseverazione(asseverazioneId); } else { throw new SystemException("reset-asseverazione-non-possibile"); @@ -89,7 +93,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { public void annullaAsseverazioni(long dettPraticaId) throws IOException, PrincipalException, PortalException, SystemException { - if (AsseverazioniUtil.hasAnnullaAsseverazioni(getUserId(), dettPraticaId)) { + DettPratica dettPratica = dettPraticaLocalService.getDettPratica(dettPraticaId); + if (dettPratica.hasAnnullaAsseverazioni(getUserId())) { asseverazioneLocalService.annullaAsseverazioni(dettPraticaId); } else { throw new SystemException("annulla-asseverazione-non-possibile"); @@ -99,7 +104,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { @Override public void rimuoviFileAsseverazione(long asseverazioneId) throws SystemException, PortalException { - if (AsseverazioniUtil.hasGestisciFileAsseverazione(getUserId(), asseverazioneId)) { + Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); + if (asseverazione.hasGestisciFileAsseverazione(getUserId())) { asseverazioneLocalService.rimuoviFileAsseverazione(asseverazioneId); } else { throw new SystemException("annulla-asseverazione-non-possibile"); @@ -110,7 +116,8 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { public FileEntry allegaFileAsseverazione(long asseverazioneId, byte[] content, String sourceFileName, ServiceContext serviceContext) throws SystemException, PortalException { - if (AsseverazioniUtil.hasGestisciFileAsseverazione(getUserId(), asseverazioneId)) { + Asseverazione asseverazione = asseverazioneLocalService.getAsseverazione(asseverazioneId); + if (asseverazione.hasGestisciFileAsseverazione(getUserId())) { return asseverazioneLocalService.allegaFileAsseverazione(asseverazioneId, content, sourceFileName, serviceContext); } else { @@ -119,43 +126,16 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public List findByIntPratica(long intPraticaId, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + public int countByCodiceFiscale_Esito(String codiceFiscale, String esito) throws SystemException { - return asseverazioneLocalService.findByIntPratica(intPraticaId, start, end, orderByComparator); + return asseverazioneLocalService.countByCodiceFiscale_Esito(codiceFiscale, esito); } @Override - public List findByDettPratica(long dettPraticaId, int start, int end, + public List findByCodiceFiscale_Esito(String codiceFiscale, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByDettPratica(dettPraticaId, start, end, orderByComparator); - } - - @Override - public int countByIntPratica(long intPraticaId) throws SystemException { - - return asseverazioneLocalService.countByIntPratica(intPraticaId); - } - - @Override - public int countByDettPratica(long dettPraticaId) throws SystemException { - - return asseverazioneLocalService.countByDettPratica(dettPraticaId); - } - - @Override - public List findByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazioneLocalService.findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, start, end, - orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, String codiceFiscale) throws SystemException { - - return asseverazioneLocalService.countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); + return asseverazioneLocalService.findByCodiceFiscale_Esito(codiceFiscale, esito, start, end, orderByComparator); } @Override @@ -167,52 +147,25 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public int countByCodiceFiscale_InEsito(String codiceFiscale, String[] esiti) throws SystemException { - - return asseverazioneLocalService.countByCodiceFiscale_InEsito(codiceFiscale, esiti); - } - - @Override - public List findByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + public List findByDettPratica_CodiceFiscale_Esito(long dettPraticaId, String codiceFiscale, + String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti, + return asseverazioneLocalService.findByDettPratica_CodiceFiscale_Esito(dettPraticaId, codiceFiscale, esito, start, end, orderByComparator); } @Override - public List findByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + public List findByIntPratica_CodiceFiscale_Esito(long intPraticaId, String codiceFiscale, + String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti, + return asseverazioneLocalService.findByIntPratica_CodiceFiscale_Esito(intPraticaId, codiceFiscale, esito, start, end, orderByComparator); } @Override - public int countByIntPratica_CodiceFiscale_InEsito(long intPraticaId, String codiceFiscale, String[] esiti) - throws SystemException { - - return asseverazioneLocalService.countByIntPratica_CodiceFiscale_InEsito(intPraticaId, codiceFiscale, esiti); - } - - @Override - public int countByDettPratica_CodiceFiscale_InEsito(long dettPraticaId, String codiceFiscale, String[] esiti) - throws SystemException { - - return asseverazioneLocalService.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, codiceFiscale, esiti); - } - - @Override - public List findByIntPratica_InEsito(long intPraticaId, String[] esiti, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - - return asseverazioneLocalService.findByIntPratica_InEsito(intPraticaId, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_InEsito(long intPraticaId, String[] esiti) throws SystemException { + public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { - return asseverazioneLocalService.countByIntPratica_InEsito(intPraticaId, esiti); + return asseverazioneLocalService.countByDettPratica_InEsito(dettPraticaId, esiti); } @Override @@ -223,70 +176,15 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl { } @Override - public int countByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException { - - return asseverazioneLocalService.countByDettPratica_InEsito(dettPraticaId, esiti); - } - - @Override - public List findByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { + public int countByIntPratica_Esito(long intPraticaId, String esito) throws SystemException { - return asseverazioneLocalService.findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti, start, - end, orderByComparator); + return asseverazioneLocalService.countByIntPratica_Esito(intPraticaId, esito); } @Override - public int countByCodiceFiscale_Tipologia_InEsito(String codiceFiscale, String tipologia, String[] esiti) - throws SystemException { - - return asseverazioneLocalService.countByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, esiti); - } - - @Override - public List findByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, - String codiceFiscale, String tipologia, String[] esiti, int start, int end, + public List findByIntPratica_Esito(long intPraticaId, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { - return asseverazioneLocalService.findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, - tipologia, esiti, start, end, orderByComparator); - } - - @Override - public int countByIntPratica_CodiceFiscale_Tipologia_InEsito(long intPraticaId, String codiceFiscale, - String tipologia, String[] esiti) throws SystemException { - - return asseverazioneLocalService.countByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, codiceFiscale, - tipologia, esiti); - } - - @Override - public List findByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti, - int start, int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazioneLocalService.findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti, start, end, - orderByComparator); - } - - @Override - public List findByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, - String[] esiti, int start, int end, OrderByComparator orderByComparator) throws SystemException { - - return asseverazioneLocalService.findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti, start, - end, orderByComparator); - } - - @Override - public int countByIntPratica_Tipologia_InEsito(long intPraticaId, String tipologia, String[] esiti) - throws SystemException { - - return asseverazioneLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti); - } - - @Override - public int countByDettPratica_Tipologia_InEsito(long dettPraticaId, String tipologia, String[] esiti) - throws SystemException { - - return asseverazioneLocalService.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti); + return asseverazioneLocalService.findByIntPratica_Esito(intPraticaId, esito, start, end, orderByComparator); } } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java index 384c6bfb..0e82c5fb 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java @@ -14,7 +14,6 @@ import it.tref.liferay.portos.bo.service.base.AvvisoLocalServiceBaseImpl; 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.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.ProtocollazioneUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil; @@ -98,7 +97,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl { String statoPratica = intPratica.getStatoPratica(); if (AvvisoUtil.isStatoPraticaValidoNuovoAvviso(statoPratica)) { - if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + if (intPratica.isAutorizzazione()) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(statoPratica)) { statoPratica = StatoPraticaConstants.AUTORIZZATA; } else if (StatoPraticaConstants.NON_CONFORME.equalsIgnoreCase(statoPratica)) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java index 28323c27..6c90d6e1 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java @@ -17,7 +17,6 @@ import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.service.base.CollaudoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.PagamentiCommonUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil; @@ -231,10 +230,10 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl { String[] cc = new String[0]; String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK; - long intPraticaId = collaudo.getIntPraticaId(); - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + IntPratica intPratica = intPraticaLocalService.getIntPratica(collaudo.getIntPraticaId()); + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java index a5c3ec5b..6a8d0909 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java @@ -14,7 +14,6 @@ import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.service.base.ComunicazioneLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil; import it.tref.liferay.portos.bo.shared.util.PortletKeys; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil; @@ -57,8 +56,9 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase */ @Override - public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) - throws SystemException, PortalException { + public Comunicazione + addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) + throws SystemException, PortalException { Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService.increment(Comunicazione.class .getName())); @@ -160,10 +160,10 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase String[] cc = new String[0]; String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK; - long intPraticaId = comunicazione.getIntPraticaId(); - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); 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 0fc67e43..6a4bae58 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 @@ -21,7 +21,6 @@ import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.util.AvvisoUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.GestioneFirmeUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil; @@ -385,7 +384,8 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi ControlloPratica controlloPratica = getControlloPratica(controlloPraticaId); Map parametri = WorkflowUtil.getFormParameters(controlloPratica); String esitoScelta = (String) parametri.get("esito"); - if (AzioniPraticheUtil.isAutorizzazione(controlloPratica.getIntPraticaId())) { + IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId()); + if (intPratica.isAutorizzazione()) { if (StatoPraticaConstants.CONFORME.equalsIgnoreCase(esitoScelta)) { esitoScelta = StatoPraticaConstants.AUTORIZZATA; } else if (StatoPraticaConstants.NON_CONFORME.equals(esitoScelta)) { diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java index 99f44fdd..ad820bc6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java @@ -8,12 +8,12 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.service.base.DelegaLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.bean.FirmeBean; import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.AsseverazioniUtil; import it.tref.liferay.portos.bo.util.DelegheUtil; import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.dto.ReportDto; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java index 7abee82b..0711408e 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java @@ -8,6 +8,7 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.util.DomandaUtil; import it.tref.liferay.portos.bo.NoSuchDettPraticaException; import it.tref.liferay.portos.bo.model.Asseverazione; @@ -23,10 +24,8 @@ import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import java.io.IOException; @@ -1318,10 +1317,10 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl String[] cc = new String[0]; String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK; - long intPraticaId = dettPratica.getIntPraticaId(); - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + IntPratica intPratica = intPraticaLocalService.getIntPratica(dettPratica.getIntPraticaId()); + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java index ad442a84..9b4d8959 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java @@ -14,7 +14,6 @@ import it.tref.liferay.portos.bo.service.base.DettPraticaServiceBaseImpl; import it.tref.liferay.portos.bo.service.permission.DettPraticaEntryPermission; import it.tref.liferay.portos.bo.service.permission.DettPraticaPermission; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.util.DelegheUtil; import java.io.IOException; import java.io.Serializable; @@ -176,7 +175,8 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { throws PortalException, SystemException { DettPratica dettPratica = null; - if (!disabledSubmit && DelegheUtil.hasDelegaCompilazioneDomanda(userId, dettPraticaId)) { + if (!disabledSubmit + && dettPraticaLocalService.getDettPratica(dettPraticaId).hasDelegaCompilazioneDomanda(userId)) { if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(tipoIntegrazione)) { dettPratica = dettPraticaLocalService.updateDettPraticaDatiIntegrazione(userId, dettPraticaId, intPraticaId, tipoIntegrazione, destinazione, descLongIntervento, collaudoStatico, @@ -244,7 +244,8 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl { tcNoOpereEscavazione); } } - if (!geoDisabledSubmit && DelegheUtil.hasDelegaCompilazioneSezioneGeologica(userId, dettPraticaId)) { + if (!geoDisabledSubmit + && dettPraticaLocalService.getDettPratica(dettPraticaId).hasDelegaCompilazioneSezioneGeologica(userId)) { dettPratica = dettPraticaLocalService.updateDettPraticaGeologo(userId, dettPraticaId, intPraticaId, geoClasseIndagine, geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica, geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java index 17a645e1..79803ce9 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java @@ -17,7 +17,6 @@ import it.tref.liferay.portos.bo.model.Pagamento; import it.tref.liferay.portos.bo.service.base.FineLavoriLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.util.PagamentiCommonUtil; import it.tref.liferay.portos.bo.util.PagamentiUtil; @@ -251,10 +250,10 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { String[] cc = new String[0]; String[] ccn = new String[0]; String tipoPratica = StringPool.BLANK; - long intPraticaId = fineLavori.getIntPraticaId(); - if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + IntPratica intPratica = intPraticaLocalService.getIntPratica(fineLavori.getIntPraticaId()); + if (intPratica.isDeposito()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01"); - } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + } else if (intPratica.isAutorizzazione()) { tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02"); } JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java index 9c006a80..7ef6ac42 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java @@ -8,7 +8,10 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.NoSuchIntPraticaException; import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.Avviso; @@ -32,11 +35,8 @@ import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.util.AvvisoUtil; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.util.Constants; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; import it.tref.liferay.portos.report.shared.constants.ReportConstants; @@ -58,6 +58,8 @@ import java.util.List; import java.util.Locale; import java.util.Map; +import javax.servlet.http.HttpServletRequest; + import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang.StringUtils; @@ -78,6 +80,7 @@ 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.repository.model.Folder; +import com.liferay.portal.kernel.search.Hits; import com.liferay.portal.kernel.search.Indexable; import com.liferay.portal.kernel.search.IndexableType; import com.liferay.portal.kernel.search.Indexer; @@ -482,9 +485,9 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { intPratica.setStatus(status); } else if (status == WorkflowConstants.STATUS_APPROVED) { intPratica.setStatus(status); - if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + if (intPratica.isAutorizzazione()) { intPratica.setStatoPratica(StatoPraticaConstants.AUTORIZZATA); - } else if (AzioniPraticheUtil.isDeposito(intPraticaId)) { + } else if (intPratica.isDeposito()) { intPratica.setStatoPratica(StatoPraticaConstants.CONFORME); } else { // SANATORIA (da capire) @@ -496,7 +499,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } else if (status == WorkflowConstants.STATUS_DENIED) { intPratica.setStatus(status); if (!intPratica.getStatoPratica().equalsIgnoreCase(StatoPraticaConstants.NO_PARERE)) { - if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) { + if (intPratica.isAutorizzazione()) { intPratica.setStatoPratica(StatoPraticaConstants.NON_AUTORIZZATA); } else { // SANATORIA (da capire) @@ -981,12 +984,12 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { + " - " + (Validator.isNotNull(territorio.getAgMax()) ? territorio.getAgMax() : StringPool.BLANK)); parameters.put("ag", dettPratica.getAg()); - if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { + if (intPratica.isDeposito()) { parameters.put("normDpr01", dettPratica.getNormDpr01Dep() ? "" : ""); parameters.put("normDpr02", dettPratica.getNormDpr01Dep() ? "" : ""); - } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { + } else if (intPratica.isAutorizzazione()) { parameters.put("normDpr01", dettPratica.getNormDpr01Aut() ? "" : ""); parameters.put("normDpr02", dettPratica.getNormDpr01Aut() @@ -1162,6 +1165,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { return organization; } + @Override public boolean hasRichiestaIntegrazioneAttiva(long intPraticaId) { IntPratica intPratica; @@ -1172,4 +1176,23 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { } return intPratica.hasRichiestaIntegrazioneAttiva(); } + + @Override + public Hits searchAltriProgetti(HttpServletRequest request, User user, int start, int end) { + + return IntPraticaAdvancedSearch.searchAltriProgetti(request, user, start, end); + } + + @Override + public Hits searchArchivioProgetti(HttpServletRequest request, User user, int start, int end) { + + return IntPraticaAdvancedSearch.searchArchivioProgetti(request, user, start, end); + } + + @Override + public Hits searchMieiProgetti(HttpServletRequest request, User user, int start, int end) { + + return IntPraticaAdvancedSearch.searchMieiProgetti(request, user, start, end); + } + } diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java index 3c57a759..e8b6fef6 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java @@ -8,13 +8,12 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.shared.util.AzioniPraticheUtil; import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.Territorio; import it.tref.liferay.portos.bo.service.base.IntPraticaServiceBaseImpl; import it.tref.liferay.portos.bo.service.permission.IntPraticaPermission; import it.tref.liferay.portos.bo.shared.util.ActionKeys; -import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; -import it.tref.liferay.portos.bo.util.ValidazionePraticaUtil; import java.io.IOException; import java.util.List; @@ -55,7 +54,7 @@ public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl { public void deleteIntPratica(long intPraticaId, long userId) throws PortalException, SystemException { IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); - if (ValidazionePraticaUtil.canDeletePratica(intPraticaId, userId)) { + if (intPratica.canDeletePratica(userId)) { intPraticaLocalService.deleteIntPratica(intPratica); } else { throw new SystemException("impossibile cancellare la int pratica"); @@ -143,8 +142,8 @@ public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl { @Override public void completeAnnullamento(long intPraticaId, long userId) throws PortalException, SystemException { - if (!AzioniPraticheUtil.isAllowedAction(intPraticaId, AzioniPraticheUtil.ACTION_ANNULLA) - || !ValidazionePraticaUtil.praticaCanAbort(intPraticaId, userId)) { + IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); + if (!intPratica.isAllowedAction(AzioniPraticheUtil.ACTION_ANNULLA) || !intPratica.praticaCanAbort(userId)) { throw new SystemException("error.annullamento.add.file.not.allowed"); } intPraticaLocalService.completeAnnullamento(intPraticaId); diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java index 486c0e3d..8f243895 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java @@ -8,15 +8,15 @@ package it.tref.liferay.portos.bo.service.impl; +import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; +import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.tref.liferay.portos.bo.NoSuchDocPraticaException; import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DocPratica; import it.tref.liferay.portos.bo.model.Soggetto; import it.tref.liferay.portos.bo.service.base.SoggettoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; -import it.tref.liferay.portos.bo.util.DocumentiPraticaUtil; import it.tref.liferay.portos.bo.util.SoggettiUtil; -import it.tref.liferay.portos.bo.util.WorkflowConstants; import java.util.Collections; import java.util.Date; diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java index f9489e0d..e86c49f7 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java @@ -1459,69 +1459,69 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica(long intPraticaId) + public List findByDettPratica(long dettPraticaId) throws SystemException { - return findByIntPratica(intPraticaId, QueryUtil.ALL_POS, + return findByDettPratica(dettPraticaId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where intPraticaId = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID + * @param dettPraticaId the dett pratica ID * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ @Override - public List findByIntPratica(long intPraticaId, int start, + public List findByDettPratica(long dettPraticaId, int start, int end) throws SystemException { - return findByIntPratica(intPraticaId, start, end, null); + return findByDettPratica(dettPraticaId, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID + * @param dettPraticaId the dett pratica ID * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) @@ -1529,7 +1529,7 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica(long intPraticaId, int start, + public List findByDettPratica(long dettPraticaId, int start, int end, OrderByComparator orderByComparator) throws SystemException { boolean pagination = true; FinderPath finderPath = null; @@ -1538,13 +1538,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl)QueryUtil.list(q, getDialect(), @@ -1631,19 +1631,19 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ @Override - public Asseverazione findByIntPratica_First(long intPraticaId, + public Asseverazione findByDettPratica_First(long dettPraticaId, OrderByComparator orderByComparator) throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_First(intPraticaId, + Asseverazione asseverazione = fetchByDettPratica_First(dettPraticaId, orderByComparator); if (asseverazione != null) { @@ -1654,8 +1654,8 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica(long dettPraticaId) - throws SystemException { - return findByDettPratica(dettPraticaId, QueryUtil.ALL_POS, + public List findByIntPratica_InEsito(long intPraticaId, + String esito) throws SystemException { + return findByIntPratica_InEsito(intPraticaId, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where dettPraticaId = ?. + * Returns a range of all the asseveraziones where intPraticaId = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param dettPraticaId the dett pratica ID + * @param intPraticaId the int pratica ID + * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @return the range of matching asseveraziones * @throws SystemException if a system exception occurred */ @Override - public List findByDettPratica(long dettPraticaId, int start, - int end) throws SystemException { - return findByDettPratica(dettPraticaId, start, end, null); + public List findByIntPratica_InEsito(long intPraticaId, + String esito, int start, int end) throws SystemException { + return findByIntPratica_InEsito(intPraticaId, esito, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ?. + * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param dettPraticaId the dett pratica ID + * @param intPraticaId the int pratica ID + * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) @@ -2026,8 +2039,9 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica(long dettPraticaId, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + public List findByIntPratica_InEsito(long intPraticaId, + String esito, int start, int end, OrderByComparator orderByComparator) + throws SystemException { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; @@ -2035,13 +2049,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl)QueryUtil.list(q, getDialect(), @@ -2128,31 +2161,35 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ @Override - public Asseverazione findByDettPratica_First(long dettPraticaId, - OrderByComparator orderByComparator) + public Asseverazione findByIntPratica_InEsito_First(long intPraticaId, + String esito, OrderByComparator orderByComparator) throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByDettPratica_First(dettPraticaId, - orderByComparator); + Asseverazione asseverazione = fetchByIntPratica_InEsito_First(intPraticaId, + esito, orderByComparator); if (asseverazione != null) { return asseverazione; } - StringBundler msg = new StringBundler(4); + StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); - msg.append("dettPraticaId="); - msg.append(dettPraticaId); + msg.append("intPraticaId="); + msg.append(intPraticaId); + + msg.append(", esito="); + msg.append(esito); msg.append(StringPool.CLOSE_CURLY_BRACE); @@ -2160,18 +2197,20 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ @Override - public Asseverazione fetchByDettPratica_First(long dettPraticaId, - OrderByComparator orderByComparator) throws SystemException { - List list = findByDettPratica(dettPraticaId, 0, 1, - orderByComparator); + public Asseverazione fetchByIntPratica_InEsito_First(long intPraticaId, + String esito, OrderByComparator orderByComparator) + throws SystemException { + List list = findByIntPratica_InEsito(intPraticaId, + esito, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); @@ -2181,31 +2220,35 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the last matching asseverazione * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ @Override - public Asseverazione findByDettPratica_Last(long dettPraticaId, - OrderByComparator orderByComparator) + public Asseverazione findByIntPratica_InEsito_Last(long intPraticaId, + String esito, OrderByComparator orderByComparator) throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByDettPratica_Last(dettPraticaId, - orderByComparator); + Asseverazione asseverazione = fetchByIntPratica_InEsito_Last(intPraticaId, + esito, orderByComparator); if (asseverazione != null) { return asseverazione; } - StringBundler msg = new StringBundler(4); + StringBundler msg = new StringBundler(6); msg.append(_NO_SUCH_ENTITY_WITH_KEY); - msg.append("dettPraticaId="); - msg.append(dettPraticaId); + msg.append("intPraticaId="); + msg.append(intPraticaId); + + msg.append(", esito="); + msg.append(esito); msg.append(StringPool.CLOSE_CURLY_BRACE); @@ -2213,3977 +2256,26 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the last matching asseverazione, or null if a matching asseverazione could not be found * @throws SystemException if a system exception occurred */ @Override - public Asseverazione fetchByDettPratica_Last(long dettPraticaId, - OrderByComparator orderByComparator) throws SystemException { - int count = countByDettPratica(dettPraticaId); + public Asseverazione fetchByIntPratica_InEsito_Last(long intPraticaId, + String esito, OrderByComparator orderByComparator) + throws SystemException { + int count = countByIntPratica_InEsito(intPraticaId, esito); if (count == 0) { return null; } - List list = findByDettPratica(dettPraticaId, count - 1, - count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where dettPraticaId = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param dettPraticaId the dett pratica ID - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione[] findByDettPratica_PrevAndNext(long asseverazioneId, - long dettPraticaId, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = findByPrimaryKey(asseverazioneId); - - Session session = null; - - try { - session = openSession(); - - Asseverazione[] array = new AsseverazioneImpl[3]; - - array[0] = getByDettPratica_PrevAndNext(session, asseverazione, - dettPraticaId, orderByComparator, true); - - array[1] = asseverazione; - - array[2] = getByDettPratica_PrevAndNext(session, asseverazione, - dettPraticaId, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Asseverazione getByDettPratica_PrevAndNext(Session session, - Asseverazione asseverazione, long dettPraticaId, - OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_DETTPRATICA_DETTPRATICAID_2); - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(asseverazione); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the asseveraziones where dettPraticaId = ? from the database. - * - * @param dettPraticaId the dett pratica ID - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByDettPratica(long dettPraticaId) - throws SystemException { - for (Asseverazione asseverazione : findByDettPratica(dettPraticaId, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(asseverazione); - } - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ?. - * - * @param dettPraticaId the dett pratica ID - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByDettPratica(long dettPraticaId) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_DETTPRATICA; - - Object[] finderArgs = new Object[] { dettPraticaId }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(2); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_DETTPRATICA_DETTPRATICAID_2); - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_DETTPRATICA_DETTPRATICAID_2 = "asseverazione.dettPraticaId = ?"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByIntPratica_CodiceFiscale", - new String[] { - Long.class.getName(), String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByIntPratica_CodiceFiscale", - new String[] { Long.class.getName(), String.class.getName() }, - AsseverazioneModelImpl.INTPRATICAID_COLUMN_BITMASK | - AsseverazioneModelImpl.CODICEFISCALE_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICA_CODICEFISCALE = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByIntPratica_CodiceFiscale", - new String[] { Long.class.getName(), String.class.getName() }); - - /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_CodiceFiscale( - long intPraticaId, String codiceFiscale) throws SystemException { - return findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_CodiceFiscale( - long intPraticaId, String codiceFiscale, int start, int end) - throws SystemException { - return findByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale, - start, end, null); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_CodiceFiscale( - long intPraticaId, String codiceFiscale, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE; - finderArgs = new Object[] { intPraticaId, codiceFiscale }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE; - finderArgs = new Object[] { - intPraticaId, codiceFiscale, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if ((intPraticaId != asseverazione.getIntPraticaId()) || - !Validator.equals(codiceFiscale, - asseverazione.getCodiceFiscale())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INTPRATICAID_2); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByIntPratica_CodiceFiscale_First( - long intPraticaId, String codiceFiscale, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_CodiceFiscale_First(intPraticaId, - codiceFiscale, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", codiceFiscale="); - msg.append(codiceFiscale); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByIntPratica_CodiceFiscale_First( - long intPraticaId, String codiceFiscale, - OrderByComparator orderByComparator) throws SystemException { - List list = findByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByIntPratica_CodiceFiscale_Last( - long intPraticaId, String codiceFiscale, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_CodiceFiscale_Last(intPraticaId, - codiceFiscale, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", codiceFiscale="); - msg.append(codiceFiscale); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByIntPratica_CodiceFiscale_Last( - long intPraticaId, String codiceFiscale, - OrderByComparator orderByComparator) throws SystemException { - int count = countByIntPratica_CodiceFiscale(intPraticaId, codiceFiscale); - - if (count == 0) { - return null; - } - - List list = findByIntPratica_CodiceFiscale(intPraticaId, - codiceFiscale, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione[] findByIntPratica_CodiceFiscale_PrevAndNext( - long asseverazioneId, long intPraticaId, String codiceFiscale, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = findByPrimaryKey(asseverazioneId); - - Session session = null; - - try { - session = openSession(); - - Asseverazione[] array = new AsseverazioneImpl[3]; - - array[0] = getByIntPratica_CodiceFiscale_PrevAndNext(session, - asseverazione, intPraticaId, codiceFiscale, - orderByComparator, true); - - array[1] = asseverazione; - - array[2] = getByIntPratica_CodiceFiscale_PrevAndNext(session, - asseverazione, intPraticaId, codiceFiscale, - orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Asseverazione getByIntPratica_CodiceFiscale_PrevAndNext( - Session session, Asseverazione asseverazione, long intPraticaId, - String codiceFiscale, OrderByComparator orderByComparator, - boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INTPRATICAID_2); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(asseverazione); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Removes all the asseveraziones where intPraticaId = ? and codiceFiscale = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByIntPratica_CodiceFiscale(long intPraticaId, - String codiceFiscale) throws SystemException { - for (Asseverazione asseverazione : findByIntPratica_CodiceFiscale( - intPraticaId, codiceFiscale, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null)) { - remove(asseverazione); - } - } - - /** - * Returns the number of asseveraziones where intPraticaId = ? and codiceFiscale = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByIntPratica_CodiceFiscale(long intPraticaId, - String codiceFiscale) throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICA_CODICEFISCALE; - - Object[] finderArgs = new Object[] { intPraticaId, codiceFiscale }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INTPRATICAID_2); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INTPRATICAID_2 = - "asseverazione.intPraticaId = ? AND "; - private static final String _FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_1 = - "asseverazione.codiceFiscale IS NULL"; - private static final String _FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_2 = - "lower(asseverazione.codiceFiscale) = ?"; - private static final String _FINDER_COLUMN_INTPRATICA_CODICEFISCALE_CODICEFISCALE_3 = - "(asseverazione.codiceFiscale IS NULL OR asseverazione.codiceFiscale = '')"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByIntPratica_InEsito", - new String[] { - Long.class.getName(), String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICA_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByIntPratica_InEsito", - new String[] { Long.class.getName(), String.class.getName() }, - AsseverazioneModelImpl.INTPRATICAID_COLUMN_BITMASK | - AsseverazioneModelImpl.ESITO_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICA_INESITO = new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByIntPratica_InEsito", - new String[] { Long.class.getName(), String.class.getName() }); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_INTPRATICA_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "countByIntPratica_InEsito", - new String[] { Long.class.getName(), String.class.getName() }); - - /** - * Returns all the asseveraziones where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_InEsito(long intPraticaId, - String esito) throws SystemException { - return findByIntPratica_InEsito(intPraticaId, esito, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_InEsito(long intPraticaId, - String esito, int start, int end) throws SystemException { - return findByIntPratica_InEsito(intPraticaId, esito, start, end, null); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_InEsito(long intPraticaId, - String esito, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICA_INESITO; - finderArgs = new Object[] { intPraticaId, esito }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_INESITO; - finderArgs = new Object[] { - intPraticaId, esito, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if ((intPraticaId != asseverazione.getIntPraticaId()) || - !Validator.equals(esito, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_2); - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindEsito) { - qPos.add(esito); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByIntPratica_InEsito_First(long intPraticaId, - String esito, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_InEsito_First(intPraticaId, - esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByIntPratica_InEsito_First(long intPraticaId, - String esito, OrderByComparator orderByComparator) - throws SystemException { - List list = findByIntPratica_InEsito(intPraticaId, - esito, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByIntPratica_InEsito_Last(long intPraticaId, - String esito, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_InEsito_Last(intPraticaId, - esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByIntPratica_InEsito_Last(long intPraticaId, - String esito, OrderByComparator orderByComparator) - throws SystemException { - int count = countByIntPratica_InEsito(intPraticaId, esito); - - if (count == 0) { - return null; - } - - List list = findByIntPratica_InEsito(intPraticaId, - esito, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where intPraticaId = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param intPraticaId the int pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione[] findByIntPratica_InEsito_PrevAndNext( - long asseverazioneId, long intPraticaId, String esito, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = findByPrimaryKey(asseverazioneId); - - Session session = null; - - try { - session = openSession(); - - Asseverazione[] array = new AsseverazioneImpl[3]; - - array[0] = getByIntPratica_InEsito_PrevAndNext(session, - asseverazione, intPraticaId, esito, orderByComparator, true); - - array[1] = asseverazione; - - array[2] = getByIntPratica_InEsito_PrevAndNext(session, - asseverazione, intPraticaId, esito, orderByComparator, false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Asseverazione getByIntPratica_InEsito_PrevAndNext( - Session session, Asseverazione asseverazione, long intPraticaId, - String esito, OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_2); - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindEsito) { - qPos.add(esito); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(asseverazione); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Returns all the asseveraziones where intPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_InEsito(long intPraticaId, - String[] esitos) throws SystemException { - return findByIntPratica_InEsito(intPraticaId, esitos, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_InEsito(long intPraticaId, - String[] esitos, int start, int end) throws SystemException { - return findByIntPratica_InEsito(intPraticaId, esitos, start, end, null); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_InEsito(long intPraticaId, - String[] esitos, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - if ((esitos != null) && (esitos.length == 1)) { - return findByIntPratica_InEsito(intPraticaId, esitos[0], start, - end, orderByComparator); - } - - boolean pagination = true; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderArgs = new Object[] { intPraticaId, StringUtil.merge(esitos) }; - } - else { - finderArgs = new Object[] { - intPraticaId, StringUtil.merge(esitos), - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_INESITO, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if ((intPraticaId != asseverazione.getIntPraticaId()) || - !ArrayUtil.contains(esitos, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = new StringBundler(); - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - boolean conjunctionable = false; - - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_5); - - conjunctionable = true; - - if ((esitos == null) || (esitos.length > 0)) { - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(StringPool.OPEN_PARENTHESIS); - - for (int i = 0; i < esitos.length; i++) { - String esito = esitos[i]; - - if (esito == null) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_4); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_6); - } - else { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_5); - } - - if ((i + 1) < esitos.length) { - query.append(WHERE_OR); - } - } - - query.append(StringPool.CLOSE_PARENTHESIS); - - conjunctionable = true; - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (esitos != null) { - qPos.add(esitos); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_INESITO, - finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_INESITO, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Removes all the asseveraziones where intPraticaId = ? and esito = ? from the database. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByIntPratica_InEsito(long intPraticaId, String esito) - throws SystemException { - for (Asseverazione asseverazione : findByIntPratica_InEsito( - intPraticaId, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(asseverazione); - } - } - - /** - * Returns the number of asseveraziones where intPraticaId = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByIntPratica_InEsito(long intPraticaId, String esito) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_INTPRATICA_INESITO; - - Object[] finderArgs = new Object[] { intPraticaId, esito }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_2); - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindEsito) { - qPos.add(esito); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - /** - * Returns the number of asseveraziones where intPraticaId = ? and esito = any ?. - * - * @param intPraticaId the int pratica ID - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByIntPratica_InEsito(long intPraticaId, String[] esitos) - throws SystemException { - Object[] finderArgs = new Object[] { - intPraticaId, StringUtil.merge(esitos) - }; - - Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_INTPRATICA_INESITO, - finderArgs, this); - - if (count == null) { - StringBundler query = new StringBundler(); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - boolean conjunctionable = false; - - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_5); - - conjunctionable = true; - - if ((esitos == null) || (esitos.length > 0)) { - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(StringPool.OPEN_PARENTHESIS); - - for (int i = 0; i < esitos.length; i++) { - String esito = esitos[i]; - - if (esito == null) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_4); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_6); - } - else { - query.append(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_5); - } - - if ((i + 1) < esitos.length) { - query.append(WHERE_OR); - } - } - - query.append(StringPool.CLOSE_PARENTHESIS); - - conjunctionable = true; - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (esitos != null) { - qPos.add(esitos); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_INTPRATICA_INESITO, - finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_INTPRATICA_INESITO, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_2 = - "asseverazione.intPraticaId = ? AND "; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_5 = - "(" + - removeConjunction(_FINDER_COLUMN_INTPRATICA_INESITO_INTPRATICAID_2) + - ")"; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_ESITO_1 = "asseverazione.esito IS NULL"; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_ESITO_2 = "asseverazione.esito = ?"; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_ESITO_3 = "(asseverazione.esito IS NULL OR asseverazione.esito = '')"; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_ESITO_4 = "(" + - removeConjunction(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_1) + ")"; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_ESITO_5 = "(" + - removeConjunction(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_2) + ")"; - private static final String _FINDER_COLUMN_INTPRATICA_INESITO_ESITO_6 = "(" + - removeConjunction(_FINDER_COLUMN_INTPRATICA_INESITO_ESITO_3) + ")"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_DETTPRATICA_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByDettPratica_InEsito", - new String[] { - Long.class.getName(), String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_DETTPRATICA_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByDettPratica_InEsito", - new String[] { Long.class.getName(), String.class.getName() }, - AsseverazioneModelImpl.DETTPRATICAID_COLUMN_BITMASK | - AsseverazioneModelImpl.ESITO_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_DETTPRATICA_INESITO = new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByDettPratica_InEsito", - new String[] { Long.class.getName(), String.class.getName() }); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_DETTPRATICA_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "countByDettPratica_InEsito", - new String[] { Long.class.getName(), String.class.getName() }); - - /** - * Returns all the asseveraziones where dettPraticaId = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByDettPratica_InEsito(long dettPraticaId, - String esito) throws SystemException { - return findByDettPratica_InEsito(dettPraticaId, esito, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByDettPratica_InEsito(long dettPraticaId, - String esito, int start, int end) throws SystemException { - return findByDettPratica_InEsito(dettPraticaId, esito, start, end, null); - } - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByDettPratica_InEsito(long dettPraticaId, - String esito, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_DETTPRATICA_INESITO; - finderArgs = new Object[] { dettPraticaId, esito }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_DETTPRATICA_INESITO; - finderArgs = new Object[] { - dettPraticaId, esito, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if ((dettPraticaId != asseverazione.getDettPraticaId()) || - !Validator.equals(esito, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_2); - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - if (bindEsito) { - qPos.add(esito); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByDettPratica_InEsito_First(long dettPraticaId, - String esito, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByDettPratica_InEsito_First(dettPraticaId, - esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("dettPraticaId="); - msg.append(dettPraticaId); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the first asseverazione in the ordered set where dettPraticaId = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByDettPratica_InEsito_First(long dettPraticaId, - String esito, OrderByComparator orderByComparator) - throws SystemException { - List list = findByDettPratica_InEsito(dettPraticaId, - esito, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last asseverazione in the ordered set where dettPraticaId = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByDettPratica_InEsito_Last(long dettPraticaId, - String esito, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByDettPratica_InEsito_Last(dettPraticaId, - esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("dettPraticaId="); - msg.append(dettPraticaId); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the last asseverazione in the ordered set where dettPraticaId = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByDettPratica_InEsito_Last(long dettPraticaId, - String esito, OrderByComparator orderByComparator) - throws SystemException { - int count = countByDettPratica_InEsito(dettPraticaId, esito); - - if (count == 0) { - return null; - } - - List list = findByDettPratica_InEsito(dettPraticaId, - esito, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where dettPraticaId = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione[] findByDettPratica_InEsito_PrevAndNext( - long asseverazioneId, long dettPraticaId, String esito, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = findByPrimaryKey(asseverazioneId); - - Session session = null; - - try { - session = openSession(); - - Asseverazione[] array = new AsseverazioneImpl[3]; - - array[0] = getByDettPratica_InEsito_PrevAndNext(session, - asseverazione, dettPraticaId, esito, orderByComparator, true); - - array[1] = asseverazione; - - array[2] = getByDettPratica_InEsito_PrevAndNext(session, - asseverazione, dettPraticaId, esito, orderByComparator, - false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Asseverazione getByDettPratica_InEsito_PrevAndNext( - Session session, Asseverazione asseverazione, long dettPraticaId, - String esito, OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_2); - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - if (bindEsito) { - qPos.add(esito); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(asseverazione); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Returns all the asseveraziones where dettPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByDettPratica_InEsito(long dettPraticaId, - String[] esitos) throws SystemException { - return findByDettPratica_InEsito(dettPraticaId, esitos, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByDettPratica_InEsito(long dettPraticaId, - String[] esitos, int start, int end) throws SystemException { - return findByDettPratica_InEsito(dettPraticaId, esitos, start, end, null); - } - - /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param dettPraticaId the dett pratica ID - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByDettPratica_InEsito(long dettPraticaId, - String[] esitos, int start, int end, OrderByComparator orderByComparator) - throws SystemException { - if ((esitos != null) && (esitos.length == 1)) { - return findByDettPratica_InEsito(dettPraticaId, esitos[0], start, - end, orderByComparator); - } - - boolean pagination = true; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderArgs = new Object[] { dettPraticaId, StringUtil.merge(esitos) }; - } - else { - finderArgs = new Object[] { - dettPraticaId, StringUtil.merge(esitos), - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_DETTPRATICA_INESITO, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if ((dettPraticaId != asseverazione.getDettPraticaId()) || - !ArrayUtil.contains(esitos, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = new StringBundler(); - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - boolean conjunctionable = false; - - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_5); - - conjunctionable = true; - - if ((esitos == null) || (esitos.length > 0)) { - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(StringPool.OPEN_PARENTHESIS); - - for (int i = 0; i < esitos.length; i++) { - String esito = esitos[i]; - - if (esito == null) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_4); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_6); - } - else { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_5); - } - - if ((i + 1) < esitos.length) { - query.append(WHERE_OR); - } - } - - query.append(StringPool.CLOSE_PARENTHESIS); - - conjunctionable = true; - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - if (esitos != null) { - qPos.add(esitos); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_DETTPRATICA_INESITO, - finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_DETTPRATICA_INESITO, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Removes all the asseveraziones where dettPraticaId = ? and esito = ? from the database. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByDettPratica_InEsito(long dettPraticaId, String esito) - throws SystemException { - for (Asseverazione asseverazione : findByDettPratica_InEsito( - dettPraticaId, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(asseverazione); - } - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ? and esito = ?. - * - * @param dettPraticaId the dett pratica ID - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByDettPratica_InEsito(long dettPraticaId, String esito) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_DETTPRATICA_INESITO; - - Object[] finderArgs = new Object[] { dettPraticaId, esito }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_2); - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - if (bindEsito) { - qPos.add(esito); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - /** - * Returns the number of asseveraziones where dettPraticaId = ? and esito = any ?. - * - * @param dettPraticaId the dett pratica ID - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByDettPratica_InEsito(long dettPraticaId, String[] esitos) - throws SystemException { - Object[] finderArgs = new Object[] { - dettPraticaId, StringUtil.merge(esitos) - }; - - Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_DETTPRATICA_INESITO, - finderArgs, this); - - if (count == null) { - StringBundler query = new StringBundler(); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - boolean conjunctionable = false; - - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_5); - - conjunctionable = true; - - if ((esitos == null) || (esitos.length > 0)) { - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(StringPool.OPEN_PARENTHESIS); - - for (int i = 0; i < esitos.length; i++) { - String esito = esitos[i]; - - if (esito == null) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_4); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_6); - } - else { - query.append(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_5); - } - - if ((i + 1) < esitos.length) { - query.append(WHERE_OR); - } - } - - query.append(StringPool.CLOSE_PARENTHESIS); - - conjunctionable = true; - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(dettPraticaId); - - if (esitos != null) { - qPos.add(esitos); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_DETTPRATICA_INESITO, - finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_DETTPRATICA_INESITO, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_2 = - "asseverazione.dettPraticaId = ? AND "; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_5 = - "(" + - removeConjunction(_FINDER_COLUMN_DETTPRATICA_INESITO_DETTPRATICAID_2) + - ")"; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_1 = "asseverazione.esito IS NULL"; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_2 = "asseverazione.esito = ?"; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_3 = "(asseverazione.esito IS NULL OR asseverazione.esito = '')"; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_4 = "(" + - removeConjunction(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_1) + ")"; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_5 = "(" + - removeConjunction(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_2) + ")"; - private static final String _FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_6 = "(" + - removeConjunction(_FINDER_COLUMN_DETTPRATICA_INESITO_ESITO_3) + ")"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByCodiceFiscale_InEsito", - new String[] { - String.class.getName(), String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByCodiceFiscale_InEsito", - new String[] { String.class.getName(), String.class.getName() }, - AsseverazioneModelImpl.CODICEFISCALE_COLUMN_BITMASK | - AsseverazioneModelImpl.ESITO_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_CODICEFISCALE_INESITO = new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByCodiceFiscale_InEsito", - new String[] { String.class.getName(), String.class.getName() }); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "countByCodiceFiscale_InEsito", - new String[] { String.class.getName(), String.class.getName() }); - - /** - * Returns all the asseveraziones where codiceFiscale = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByCodiceFiscale_InEsito( - String codiceFiscale, String esito) throws SystemException { - return findByCodiceFiscale_InEsito(codiceFiscale, esito, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByCodiceFiscale_InEsito( - String codiceFiscale, String esito, int start, int end) - throws SystemException { - return findByCodiceFiscale_InEsito(codiceFiscale, esito, start, end, - null); - } - - /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByCodiceFiscale_InEsito( - String codiceFiscale, String esito, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CODICEFISCALE_INESITO; - finderArgs = new Object[] { codiceFiscale, esito }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_CODICEFISCALE_INESITO; - finderArgs = new Object[] { - codiceFiscale, esito, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if (!Validator.equals(codiceFiscale, - asseverazione.getCodiceFiscale()) || - !Validator.equals(esito, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(4 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(4); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_2); - } - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - if (bindEsito) { - qPos.add(esito); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first asseverazione in the ordered set where codiceFiscale = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByCodiceFiscale_InEsito_First( - String codiceFiscale, String esito, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByCodiceFiscale_InEsito_First(codiceFiscale, - esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("codiceFiscale="); - msg.append(codiceFiscale); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the first asseverazione in the ordered set where codiceFiscale = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByCodiceFiscale_InEsito_First( - String codiceFiscale, String esito, OrderByComparator orderByComparator) - throws SystemException { - List list = findByCodiceFiscale_InEsito(codiceFiscale, - esito, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last asseverazione in the ordered set where codiceFiscale = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByCodiceFiscale_InEsito_Last( - String codiceFiscale, String esito, OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByCodiceFiscale_InEsito_Last(codiceFiscale, - esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(6); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("codiceFiscale="); - msg.append(codiceFiscale); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the last asseverazione in the ordered set where codiceFiscale = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByCodiceFiscale_InEsito_Last( - String codiceFiscale, String esito, OrderByComparator orderByComparator) - throws SystemException { - int count = countByCodiceFiscale_InEsito(codiceFiscale, esito); - - if (count == 0) { - return null; - } - - List list = findByCodiceFiscale_InEsito(codiceFiscale, - esito, count - 1, count, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the asseveraziones before and after the current asseverazione in the ordered set where codiceFiscale = ? and esito = ?. - * - * @param asseverazioneId the primary key of the current asseverazione - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the previous, current, and next asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a asseverazione with the primary key could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione[] findByCodiceFiscale_InEsito_PrevAndNext( - long asseverazioneId, String codiceFiscale, String esito, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = findByPrimaryKey(asseverazioneId); - - Session session = null; - - try { - session = openSession(); - - Asseverazione[] array = new AsseverazioneImpl[3]; - - array[0] = getByCodiceFiscale_InEsito_PrevAndNext(session, - asseverazione, codiceFiscale, esito, orderByComparator, true); - - array[1] = asseverazione; - - array[2] = getByCodiceFiscale_InEsito_PrevAndNext(session, - asseverazione, codiceFiscale, esito, orderByComparator, - false); - - return array; - } - catch (Exception e) { - throw processException(e); - } - finally { - closeSession(session); - } - } - - protected Asseverazione getByCodiceFiscale_InEsito_PrevAndNext( - Session session, Asseverazione asseverazione, String codiceFiscale, - String esito, OrderByComparator orderByComparator, boolean previous) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(6 + - (orderByComparator.getOrderByFields().length * 6)); - } - else { - query = new StringBundler(3); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_2); - } - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - String[] orderByConditionFields = orderByComparator.getOrderByConditionFields(); - - if (orderByConditionFields.length > 0) { - query.append(WHERE_AND); - } - - for (int i = 0; i < orderByConditionFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByConditionFields[i]); - - if ((i + 1) < orderByConditionFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN_HAS_NEXT); - } - else { - query.append(WHERE_LESSER_THAN_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(WHERE_GREATER_THAN); - } - else { - query.append(WHERE_LESSER_THAN); - } - } - } - - query.append(ORDER_BY_CLAUSE); - - String[] orderByFields = orderByComparator.getOrderByFields(); - - for (int i = 0; i < orderByFields.length; i++) { - query.append(_ORDER_BY_ENTITY_ALIAS); - query.append(orderByFields[i]); - - if ((i + 1) < orderByFields.length) { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC_HAS_NEXT); - } - else { - query.append(ORDER_BY_DESC_HAS_NEXT); - } - } - else { - if (orderByComparator.isAscending() ^ previous) { - query.append(ORDER_BY_ASC); - } - else { - query.append(ORDER_BY_DESC); - } - } - } - } - else { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Query q = session.createQuery(sql); - - q.setFirstResult(0); - q.setMaxResults(2); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - if (bindEsito) { - qPos.add(esito); - } - - if (orderByComparator != null) { - Object[] values = orderByComparator.getOrderByConditionValues(asseverazione); - - for (Object value : values) { - qPos.add(value); - } - } - - List list = q.list(); - - if (list.size() == 2) { - return list.get(1); - } - else { - return null; - } - } - - /** - * Returns all the asseveraziones where codiceFiscale = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByCodiceFiscale_InEsito( - String codiceFiscale, String[] esitos) throws SystemException { - return findByCodiceFiscale_InEsito(codiceFiscale, esitos, - QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByCodiceFiscale_InEsito( - String codiceFiscale, String[] esitos, int start, int end) - throws SystemException { - return findByCodiceFiscale_InEsito(codiceFiscale, esitos, start, end, - null); - } - - /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and esito = any ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByCodiceFiscale_InEsito( - String codiceFiscale, String[] esitos, int start, int end, - OrderByComparator orderByComparator) throws SystemException { - if ((esitos != null) && (esitos.length == 1)) { - return findByCodiceFiscale_InEsito(codiceFiscale, esitos[0], start, - end, orderByComparator); - } - - boolean pagination = true; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderArgs = new Object[] { codiceFiscale, StringUtil.merge(esitos) }; - } - else { - finderArgs = new Object[] { - codiceFiscale, StringUtil.merge(esitos), - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_CODICEFISCALE_INESITO, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if (!Validator.equals(codiceFiscale, - asseverazione.getCodiceFiscale()) || - !ArrayUtil.contains(esitos, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = new StringBundler(); - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - boolean conjunctionable = false; - - if (conjunctionable) { - query.append(WHERE_AND); - } - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_4); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_6); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_5); - } - - conjunctionable = true; - - if ((esitos == null) || (esitos.length > 0)) { - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(StringPool.OPEN_PARENTHESIS); - - for (int i = 0; i < esitos.length; i++) { - String esito = esitos[i]; - - if (esito == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_4); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_6); - } - else { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_5); - } - - if ((i + 1) < esitos.length) { - query.append(WHERE_OR); - } - } - - query.append(StringPool.CLOSE_PARENTHESIS); - - conjunctionable = true; - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale); - } - - if (esitos != null) { - qPos.add(esitos); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_CODICEFISCALE_INESITO, - finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_CODICEFISCALE_INESITO, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Removes all the asseveraziones where codiceFiscale = ? and esito = ? from the database. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @throws SystemException if a system exception occurred - */ - @Override - public void removeByCodiceFiscale_InEsito(String codiceFiscale, String esito) - throws SystemException { - for (Asseverazione asseverazione : findByCodiceFiscale_InEsito( - codiceFiscale, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { - remove(asseverazione); - } - } - - /** - * Returns the number of asseveraziones where codiceFiscale = ? and esito = ?. - * - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByCodiceFiscale_InEsito(String codiceFiscale, String esito) - throws SystemException { - FinderPath finderPath = FINDER_PATH_COUNT_BY_CODICEFISCALE_INESITO; - - Object[] finderArgs = new Object[] { codiceFiscale, esito }; - - Long count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs, - this); - - if (count == null) { - StringBundler query = new StringBundler(3); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_2); - } - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_2); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - if (bindEsito) { - qPos.add(esito); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(finderPath, finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - /** - * Returns the number of asseveraziones where codiceFiscale = ? and esito = any ?. - * - * @param codiceFiscale the codice fiscale - * @param esitos the esitos - * @return the number of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public int countByCodiceFiscale_InEsito(String codiceFiscale, - String[] esitos) throws SystemException { - Object[] finderArgs = new Object[] { - codiceFiscale, StringUtil.merge(esitos) - }; - - Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_CODICEFISCALE_INESITO, - finderArgs, this); - - if (count == null) { - StringBundler query = new StringBundler(); - - query.append(_SQL_COUNT_ASSEVERAZIONE_WHERE); - - boolean conjunctionable = false; - - if (conjunctionable) { - query.append(WHERE_AND); - } - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_4); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_6); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_5); - } - - conjunctionable = true; - - if ((esitos == null) || (esitos.length > 0)) { - if (conjunctionable) { - query.append(WHERE_AND); - } - - query.append(StringPool.OPEN_PARENTHESIS); - - for (int i = 0; i < esitos.length; i++) { - String esito = esitos[i]; - - if (esito == null) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_4); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_6); - } - else { - query.append(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_5); - } - - if ((i + 1) < esitos.length) { - query.append(WHERE_OR); - } - } - - query.append(StringPool.CLOSE_PARENTHESIS); - - conjunctionable = true; - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale); - } - - if (esitos != null) { - qPos.add(esitos); - } - - count = (Long)q.uniqueResult(); - - FinderCacheUtil.putResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_CODICEFISCALE_INESITO, - finderArgs, count); - } - catch (Exception e) { - FinderCacheUtil.removeResult(FINDER_PATH_WITH_PAGINATION_COUNT_BY_CODICEFISCALE_INESITO, - finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return count.intValue(); - } - - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_1 = - "asseverazione.codiceFiscale IS NULL AND "; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_2 = - "lower(asseverazione.codiceFiscale) = ? AND "; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_3 = - "(asseverazione.codiceFiscale IS NULL OR asseverazione.codiceFiscale = '') AND "; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_4 = - "(" + - removeConjunction(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_1) + - ")"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_5 = - "(" + - removeConjunction(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_2) + - ")"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_6 = - "(" + - removeConjunction(_FINDER_COLUMN_CODICEFISCALE_INESITO_CODICEFISCALE_3) + - ")"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_1 = "asseverazione.esito IS NULL"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_2 = "asseverazione.esito = ?"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_3 = "(asseverazione.esito IS NULL OR asseverazione.esito = '')"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_4 = "(" + - removeConjunction(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_1) + ")"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_5 = "(" + - removeConjunction(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_2) + ")"; - private static final String _FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_6 = "(" + - removeConjunction(_FINDER_COLUMN_CODICEFISCALE_INESITO_ESITO_3) + ")"; - public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "findByIntPratica_CodiceFiscale_InEsito", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName(), - - Integer.class.getName(), Integer.class.getName(), - OrderByComparator.class.getName() - }); - public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, - AsseverazioneImpl.class, FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "findByIntPratica_CodiceFiscale_InEsito", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName() - }, - AsseverazioneModelImpl.INTPRATICAID_COLUMN_BITMASK | - AsseverazioneModelImpl.CODICEFISCALE_COLUMN_BITMASK | - AsseverazioneModelImpl.ESITO_COLUMN_BITMASK); - public static final FinderPath FINDER_PATH_COUNT_BY_INTPRATICA_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION, - "countByIntPratica_CodiceFiscale_InEsito", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName() - }); - public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_INTPRATICA_CODICEFISCALE_INESITO = - new FinderPath(AsseverazioneModelImpl.ENTITY_CACHE_ENABLED, - AsseverazioneModelImpl.FINDER_CACHE_ENABLED, Long.class, - FINDER_CLASS_NAME_LIST_WITH_PAGINATION, - "countByIntPratica_CodiceFiscale_InEsito", - new String[] { - Long.class.getName(), String.class.getName(), - String.class.getName() - }); - - /** - * Returns all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @return the matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, String codiceFiscale, String esito) - throws SystemException { - return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); - } - - /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @return the range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, String codiceFiscale, String esito, int start, - int end) throws SystemException { - return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esito, start, end, null); - } - - /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - *

- * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. - *

- * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param start the lower bound of the range of asseveraziones - * @param end the upper bound of the range of asseveraziones (not inclusive) - * @param orderByComparator the comparator to order the results by (optionally null) - * @return the ordered range of matching asseveraziones - * @throws SystemException if a system exception occurred - */ - @Override - public List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, String codiceFiscale, String esito, int start, - int end, OrderByComparator orderByComparator) throws SystemException { - boolean pagination = true; - FinderPath finderPath = null; - Object[] finderArgs = null; - - if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && - (orderByComparator == null)) { - pagination = false; - finderPath = FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE_INESITO; - finderArgs = new Object[] { intPraticaId, codiceFiscale, esito }; - } - else { - finderPath = FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE_INESITO; - finderArgs = new Object[] { - intPraticaId, codiceFiscale, esito, - - start, end, orderByComparator - }; - } - - List list = (List)FinderCacheUtil.getResult(finderPath, - finderArgs, this); - - if ((list != null) && !list.isEmpty()) { - for (Asseverazione asseverazione : list) { - if ((intPraticaId != asseverazione.getIntPraticaId()) || - !Validator.equals(codiceFiscale, - asseverazione.getCodiceFiscale()) || - !Validator.equals(esito, asseverazione.getEsito())) { - list = null; - - break; - } - } - } - - if (list == null) { - StringBundler query = null; - - if (orderByComparator != null) { - query = new StringBundler(5 + - (orderByComparator.getOrderByFields().length * 3)); - } - else { - query = new StringBundler(5); - } - - query.append(_SQL_SELECT_ASSEVERAZIONE_WHERE); - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_INTPRATICAID_2); - - boolean bindCodiceFiscale = false; - - if (codiceFiscale == null) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_CODICEFISCALE_1); - } - else if (codiceFiscale.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_CODICEFISCALE_3); - } - else { - bindCodiceFiscale = true; - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_CODICEFISCALE_2); - } - - boolean bindEsito = false; - - if (esito == null) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_ESITO_1); - } - else if (esito.equals(StringPool.BLANK)) { - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_ESITO_3); - } - else { - bindEsito = true; - - query.append(_FINDER_COLUMN_INTPRATICA_CODICEFISCALE_INESITO_ESITO_2); - } - - if (orderByComparator != null) { - appendOrderByComparator(query, _ORDER_BY_ENTITY_ALIAS, - orderByComparator); - } - else - if (pagination) { - query.append(AsseverazioneModelImpl.ORDER_BY_JPQL); - } - - String sql = query.toString(); - - Session session = null; - - try { - session = openSession(); - - Query q = session.createQuery(sql); - - QueryPos qPos = QueryPos.getInstance(q); - - qPos.add(intPraticaId); - - if (bindCodiceFiscale) { - qPos.add(codiceFiscale.toLowerCase()); - } - - if (bindEsito) { - qPos.add(esito); - } - - if (!pagination) { - list = (List)QueryUtil.list(q, getDialect(), - start, end, false); - - Collections.sort(list); - - list = new UnmodifiableList(list); - } - else { - list = (List)QueryUtil.list(q, getDialect(), - start, end); - } - - cacheResult(list); - - FinderCacheUtil.putResult(finderPath, finderArgs, list); - } - catch (Exception e) { - FinderCacheUtil.removeResult(finderPath, finderArgs); - - throw processException(e); - } - finally { - closeSession(session); - } - } - - return list; - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByIntPratica_CodiceFiscale_InEsito_First( - long intPraticaId, String codiceFiscale, String esito, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_CodiceFiscale_InEsito_First(intPraticaId, - codiceFiscale, esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", codiceFiscale="); - msg.append(codiceFiscale); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the first asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the first matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByIntPratica_CodiceFiscale_InEsito_First( - long intPraticaId, String codiceFiscale, String esito, - OrderByComparator orderByComparator) throws SystemException { - List list = findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esito, 0, 1, orderByComparator); - - if (!list.isEmpty()) { - return list.get(0); - } - - return null; - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione - * @throws it.tref.liferay.portos.bo.NoSuchAsseverazioneException if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione findByIntPratica_CodiceFiscale_InEsito_Last( - long intPraticaId, String codiceFiscale, String esito, - OrderByComparator orderByComparator) - throws NoSuchAsseverazioneException, SystemException { - Asseverazione asseverazione = fetchByIntPratica_CodiceFiscale_InEsito_Last(intPraticaId, - codiceFiscale, esito, orderByComparator); - - if (asseverazione != null) { - return asseverazione; - } - - StringBundler msg = new StringBundler(8); - - msg.append(_NO_SUCH_ENTITY_WITH_KEY); - - msg.append("intPraticaId="); - msg.append(intPraticaId); - - msg.append(", codiceFiscale="); - msg.append(codiceFiscale); - - msg.append(", esito="); - msg.append(esito); - - msg.append(StringPool.CLOSE_CURLY_BRACE); - - throw new NoSuchAsseverazioneException(msg.toString()); - } - - /** - * Returns the last asseverazione in the ordered set where intPraticaId = ? and codiceFiscale = ? and esito = ?. - * - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale - * @param esito the esito - * @param orderByComparator the comparator to order the set by (optionally null) - * @return the last matching asseverazione, or null if a matching asseverazione could not be found - * @throws SystemException if a system exception occurred - */ - @Override - public Asseverazione fetchByIntPratica_CodiceFiscale_InEsito_Last( - long intPraticaId, String codiceFiscale, String esito, - OrderByComparator orderByComparator) throws SystemException { - int count = countByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esito); - - if (count == 0) { - return null; - } - - List list = findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esito, count - 1, count, orderByComparator); + List list = findByIntPratica_InEsito(intPraticaId, + esito, count - 1, count, orderByComparator); if (!list.isEmpty()) { return list.get(0); @@ -6193,11 +2285,10 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the previous, current, and next asseverazione @@ -6205,9 +2296,9 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl * Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale * @param esitos the esitos * @return the matching asseveraziones * @throws SystemException if a system exception occurred */ @Override - public List findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, String codiceFiscale, String[] esitos) - throws SystemException { - return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esitos, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + public List findByIntPratica_InEsito(long intPraticaId, + String[] esitos) throws SystemException { + return findByIntPratica_InEsito(intPraticaId, esitos, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = any ?. + * Returns a range of all the asseveraziones where intPraticaId = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale * @param esitos the esitos * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -6417,22 +2484,19 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, String codiceFiscale, String[] esitos, int start, - int end) throws SystemException { - return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esitos, start, end, null); + public List findByIntPratica_InEsito(long intPraticaId, + String[] esitos, int start, int end) throws SystemException { + return findByIntPratica_InEsito(intPraticaId, esitos, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = any ?. + * Returns an ordered range of all the asseveraziones where intPraticaId = ? and esito = any ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale * @param esitos the esitos * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -6441,12 +2505,12 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_CodiceFiscale_InEsito( - long intPraticaId, String codiceFiscale, String[] esitos, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + public List findByIntPratica_InEsito(long intPraticaId, + String[] esitos, int start, int end, OrderByComparator orderByComparator) + throws SystemException { if ((esitos != null) && (esitos.length == 1)) { - return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, - codiceFiscale, esitos[0], start, end, orderByComparator); + return findByIntPratica_InEsito(intPraticaId, esitos[0], start, + end, orderByComparator); } boolean pagination = true; @@ -6455,26 +2519,22 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_CODICEFISCALE_INESITO, + List list = (List)FinderCacheUtil.getResult(FINDER_PATH_WITH_PAGINATION_FIND_BY_INTPRATICA_INESITO, finderArgs, this); if ((list != null) && !list.isEmpty()) { for (Asseverazione asseverazione : list) { if ((intPraticaId != asseverazione.getIntPraticaId()) || - !Validator.equals(codiceFiscale, - asseverazione.getCodiceFiscale()) || !ArrayUtil.contains(esitos, asseverazione.getEsito())) { list = null; @@ -6494,27 +2554,7 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, String codiceFiscale, String esito) - throws SystemException { - return findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + public List findByDettPratica_InEsito(long dettPraticaId, + String esito) throws SystemException { + return findByDettPratica_InEsito(dettPraticaId, esito, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -6962,22 +2910,19 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, String codiceFiscale, String esito, int start, - int end) throws SystemException { - return findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, - codiceFiscale, esito, start, end, null); + public List findByDettPratica_InEsito(long dettPraticaId, + String esito, int start, int end) throws SystemException { + return findByDettPratica_InEsito(dettPraticaId, esito, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* * @param dettPraticaId the dett pratica ID - * @param codiceFiscale the codice fiscale * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -6986,9 +2931,9 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica_CodiceFiscale_InEsito( - long dettPraticaId, String codiceFiscale, String esito, int start, - int end, OrderByComparator orderByComparator) throws SystemException { + public List findByDettPratica_InEsito(long dettPraticaId, + String esito, int start, int end, OrderByComparator orderByComparator) + throws SystemException { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; @@ -6996,13 +2941,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione @@ -7139,27 +3063,23 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_Tipologia_InEsito( - long intPraticaId, String tipologia, String esito) - throws SystemException { - return findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + public List findByCodiceFiscale_InEsito( + String codiceFiscale, String esito) throws SystemException { + return findByCodiceFiscale_InEsito(codiceFiscale, esito, + QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia + * @param codiceFiscale the codice fiscale * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -8034,22 +3803,21 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_Tipologia_InEsito( - long intPraticaId, String tipologia, String esito, int start, int end) + public List findByCodiceFiscale_InEsito( + String codiceFiscale, String esito, int start, int end) throws SystemException { - return findByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, - esito, start, end, null); + return findByCodiceFiscale_InEsito(codiceFiscale, esito, start, end, + null); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param tipologia the tipologia + * @param codiceFiscale the codice fiscale * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -8058,8 +3826,8 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_Tipologia_InEsito( - long intPraticaId, String tipologia, String esito, int start, int end, + public List findByCodiceFiscale_InEsito( + String codiceFiscale, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { boolean pagination = true; FinderPath finderPath = null; @@ -8068,13 +3836,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione @@ -8211,26 +3973,22 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica_Tipologia_InEsito( - long dettPraticaId, String tipologia, String esito) + public List findByIntPratica_CodiceFiscale_InEsito( + long intPraticaId, String codiceFiscale, String esito) throws SystemException { - return findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, - esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, + codiceFiscale, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia + * @param intPraticaId the int pratica ID + * @param codiceFiscale the codice fiscale * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -9106,22 +4799,22 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica_Tipologia_InEsito( - long dettPraticaId, String tipologia, String esito, int start, int end) - throws SystemException { - return findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, - esito, start, end, null); + public List findByIntPratica_CodiceFiscale_InEsito( + long intPraticaId, String codiceFiscale, String esito, int start, + int end) throws SystemException { + return findByIntPratica_CodiceFiscale_InEsito(intPraticaId, + codiceFiscale, esito, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param dettPraticaId the dett pratica ID - * @param tipologia the tipologia + * @param intPraticaId the int pratica ID + * @param codiceFiscale the codice fiscale * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -9130,9 +4823,9 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByDettPratica_Tipologia_InEsito( - long dettPraticaId, String tipologia, String esito, int start, int end, - OrderByComparator orderByComparator) throws SystemException { + public List findByIntPratica_CodiceFiscale_InEsito( + long intPraticaId, String codiceFiscale, String esito, int start, + int end, OrderByComparator orderByComparator) throws SystemException { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; @@ -9140,13 +4833,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione @@ -9283,12 +4976,12 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByCodiceFiscale_Tipologia_InEsito( - String codiceFiscale, String tipologia, String esito) + public List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, String codiceFiscale, String esito) throws SystemException { - return findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); + return findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -10178,22 +5871,22 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByCodiceFiscale_Tipologia_InEsito( - String codiceFiscale, String tipologia, String esito, int start, int end) - throws SystemException { - return findByCodiceFiscale_Tipologia_InEsito(codiceFiscale, tipologia, - esito, start, end, null); + public List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, String codiceFiscale, String esito, int start, + int end) throws SystemException { + return findByDettPratica_CodiceFiscale_InEsito(dettPraticaId, + codiceFiscale, esito, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and codiceFiscale = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* + * @param dettPraticaId the dett pratica ID * @param codiceFiscale the codice fiscale - * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones * @param end the upper bound of the range of asseveraziones (not inclusive) @@ -10202,8 +5895,8 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByCodiceFiscale_Tipologia_InEsito( - String codiceFiscale, String tipologia, String esito, int start, + public List findByDettPratica_CodiceFiscale_InEsito( + long dettPraticaId, String codiceFiscale, String esito, int start, int end, OrderByComparator orderByComparator) throws SystemException { boolean pagination = true; FinderPath finderPath = null; @@ -10212,13 +5905,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) * @return the first matching asseverazione @@ -10370,12 +6048,12 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, String codiceFiscale, String tipologia, String esito) + public List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, String tipologia, String esito) throws SystemException { - return findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito, QueryUtil.ALL_POS, - QueryUtil.ALL_POS, null); + return findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, + esito, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); } /** - * Returns a range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns a range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones @@ -11338,22 +6943,21 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, String codiceFiscale, String tipologia, - String esito, int start, int end) throws SystemException { - return findByIntPratica_CodiceFiscale_Tipologia_InEsito(intPraticaId, - codiceFiscale, tipologia, esito, start, end, null); + public List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, String tipologia, String esito, int start, int end) + throws SystemException { + return findByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, + esito, start, end, null); } /** - * Returns an ordered range of all the asseveraziones where intPraticaId = ? and codiceFiscale = ? and tipologia = ? and esito = ?. + * Returns an ordered range of all the asseveraziones where dettPraticaId = ? and tipologia = ? and esito = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl}. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. *

* - * @param intPraticaId the int pratica ID - * @param codiceFiscale the codice fiscale + * @param dettPraticaId the dett pratica ID * @param tipologia the tipologia * @param esito the esito * @param start the lower bound of the range of asseveraziones @@ -11363,10 +6967,9 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl findByIntPratica_CodiceFiscale_Tipologia_InEsito( - long intPraticaId, String codiceFiscale, String tipologia, - String esito, int start, int end, OrderByComparator orderByComparator) - throws SystemException { + public List findByDettPratica_Tipologia_InEsito( + long dettPraticaId, String tipologia, String esito, int start, int end, + OrderByComparator orderByComparator) throws SystemException { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; @@ -11374,15 +6977,13 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImplnull) @@ -11540,26 +7120,23 @@ public class AsseverazionePersistenceImpl extends BasePersistenceImpl <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> - <%@page import="com.liferay.portal.model.Organization"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@ include file="/html/amministrazione/init.jsp"%> - <% long territorioId = ParamUtil.getLong(renderRequest, "territorioId"); Territorio territorio = (Territorio) request - .getAttribute(it.tref.liferay.portos.bo.util.WebKeys.PORTOS_AMM_TERRITORIO); + .getAttribute(it.tref.liferay.portos.bo.shared.util.WebKeys.PORTOS_AMM_TERRITORIO); String title = null; if (territorio == null) { if (territorioId > 0) { @@ -24,90 +22,70 @@ title = LanguageUtil.get(pageContext, "edit-territorio"); } %> - - - - - + - - + + - <% - List organizations = OrganizationLocalServiceUtil.getOrganizations( - QueryUtil.ALL_POS, QueryUtil.ALL_POS); - for (Organization organization : organizations) { + List organizations = OrganizationLocalServiceUtil + .getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (Organization organization : organizations) { %> - - + <% - } + } %> - <% - List listComuni = ComuneServiceUtil.getComunes(QueryUtil.ALL_POS, - QueryUtil.ALL_POS); - for (Comune comune : listComuni) { + List listComuni = ComuneServiceUtil.getComunes(QueryUtil.ALL_POS, QueryUtil.ALL_POS); + for (Comune comune : listComuni) { %> - - + <% - } + } %> - - - - - + + + + - - - - - + + + - - + checked="<%= territorio.getArticolo61() %>" /> <% - request.setAttribute("input_date_time.bean", territorio); + request.setAttribute("input_date_time.bean", territorio); %> - + - - + - - - - - diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/init.jsp index b17874bf..80505de0 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/init.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/asset/controllopratica/init.jsp @@ -1,11 +1,7 @@ <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ include file="/html/init.jsp" %> - -<%@page import="it.tref.liferay.portos.bo.search.ControlloPraticaAdvancedSearch"%> <%@page import="javax.portlet.PortletURL"%> - <% String tabNames = "Tab_MieiTask,Tab_TaskMieiRuoli,Tab_AtriTask"; - String tabs1 = ParamUtil.getString(request, "tabs1", StringUtil.split(tabNames)[0]); %> \ No newline at end of file diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp index 99490012..d3601d80 100644 --- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp +++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/advanced_search.jsp @@ -18,9 +18,8 @@ String istruttoreSelect = ParamUtil.getString(renderRequest, "istruttore"); String uoSelect = ParamUtil.getString(renderRequest, "unitaOperativa"); String geologoSelect = ParamUtil.getString(renderRequest, "geologi"); %> - +
@@ -30,17 +29,18 @@ String geologoSelect = ParamUtil.getString(renderRequest, "geologi"); Seleziona il tipo di pratica <% - for (Entry procedura : IntPraticaLocalServiceUtil.getTipiProcedure().entrySet()) { - String tipo = procedura.getKey(); - String label = procedura.getValue(); - String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + ") " + label; - if(nomeProcedura.length() > 90) - nomeProcedura = nomeProcedura.substring(0, 90) + "..."; - %> - <%= nomeProcedura %> - <% + for (Entry procedura : IntPraticaLocalServiceUtil.getTipiProcedure().entrySet()) { + String tipo = procedura.getKey(); + String label = procedura.getValue(); + String nomeProcedura = LanguageUtil.get(pageContext, "label_procedura_"+tipo) + ") " + label; + if (nomeProcedura.length() > 90) { + nomeProcedura = nomeProcedura.substring(0, 90) + "..."; } %> + <%= nomeProcedura %> + <% + } + %>
@@ -114,12 +114,22 @@ String geologoSelect = ParamUtil.getString(renderRequest, "geologi");
Tutti - Autorizzata - Annullata - Integrazione - Nessun parere - Non autorizzata - Preavviso contrario + <% + for (String esito : new String[] { + StatoPraticaConstants.AUTORIZZATA, + StatoPraticaConstants.ANNULLATA, + StatoPraticaConstants.INTEGRAZIONE, + StatoPraticaConstants.NO_PARERE, + StatoPraticaConstants.NON_AUTORIZZATA, + StatoPraticaConstants.PREAVVISO_CONTRARIO, + StatoPraticaConstants.PERIZIA_SANZIONE, + StatoPraticaConstants.DECRETO_SANZIONE, + }) { + %> + + <% + } + %>
@@ -145,126 +155,113 @@ String geologoSelect = ParamUtil.getString(renderRequest, "geologi");
- -