Sfoglia il codice sorgente

Aggiunta colonna esito in gestione firme. Rimosso codice estraneo dal portlet di BO

master
Salvatore La Manna 3 anni fa
parent
commit
d45596a69b
  1. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp
  2. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Avviso.java
  3. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoClp.java
  4. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoWrapper.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Delega.java
  6. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DelegaClp.java
  7. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DelegaWrapper.java
  8. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java
  9. 378
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java
  10. 53
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java
  11. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPratica.java
  12. 38
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaClp.java
  13. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaWrapper.java
  14. 29
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java
  15. 419
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java
  16. 48
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java
  17. 156
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java
  18. 950
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java
  19. 250
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java
  20. 263
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java
  21. 276
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java
  22. 258
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java
  23. 181
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java
  24. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  25. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  26. 218
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java
  27. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java
  28. 159
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java
  29. 85
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java
  30. 104
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  31. 53
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java
  32. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java
  33. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java
  34. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java
  35. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  36. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  37. 480
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java
  38. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java
  39. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  40. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  41. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java
  42. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java
  43. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  44. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java
  45. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java
  46. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  47. 11
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java
  48. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  49. 486
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java
  50. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java
  51. 142
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java
  52. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  53. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/parametri/view.jsp
  54. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/avvisi/view.jsp
  55. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp
  56. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_sez_geologica.jsp
  57. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare.jsp
  58. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare_altri.jsp
  59. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_firme.jsp
  60. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp
  61. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_pagamenti_pending.jsp
  62. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_form_bollettino.jsp
  63. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp
  64. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti.jsp
  65. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_bolli.jsp
  66. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp
  67. 10
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java
  68. 19
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  69. 66
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java
  70. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/allegati_action.jsp
  71. 5
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp
  72. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp
  73. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp
  74. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fascicolo.jsp
  75. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp
  76. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/init.jsp
  77. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top_pagamento.jspf
  78. 12
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf
  79. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_allegati.jsp
  80. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_asseverazioni_riepilogo.jsp
  81. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp
  82. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp
  83. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_geologica.jsp
  84. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp
  85. 6
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/header.jsp
  86. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/replace_payment.jsp
  87. 9
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp
  88. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp
  89. 12
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp
  90. 9
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp
  91. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_collaudi_columns.jsp
  92. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_deleghe_columns.jsp
  93. 5
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf
  94. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_comunicazioni.jsp
  95. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp
  96. 1
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_finelavori_columns.jsp
  97. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view.jsp
  98. 2
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view_valida_fino.jsp
  99. 38
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/AvvisoUtil.java
  100. 35
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/DelegheUtil.java
  101. Some files were not shown because too many files have changed in this diff Show More

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/html/accesso_atti_fe/visualizza-atto.jsp

@ -6,7 +6,6 @@
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> <%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>

16
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Avviso.java

@ -31,7 +31,7 @@ public interface Avviso extends AvvisoModel, PersistedModel {
* *
* Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.AvvisoImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.AvvisoImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/ */
public java.lang.String getFullDescription() public java.lang.String getDescriptionOggettoProtocollo()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@ -40,21 +40,25 @@ public interface Avviso extends AvvisoModel, PersistedModel {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public java.lang.String getDescriptionOggettoProtocollo() public java.lang.String getDownloadUrl(
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public java.lang.String getDownloadUrl( public java.lang.String getFullDescription()
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public java.lang.String translateTipoDocumento( public void invioNotificaAssegnazioneIstruttore()
java.lang.String tipoProcedura)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public java.lang.String translateTipoDocumento() public java.lang.String translateTipoDocumento()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public java.lang.String translateTipoDocumento(
java.lang.String tipoProcedura)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
} }

16
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoClp.java

@ -1399,6 +1399,22 @@ public class AvvisoClp extends BaseModelImpl<Avviso> implements Avviso {
} }
} }
@Override
public void invioNotificaAssegnazioneIstruttore() {
try {
String methodName = "invioNotificaAssegnazioneIstruttore";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
invokeOnRemoteModel(methodName, parameterTypes, parameterValues);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(

27
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/AvvisoWrapper.java

@ -1297,10 +1297,10 @@ public class AvvisoWrapper implements Avviso, ModelWrapper<Avviso> {
} }
@Override @Override
public java.lang.String getFullDescription() public java.lang.String getDescriptionOggettoProtocollo()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _avviso.getFullDescription(); return _avviso.getDescriptionOggettoProtocollo();
} }
@Override @Override
@ -1312,26 +1312,25 @@ public class AvvisoWrapper implements Avviso, ModelWrapper<Avviso> {
} }
@Override @Override
public java.lang.String getDescriptionOggettoProtocollo() public java.lang.String getDownloadUrl(
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _avviso.getDescriptionOggettoProtocollo(); return _avviso.getDownloadUrl(themeDisplay);
} }
@Override @Override
public java.lang.String getDownloadUrl( public java.lang.String getFullDescription()
com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _avviso.getDownloadUrl(themeDisplay); return _avviso.getFullDescription();
} }
@Override @Override
public java.lang.String translateTipoDocumento( public void invioNotificaAssegnazioneIstruttore()
java.lang.String tipoProcedura)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _avviso.translateTipoDocumento(tipoProcedura); _avviso.invioNotificaAssegnazioneIstruttore();
} }
@Override @Override
@ -1341,6 +1340,14 @@ public class AvvisoWrapper implements Avviso, ModelWrapper<Avviso> {
return _avviso.translateTipoDocumento(); return _avviso.translateTipoDocumento();
} }
@Override
public java.lang.String translateTipoDocumento(
java.lang.String tipoProcedura)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _avviso.translateTipoDocumento(tipoProcedura);
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/Delega.java

@ -32,4 +32,8 @@ public interface Delega extends DelegaModel, PersistedModel {
* Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.DelegaImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface. * Never modify this interface directly. Add methods to {@link it.tref.liferay.portos.bo.model.impl.DelegaImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/ */
public java.util.Map<java.lang.String, java.io.Serializable> getDichiarazioniMap(); public java.util.Map<java.lang.String, java.io.Serializable> getDichiarazioniMap();
public boolean hasCambioStatoDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
} }

19
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DelegaClp.java

@ -561,6 +561,25 @@ public class DelegaClp extends BaseModelImpl<Delega> implements Delega {
} }
} }
@Override
public boolean hasCambioStatoDelega(long userId) {
try {
String methodName = "hasCambioStatoDelega";
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 @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DelegaWrapper.java

@ -613,6 +613,13 @@ public class DelegaWrapper implements Delega, ModelWrapper<Delega> {
return _delega.getDichiarazioniMap(); return _delega.getDichiarazioniMap();
} }
@Override
public boolean hasCambioStatoDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _delega.hasCambioStatoDelega(userId);
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {

29
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPratica.java

@ -47,6 +47,10 @@ public interface DettPratica extends DettPraticaModel, PersistedModel {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public boolean canCompilaDomanda(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean canCompleteDettPraticaEsente() public boolean canCompleteDettPraticaEsente()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@ -59,6 +63,10 @@ public interface DettPratica extends DettPraticaModel, PersistedModel {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public boolean canDoPayment(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean delegheCompilazioneIsEnable() public boolean delegheCompilazioneIsEnable()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@ -67,6 +75,16 @@ public interface DettPratica extends DettPraticaModel, PersistedModel {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Soggetto getPersonaDelegaCompilazioneDomanda()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Soggetto getPersonaDelegaCompilazioneSezioneGeologica()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public java.lang.String getTipoReport(java.lang.String tipoDocumento);
public boolean hasAnnullaAsseverazioni(long userId) public boolean hasAnnullaAsseverazioni(long userId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@ -77,6 +95,10 @@ public interface DettPratica extends DettPraticaModel, PersistedModel {
public boolean hasAsseverazioniAttive() public boolean hasAsseverazioniAttive()
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public boolean hasDelegaAttiva(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasDelegaCompilazioneDomanda(long userId) public boolean hasDelegaCompilazioneDomanda(long userId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
@ -89,6 +111,13 @@ public interface DettPratica extends DettPraticaModel, PersistedModel {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public boolean hasDelegaPagamento(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasDelegheCompilazioneAttive()
throws com.liferay.portal.kernel.exception.SystemException;
public boolean hasRichiediAsseverazioni(long userId) public boolean hasRichiediAsseverazioni(long userId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;

378
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaClp.java

@ -8423,15 +8423,15 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public java.util.Set<java.lang.String> getDocObbligatoriDomanda() { public boolean canCompilaDomanda(long userId) {
try { try {
String methodName = "getDocObbligatoriDomanda"; String methodName = "canCompilaDomanda";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { userId };
java.util.Set<java.lang.String> returnObj = (java.util.Set<java.lang.String>)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -8442,9 +8442,9 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean hasDelegaCompilazioneSezioneGeologica(long userId) { public boolean hasAsseverazioneAttiva(long userId) {
try { try {
String methodName = "hasDelegaCompilazioneSezioneGeologica"; String methodName = "hasAsseverazioneAttiva";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
@ -8461,15 +8461,54 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean canCompleteIntegrazione() { public boolean hasAnnullaAsseverazioni(long userId) {
try { try {
String methodName = "canCompleteIntegrazione"; 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 java.util.List<java.lang.String> 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<java.lang.String> returnObj = (java.util.List<java.lang.String>)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<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -8480,13 +8519,13 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean hasAnnullaAsseverazioni(long userId) { public boolean hasDelegheCompilazioneAttive() {
try { try {
String methodName = "hasAnnullaAsseverazioni"; String methodName = "hasDelegheCompilazioneAttive";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { userId }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8499,13 +8538,20 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean hasAsseverazioneAttiva(long userId) { public boolean isRequiredTerna(java.lang.String codiceDoc,
java.util.List<it.tref.liferay.portos.bo.model.Soggetto> ditte,
java.util.List<it.tref.liferay.portos.bo.model.Soggetto> committenti) {
try { try {
String methodName = "hasAsseverazioneAttiva"; String methodName = "isRequiredTerna";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] {
java.lang.String.class, java.util.List.class,
java.util.List.class
};
Object[] parameterValues = new Object[] { userId }; Object[] parameterValues = new Object[] {
codiceDoc, ditte, committenti
};
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8518,16 +8564,15 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public java.util.List<java.lang.String> notCompletedSection( public boolean hasAsseverazioniAttive() {
java.lang.String section) {
try { try {
String methodName = "notCompletedSection"; String methodName = "hasAsseverazioniAttive";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { section }; Object[] parameterValues = new Object[] { };
java.util.List<java.lang.String> returnObj = (java.util.List<java.lang.String>)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -8538,9 +8583,9 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean isCollaudatoreRequired() { public boolean canCompleteDettPraticaEsente() {
try { try {
String methodName = "isCollaudatoreRequired"; String methodName = "canCompleteDettPraticaEsente";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8557,18 +8602,13 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean isSoggettoPrincipale(java.lang.String codiceFiscale, public boolean canCompleteUserEditing() {
java.lang.String tipologiaSoggetto) {
try { try {
String methodName = "isSoggettoPrincipale"; String methodName = "canCompleteUserEditing";
Class<?>[] parameterTypes = new Class<?>[] { Class<?>[] parameterTypes = new Class<?>[] { };
java.lang.String.class, java.lang.String.class
};
Object[] parameterValues = new Object[] { Object[] parameterValues = new Object[] { };
codiceFiscale, tipologiaSoggetto
};
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8581,14 +8621,33 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean allAsseverazioniCompleted() { public it.tref.liferay.portos.bo.model.Soggetto getPersonaDelegaCompilazioneDomanda() {
try { try {
String methodName = "allAsseverazioniCompleted"; String methodName = "getPersonaDelegaCompilazioneDomanda";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
it.tref.liferay.portos.bo.model.Soggetto returnObj = (it.tref.liferay.portos.bo.model.Soggetto)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public boolean hasSoggettoPrincipale(java.lang.String tipologiaSoggetto) {
try {
String methodName = "hasSoggettoPrincipale";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { tipologiaSoggetto };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8600,9 +8659,28 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean praticaIsEditable() { public boolean canDoPayment(long userId) {
try { try {
String methodName = "praticaIsEditable"; String methodName = "canDoPayment";
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 delegheCompilazioneIsEnable() {
try {
String methodName = "delegheCompilazioneIsEnable";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8619,9 +8697,9 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public java.lang.String getTitle() { public java.lang.String getFullDescription() {
try { try {
String methodName = "getTitle"; String methodName = "getFullDescription";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8638,15 +8716,35 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public java.util.List<java.lang.String> notCompletedSezioneGeologica() { public boolean isAsseverazioneDomandaRequiredByTipoSoggetto(
java.lang.String tipoSoggetto) {
try { try {
String methodName = "notCompletedSezioneGeologica"; 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 java.util.Set<java.lang.String> getDocObbligatoriDomanda() {
try {
String methodName = "getDocObbligatoriDomanda";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
java.util.List<java.lang.String> returnObj = (java.util.List<java.lang.String>)invokeOnRemoteModel(methodName, java.util.Set<java.lang.String> returnObj = (java.util.Set<java.lang.String>)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -8657,13 +8755,13 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean isSoggettoPrincipale(long soggettoId) { public boolean hasDelegaCompilazioneSezioneGeologica(long userId) {
try { try {
String methodName = "isSoggettoPrincipale"; String methodName = "hasDelegaCompilazioneSezioneGeologica";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { soggettoId }; Object[] parameterValues = new Object[] { userId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8676,20 +8774,13 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean isRequiredTerna(java.lang.String codiceDoc, public boolean canCompleteIntegrazione() {
java.util.List<it.tref.liferay.portos.bo.model.Soggetto> ditte,
java.util.List<it.tref.liferay.portos.bo.model.Soggetto> committenti) {
try { try {
String methodName = "isRequiredTerna"; String methodName = "canCompleteIntegrazione";
Class<?>[] parameterTypes = new Class<?>[] { Class<?>[] parameterTypes = new Class<?>[] { };
java.lang.String.class, java.util.List.class,
java.util.List.class
};
Object[] parameterValues = new Object[] { Object[] parameterValues = new Object[] { };
codiceDoc, ditte, committenti
};
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8702,9 +8793,9 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean pagamentoIsEnable() { public boolean isCollaudatoreRequired() {
try { try {
String methodName = "pagamentoIsEnable"; String methodName = "isCollaudatoreRequired";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8721,9 +8812,9 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean hasAsseverazioniAttive() { public boolean allAsseverazioniCompleted() {
try { try {
String methodName = "hasAsseverazioniAttive"; String methodName = "allAsseverazioniCompleted";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8740,13 +8831,18 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean praticaIsCompleta() { public boolean isSoggettoPrincipale(java.lang.String codiceFiscale,
java.lang.String tipologiaSoggetto) {
try { try {
String methodName = "praticaIsCompleta"; String methodName = "isSoggettoPrincipale";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] {
java.lang.String.class, java.lang.String.class
};
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] {
codiceFiscale, tipologiaSoggetto
};
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8759,9 +8855,9 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean canCompleteDettPraticaEsente() { public boolean praticaIsEditable() {
try { try {
String methodName = "canCompleteDettPraticaEsente"; String methodName = "praticaIsEditable";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8778,13 +8874,32 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public java.lang.String getTitle(java.util.Locale locale) { public boolean hasDelegaAttiva(long userId) {
try { try {
String methodName = "getTitle"; String methodName = "hasDelegaAttiva";
Class<?>[] parameterTypes = new Class<?>[] { java.util.Locale.class }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { locale }; 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 getTipoReport(java.lang.String tipoDocumento) {
try {
String methodName = "getTipoReport";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { tipoDocumento };
java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8797,9 +8912,47 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean canCompleteUserEditing() { public boolean isSoggettoPrincipale(long soggettoId) {
try { try {
String methodName = "canCompleteUserEditing"; String methodName = "isSoggettoPrincipale";
Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { soggettoId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public java.util.List<java.lang.String> notCompletedSezioneGeologica() {
try {
String methodName = "notCompletedSezioneGeologica";
Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { };
java.util.List<java.lang.String> returnObj = (java.util.List<java.lang.String>)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<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -8816,13 +8969,13 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean hasRichiediAsseverazioni(long userId) { public boolean praticaIsCompleta() {
try { try {
String methodName = "hasRichiediAsseverazioni"; String methodName = "praticaIsCompleta";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { userId }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8835,14 +8988,32 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean isAsseverazioneDomandaRecommendedByTipoSoggetto( public java.lang.String getTitle(java.util.Locale locale) {
java.lang.String tipoSoggetto) {
try { try {
String methodName = "isAsseverazioneDomandaRecommendedByTipoSoggetto"; String methodName = "getTitle";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { java.util.Locale.class };
Object[] parameterValues = new Object[] { tipoSoggetto }; Object[] parameterValues = new Object[] { locale };
java.lang.String returnObj = (java.lang.String)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, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8855,13 +9026,14 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean hasSoggettoPrincipale(java.lang.String tipologiaSoggetto) { public boolean isAsseverazioneDomandaRecommendedByTipoSoggetto(
java.lang.String tipoSoggetto) {
try { try {
String methodName = "hasSoggettoPrincipale"; String methodName = "isAsseverazioneDomandaRecommendedByTipoSoggetto";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { tipologiaSoggetto }; Object[] parameterValues = new Object[] { tipoSoggetto };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -8931,15 +9103,15 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean delegheCompilazioneIsEnable() { public it.tref.liferay.portos.bo.model.Soggetto getPersonaDelegaCompilazioneSezioneGeologica() {
try { try {
String methodName = "delegheCompilazioneIsEnable"; String methodName = "getPersonaDelegaCompilazioneSezioneGeologica";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, it.tref.liferay.portos.bo.model.Soggetto returnObj = (it.tref.liferay.portos.bo.model.Soggetto)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -8988,14 +9160,13 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
@Override @Override
public boolean isAsseverazioneDomandaRequiredByTipoSoggetto( public boolean hasDelegaPagamento(long userId) {
java.lang.String tipoSoggetto) {
try { try {
String methodName = "isAsseverazioneDomandaRequiredByTipoSoggetto"; String methodName = "hasDelegaPagamento";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { tipoSoggetto }; Object[] parameterValues = new Object[] { userId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -9007,25 +9178,6 @@ public class DettPraticaClp extends BaseModelImpl<DettPratica>
} }
} }
@Override
public java.lang.String getFullDescription() {
try {
String methodName = "getFullDescription";
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 @Override
public boolean isCollaudatorePresent() { public boolean isCollaudatorePresent() {
try { try {

53
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DettPraticaWrapper.java

@ -8263,6 +8263,13 @@ public class DettPraticaWrapper implements DettPratica,
return _dettPratica.asseverazioniIsEnable(); return _dettPratica.asseverazioniIsEnable();
} }
@Override
public boolean canCompilaDomanda(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.canCompilaDomanda(userId);
}
@Override @Override
public boolean canCompleteDettPraticaEsente() public boolean canCompleteDettPraticaEsente()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -8284,6 +8291,13 @@ public class DettPraticaWrapper implements DettPratica,
return _dettPratica.canCompleteUserEditing(); return _dettPratica.canCompleteUserEditing();
} }
@Override
public boolean canDoPayment(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.canDoPayment(userId);
}
@Override @Override
public boolean delegheCompilazioneIsEnable() public boolean delegheCompilazioneIsEnable()
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -8298,6 +8312,25 @@ public class DettPraticaWrapper implements DettPratica,
return _dettPratica.getDocObbligatoriDomanda(); return _dettPratica.getDocObbligatoriDomanda();
} }
@Override
public it.tref.liferay.portos.bo.model.Soggetto getPersonaDelegaCompilazioneDomanda()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.getPersonaDelegaCompilazioneDomanda();
}
@Override
public it.tref.liferay.portos.bo.model.Soggetto getPersonaDelegaCompilazioneSezioneGeologica()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.getPersonaDelegaCompilazioneSezioneGeologica();
}
@Override
public java.lang.String getTipoReport(java.lang.String tipoDocumento) {
return _dettPratica.getTipoReport(tipoDocumento);
}
@Override @Override
public boolean hasAnnullaAsseverazioni(long userId) public boolean hasAnnullaAsseverazioni(long userId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
@ -8317,6 +8350,13 @@ public class DettPraticaWrapper implements DettPratica,
return _dettPratica.hasAsseverazioniAttive(); return _dettPratica.hasAsseverazioniAttive();
} }
@Override
public boolean hasDelegaAttiva(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.hasDelegaAttiva(userId);
}
@Override @Override
public boolean hasDelegaCompilazioneDomanda(long userId) public boolean hasDelegaCompilazioneDomanda(long userId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -8338,6 +8378,19 @@ public class DettPraticaWrapper implements DettPratica,
return _dettPratica.hasDelegaFirmaAllegati(userId); return _dettPratica.hasDelegaFirmaAllegati(userId);
} }
@Override
public boolean hasDelegaPagamento(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.hasDelegaPagamento(userId);
}
@Override
public boolean hasDelegheCompilazioneAttive()
throws com.liferay.portal.kernel.exception.SystemException {
return _dettPratica.hasDelegheCompilazioneAttive();
}
@Override @Override
public boolean hasRichiediAsseverazioni(long userId) public boolean hasRichiediAsseverazioni(long userId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPratica.java

@ -39,4 +39,12 @@ public interface DocPratica extends DocPraticaModel, PersistedModel {
com.liferay.portal.theme.ThemeDisplay themeDisplay) com.liferay.portal.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public boolean hasDelegaFirma(long userId, boolean sezioneGeologica)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasDelegaDeleteFile(long userId, boolean sezioneGeologica)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
} }

38
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaClp.java

@ -872,6 +872,44 @@ public class DocPraticaClp extends BaseModelImpl<DocPratica>
} }
} }
@Override
public boolean hasDelegaFirma(long userId, boolean sezioneGeologica) {
try {
String methodName = "hasDelegaFirma";
Class<?>[] parameterTypes = new Class<?>[] { long.class, boolean.class };
Object[] parameterValues = new Object[] { userId, sezioneGeologica };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override
public boolean hasDelegaDeleteFile(long userId, boolean sezioneGeologica) {
try {
String methodName = "hasDelegaDeleteFile";
Class<?>[] parameterTypes = new Class<?>[] { long.class, boolean.class };
Object[] parameterValues = new Object[] { userId, sezioneGeologica };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues);
return returnObj;
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
@Override @Override
public StagedModelType getStagedModelType() { public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId( return new StagedModelType(PortalUtil.getClassNameId(

14
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/DocPraticaWrapper.java

@ -897,6 +897,20 @@ public class DocPraticaWrapper implements DocPratica, ModelWrapper<DocPratica> {
return _docPratica.getDownloadUrl(themeDisplay); return _docPratica.getDownloadUrl(themeDisplay);
} }
@Override
public boolean hasDelegaFirma(long userId, boolean sezioneGeologica)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _docPratica.hasDelegaFirma(userId, sezioneGeologica);
}
@Override
public boolean hasDelegaDeleteFile(long userId, boolean sezioneGeologica)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _docPratica.hasDelegaDeleteFile(userId, sezioneGeologica);
}
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (this == obj) { if (this == obj) {

29
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPratica.java

@ -159,8 +159,33 @@ public interface IntPratica extends IntPraticaModel, PersistedModel {
public boolean praticaHasIntegrazioneInProgress() public boolean praticaHasIntegrazioneInProgress()
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getGeologi()
throws com.liferay.portal.kernel.exception.SystemException;
public boolean hasAnnullaDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasCreazioneDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasDeleteDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean hasRichiestaIntegrazioneAttiva(); public boolean hasRichiestaIntegrazioneAttiva();
public void invioMailNotifica(long dettPraticaId, long classPk,
java.lang.String className, java.lang.String[] to,
java.lang.String[] cc, java.lang.String[] ccn,
java.lang.String templateName,
com.liferay.portal.kernel.json.JSONObject templateVariables,
java.util.List<it.tref.liferay.portos.mailmanager.shared.model.FileAttachment> allegati,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean isAllowedAction(java.lang.String action) public boolean isAllowedAction(java.lang.String action)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
@ -170,6 +195,10 @@ public interface IntPratica extends IntPraticaModel, PersistedModel {
public boolean praticaInProgress() public boolean praticaInProgress()
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public com.liferay.portal.model.User recuperaTecnicoIstruttore()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean signaturesContains(java.lang.String tipoSoggetto, public boolean signaturesContains(java.lang.String tipoSoggetto,
java.util.List<java.lang.String> signatures) java.util.List<java.lang.String> signatures)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;

419
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaClp.java

@ -1186,9 +1186,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasAnnullamento() { public boolean canEditPratica() {
try { try {
String methodName = "praticaHasAnnullamento"; String methodName = "canEditPratica";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1205,9 +1205,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean hasRichiestaIntegrazioneAttiva() { public boolean canAddVariazioneSoggetti() {
try { try {
String methodName = "hasRichiestaIntegrazioneAttiva"; String methodName = "canAddVariazioneSoggetti";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1224,9 +1224,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canAddVariazioneSoggetti() { public boolean canEditUsers() {
try { try {
String methodName = "canAddVariazioneSoggetti"; String methodName = "canEditUsers";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1243,9 +1243,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canEditPratica() { public boolean praticaCanAddIntegrazione() {
try { try {
String methodName = "canEditPratica"; String methodName = "praticaCanAddIntegrazione";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1262,15 +1262,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canAddPagamento(long userId) { public java.lang.String getIndirizzo() {
try { try {
String methodName = "canAddPagamento"; String methodName = "getIndirizzo";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { userId }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1281,15 +1281,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canEditUsers() { public java.lang.Integer getDistanzaOrtodromica() {
try { try {
String methodName = "canEditUsers"; String methodName = "getDistanzaOrtodromica";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1300,9 +1300,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanAddIntegrazione() { public boolean isAutorizzazione() {
try { try {
String methodName = "praticaCanAddIntegrazione"; String methodName = "isAutorizzazione";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1319,9 +1319,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaInProgress() { public boolean canPrintFascicolo() {
try { try {
String methodName = "praticaInProgress"; String methodName = "canPrintFascicolo";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1338,15 +1338,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public java.lang.String getIndirizzo() { public boolean praticaCanDeleteVariante() {
try { try {
String methodName = "getIndirizzo"; String methodName = "praticaCanDeleteVariante";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1357,15 +1357,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public java.lang.Integer getDistanzaOrtodromica() { public boolean canDeletePratica(long userId) {
try { try {
String methodName = "getDistanzaOrtodromica"; String methodName = "canDeletePratica";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { userId };
java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1376,15 +1376,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public int getTipoRichiesta() { public boolean isDeposito() {
try { try {
String methodName = "getTipoRichiesta"; String methodName = "isDeposito";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
Integer returnObj = (Integer)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1395,9 +1395,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isAutorizzazione() { public boolean praticaHasCollaudoInProgress() {
try { try {
String methodName = "isAutorizzazione"; String methodName = "praticaHasCollaudoInProgress";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1414,15 +1414,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public java.lang.String getTitle(boolean completed) { public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getGeologi() {
try { try {
String methodName = "getTitle"; String methodName = "getGeologi";
Class<?>[] parameterTypes = new Class<?>[] { boolean.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { completed }; Object[] parameterValues = new Object[] { };
java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, java.util.List<it.tref.liferay.portos.bo.model.Soggetto> returnObj = (java.util.List<it.tref.liferay.portos.bo.model.Soggetto>)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1433,13 +1433,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canPrintFascicolo() { public boolean praticaCanAddFineLavori(java.lang.String userScreenName) {
try { try {
String methodName = "canPrintFascicolo"; String methodName = "praticaCanAddFineLavori";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { userScreenName };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1452,9 +1452,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanDeleteVariante() { public boolean praticaCanDeleteIntegrazione() {
try { try {
String methodName = "praticaCanDeleteVariante"; String methodName = "praticaCanDeleteIntegrazione";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1471,9 +1471,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasCollaudoInProgress() { public boolean isCommittenteAndDitta() {
try { try {
String methodName = "praticaHasCollaudoInProgress"; String methodName = "isCommittenteAndDitta";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1490,9 +1490,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isDeposito() { public boolean isAnnullata() {
try { try {
String methodName = "isDeposito"; String methodName = "isAnnullata";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1509,13 +1509,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canDeletePratica(long userId) { public boolean praticaCanDeleteFineLavori(java.lang.String userScreenName) {
try { try {
String methodName = "canDeletePratica"; String methodName = "praticaCanDeleteFineLavori";
Class<?>[] parameterTypes = new Class<?>[] { long.class }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { userId }; Object[] parameterValues = new Object[] { userScreenName };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1528,9 +1528,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canAddSoggetto(java.lang.String tipoSoggetto) { public boolean canRemoveSoggetto(java.lang.String tipoSoggetto) {
try { try {
String methodName = "canAddSoggetto"; String methodName = "canRemoveSoggetto";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
@ -1547,13 +1547,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanAddFineLavori(java.lang.String userScreenName) { public boolean isAllowedAction(java.lang.String action) {
try { try {
String methodName = "praticaCanAddFineLavori"; String methodName = "isAllowedAction";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { userScreenName }; Object[] parameterValues = new Object[] { action };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1566,9 +1566,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasVarianteInProgress() { public boolean canPrintFascicoloVariante() {
try { try {
String methodName = "praticaHasVarianteInProgress"; String methodName = "canPrintFascicoloVariante";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1585,9 +1585,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanDeleteIntegrazione() { public boolean isTitolareInCommittenti() {
try { try {
String methodName = "praticaCanDeleteIntegrazione"; String methodName = "isTitolareInCommittenti";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1604,9 +1604,28 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isCommittenteAndDitta() { public boolean praticaCanEditCollaudo(java.lang.String userScreenName) {
try { try {
String methodName = "isCommittenteAndDitta"; 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 praticaCanEditVariante() {
try {
String methodName = "praticaCanEditVariante";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1623,9 +1642,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasFineLavoriPaymentPending() { public boolean praticaHasCollaudoPaymentPending() {
try { try {
String methodName = "praticaHasFineLavoriPaymentPending"; String methodName = "praticaHasCollaudoPaymentPending";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1642,9 +1661,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isAnnullata() { public boolean praticaHasIntegrazioneInProgress() {
try { try {
String methodName = "isAnnullata"; String methodName = "praticaHasIntegrazioneInProgress";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1661,13 +1680,16 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanDeleteFineLavori(java.lang.String userScreenName) { public boolean signaturesContains(java.lang.String tipoSoggetto,
java.util.List<java.lang.String> signatures) {
try { try {
String methodName = "praticaCanDeleteFineLavori"; String methodName = "signaturesContains";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] {
java.lang.String.class, java.util.List.class
};
Object[] parameterValues = new Object[] { userScreenName }; Object[] parameterValues = new Object[] { tipoSoggetto, signatures };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1680,13 +1702,41 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canRemoveSoggetto(java.lang.String tipoSoggetto) { public boolean isAllRequiredValid(java.lang.String codiceDoc,
java.util.List<java.lang.String> signatures,
java.util.List<java.lang.String> tipologiaSoggetti,
it.tref.liferay.portos.bo.model.DocPratica docPratica) {
try { try {
String methodName = "canRemoveSoggetto"; 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 }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { tipoSoggetto }; Object[] parameterValues = new Object[] { userScreenName };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1699,13 +1749,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isAllowedAction(java.lang.String action) { public boolean praticaCanDeleteCollaudo(java.lang.String userScreenName) {
try { try {
String methodName = "isAllowedAction"; String methodName = "praticaCanDeleteCollaudo";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
Object[] parameterValues = new Object[] { action }; Object[] parameterValues = new Object[] { userScreenName };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1718,9 +1768,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean canPrintFascicoloVariante() { public boolean praticaHasAnnullamento() {
try { try {
String methodName = "canPrintFascicoloVariante"; String methodName = "praticaHasAnnullamento";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1737,13 +1787,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isChiusa() { public boolean hasCreazioneDelega(long userId) {
try { try {
String methodName = "isChiusa"; String methodName = "hasCreazioneDelega";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { userId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1756,9 +1806,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isTitolareInCommittenti() { public boolean hasRichiestaIntegrazioneAttiva() {
try { try {
String methodName = "isTitolareInCommittenti"; String methodName = "hasRichiestaIntegrazioneAttiva";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1775,13 +1825,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanEditCollaudo(java.lang.String userScreenName) { public boolean canAddPagamento(long userId) {
try { try {
String methodName = "praticaCanEditCollaudo"; String methodName = "canAddPagamento";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { userScreenName }; Object[] parameterValues = new Object[] { userId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1794,13 +1844,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanEditFineLavori(java.lang.String userScreenName) { public boolean praticaInProgress() {
try { try {
String methodName = "praticaCanEditFineLavori"; String methodName = "praticaInProgress";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { userScreenName }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1813,15 +1863,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasFineLavoriInProgress() { public com.liferay.portal.model.User recuperaTecnicoIstruttore() {
try { try {
String methodName = "praticaHasFineLavoriInProgress"; String methodName = "recuperaTecnicoIstruttore";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, com.liferay.portal.model.User returnObj = (com.liferay.portal.model.User)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1832,15 +1882,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanEditVariante() { public int getTipoRichiesta() {
try { try {
String methodName = "praticaCanEditVariante"; String methodName = "getTipoRichiesta";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Integer returnObj = (Integer)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1851,15 +1901,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public java.lang.String getTitle(java.util.Locale locale, boolean completed) { public java.lang.String getTitle(boolean completed) {
try { try {
String methodName = "getTitle"; String methodName = "getTitle";
Class<?>[] parameterTypes = new Class<?>[] { Class<?>[] parameterTypes = new Class<?>[] { boolean.class };
java.util.Locale.class, boolean.class
};
Object[] parameterValues = new Object[] { locale, completed }; Object[] parameterValues = new Object[] { completed };
java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName, java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1872,13 +1920,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanEditIntegrazione() { public boolean hasDeleteDelega(long userId) {
try { try {
String methodName = "praticaCanEditIntegrazione"; String methodName = "hasDeleteDelega";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { }; Object[] parameterValues = new Object[] { userId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1891,17 +1939,15 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng) { public boolean canAddSoggetto(java.lang.String tipoSoggetto) {
try { try {
String methodName = "calcolaDistanzaOrtodromica"; String methodName = "canAddSoggetto";
Class<?>[] parameterTypes = new Class<?>[] { Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class };
double.class, double.class
};
Object[] parameterValues = new Object[] { lat, lng }; Object[] parameterValues = new Object[] { tipoSoggetto };
java.lang.Integer returnObj = (java.lang.Integer)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -1912,9 +1958,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasCollaudoPaymentPending() { public boolean praticaHasVarianteInProgress() {
try { try {
String methodName = "praticaHasCollaudoPaymentPending"; String methodName = "praticaHasVarianteInProgress";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1931,9 +1977,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanAddVariante() { public boolean praticaHasFineLavoriPaymentPending() {
try { try {
String methodName = "praticaCanAddVariante"; String methodName = "praticaHasFineLavoriPaymentPending";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1950,9 +1996,9 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaHasIntegrazioneInProgress() { public boolean isChiusa() {
try { try {
String methodName = "praticaHasIntegrazioneInProgress"; String methodName = "isChiusa";
Class<?>[] parameterTypes = new Class<?>[] { }; Class<?>[] parameterTypes = new Class<?>[] { };
@ -1969,16 +2015,64 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean signaturesContains(java.lang.String tipoSoggetto, public boolean praticaCanEditFineLavori(java.lang.String userScreenName) {
java.util.List<java.lang.String> signatures) {
try { try {
String methodName = "signaturesContains"; 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 void invioMailNotifica(long dettPraticaId, long classPk,
java.lang.String className, java.lang.String[] to,
java.lang.String[] cc, java.lang.String[] ccn,
java.lang.String templateName,
com.liferay.portal.kernel.json.JSONObject templateVariables,
java.util.List<it.tref.liferay.portos.mailmanager.shared.model.FileAttachment> allegati,
com.liferay.portal.service.ServiceContext serviceContext) {
try {
String methodName = "invioMailNotifica";
Class<?>[] parameterTypes = new Class<?>[] { Class<?>[] parameterTypes = new Class<?>[] {
java.lang.String.class, java.util.List.class long.class, long.class, java.lang.String.class,
java.lang.String.class, java.lang.String.class,
java.lang.String.class, java.lang.String.class,
com.liferay.portal.kernel.json.JSONObject.class,
java.util.List.class,
com.liferay.portal.service.ServiceContext.class
}; };
Object[] parameterValues = new Object[] { tipoSoggetto, signatures }; Object[] parameterValues = new Object[] {
dettPraticaId, classPk, className, to, cc, ccn, templateName,
templateVariables, allegati, serviceContext
};
invokeOnRemoteModel(methodName, parameterTypes, parameterValues);
}
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, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -1991,15 +2085,17 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanDeleteCollaudo(java.lang.String userScreenName) { public java.lang.String getTitle(java.util.Locale locale, boolean completed) {
try { try {
String methodName = "praticaCanDeleteCollaudo"; String methodName = "getTitle";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] {
java.util.Locale.class, boolean.class
};
Object[] parameterValues = new Object[] { userScreenName }; Object[] parameterValues = new Object[] { locale, completed };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, java.lang.String returnObj = (java.lang.String)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
return returnObj; return returnObj;
@ -2010,13 +2106,13 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean praticaCanAddCollaudo(java.lang.String userScreenName) { public boolean praticaCanEditIntegrazione() {
try { try {
String methodName = "praticaCanAddCollaudo"; String methodName = "praticaCanEditIntegrazione";
Class<?>[] parameterTypes = new Class<?>[] { java.lang.String.class }; Class<?>[] parameterTypes = new Class<?>[] { };
Object[] parameterValues = new Object[] { userScreenName }; Object[] parameterValues = new Object[] { };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);
@ -2029,22 +2125,53 @@ public class IntPraticaClp extends BaseModelImpl<IntPratica>
} }
@Override @Override
public boolean isAllRequiredValid(java.lang.String codiceDoc, public java.lang.Integer calcolaDistanzaOrtodromica(double lat, double lng) {
java.util.List<java.lang.String> signatures,
java.util.List<java.lang.String> tipologiaSoggetti,
it.tref.liferay.portos.bo.model.DocPratica docPratica) {
try { try {
String methodName = "isAllRequiredValid"; String methodName = "calcolaDistanzaOrtodromica";
Class<?>[] parameterTypes = new Class<?>[] { Class<?>[] parameterTypes = new Class<?>[] {
java.lang.String.class, java.util.List.class, double.class, double.class
java.util.List.class,
it.tref.liferay.portos.bo.model.DocPratica.class
}; };
Object[] parameterValues = new Object[] { Object[] parameterValues = new Object[] { lat, lng };
codiceDoc, signatures, tipologiaSoggetti, docPratica
}; java.lang.Integer returnObj = (java.lang.Integer)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 hasAnnullaDelega(long userId) {
try {
String methodName = "hasAnnullaDelega";
Class<?>[] parameterTypes = new Class<?>[] { long.class };
Object[] parameterValues = new Object[] { userId };
Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName, Boolean returnObj = (Boolean)invokeOnRemoteModel(methodName,
parameterTypes, parameterValues); parameterTypes, parameterValues);

48
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/IntPraticaWrapper.java

@ -1484,11 +1484,52 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
return _intPratica.praticaHasIntegrazioneInProgress(); return _intPratica.praticaHasIntegrazioneInProgress();
} }
@Override
public java.util.List<it.tref.liferay.portos.bo.model.Soggetto> getGeologi()
throws com.liferay.portal.kernel.exception.SystemException {
return _intPratica.getGeologi();
}
@Override
public boolean hasAnnullaDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPratica.hasAnnullaDelega(userId);
}
@Override
public boolean hasCreazioneDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPratica.hasCreazioneDelega(userId);
}
@Override
public boolean hasDeleteDelega(long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPratica.hasDeleteDelega(userId);
}
@Override @Override
public boolean hasRichiestaIntegrazioneAttiva() { public boolean hasRichiestaIntegrazioneAttiva() {
return _intPratica.hasRichiestaIntegrazioneAttiva(); return _intPratica.hasRichiestaIntegrazioneAttiva();
} }
@Override
public void invioMailNotifica(long dettPraticaId, long classPk,
java.lang.String className, java.lang.String[] to,
java.lang.String[] cc, java.lang.String[] ccn,
java.lang.String templateName,
com.liferay.portal.kernel.json.JSONObject templateVariables,
java.util.List<it.tref.liferay.portos.mailmanager.shared.model.FileAttachment> allegati,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_intPratica.invioMailNotifica(dettPraticaId, classPk, className, to,
cc, ccn, templateName, templateVariables, allegati, serviceContext);
}
@Override @Override
public boolean isAllowedAction(java.lang.String action) public boolean isAllowedAction(java.lang.String action)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
@ -1507,6 +1548,13 @@ public class IntPraticaWrapper implements IntPratica, ModelWrapper<IntPratica> {
return _intPratica.praticaInProgress(); return _intPratica.praticaInProgress();
} }
@Override
public com.liferay.portal.model.User recuperaTecnicoIstruttore()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _intPratica.recuperaTecnicoIstruttore();
}
@Override @Override
public boolean signaturesContains(java.lang.String tipoSoggetto, public boolean signaturesContains(java.lang.String tipoSoggetto,
java.util.List<java.lang.String> signatures) java.util.List<java.lang.String> signatures)

156
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java

@ -312,12 +312,6 @@ public interface PagamentoLocalService extends BaseLocalService,
java.lang.String[] parameterTypes, java.lang.Object[] arguments) java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable; throws java.lang.Throwable;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.Map<java.lang.String, java.lang.Double> getPagamenti();
public long createPagamentoId()
throws com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento addPagamento( public it.tref.liferay.portos.bo.model.Pagamento addPagamento(
java.lang.String codice, java.lang.String causale, java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
@ -328,7 +322,7 @@ public interface PagamentoLocalService extends BaseLocalService,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
java.lang.String codice, java.lang.String causale, long pagamentoId, java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
java.lang.String tipoPagamento, java.lang.String importo, java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String utilizzata, long classPk, java.lang.String className, java.lang.String utilizzata, long classPk, java.lang.String className,
@ -339,73 +333,51 @@ public interface PagamentoLocalService extends BaseLocalService,
public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
long pagamentoId, java.lang.String codice, java.lang.String causale, long pagamentoId, java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
java.lang.String tipoPagamento, java.lang.String importo, java.lang.String tipoImporto, java.lang.String importo,
java.lang.String utilizzata, long classPk, java.lang.String className, java.lang.String utilizzata, long classPk, java.lang.String className,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
long pagamentoId, java.lang.String codice, java.lang.String causale, java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
java.lang.String tipoImporto, java.lang.String importo, java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String utilizzata, long classPk, java.lang.String className, java.lang.String utilizzata, long classPk, java.lang.String className,
java.lang.String url,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String codiceFiscaleCommittente,
java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updatePagamentoUtilizzata(
long pagamentoId, java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento annullaPagamento( public it.tref.liferay.portos.bo.model.Pagamento annullaPagamento(
long pagamentoId) long pagamentoId)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo( public int countByClassPk(long classPk)
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countByCommittente_Mezzo( public int countByCommittente_Mezzo(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo_Utilizzata(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
public int countByCommittente_Mezzo_Utilizzata( public int countByCommittente_Mezzo_Utilizzata(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String utilizzata) java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata( public int countByIntPratica(long intPraticaId)
java.lang.String mezzo, java.lang.String utilizzata, int start, int end) throws com.liferay.portal.kernel.exception.SystemException;
public int countByIntPratica_Visible(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countByMezzo_Utilizzata(java.lang.String mezzo, public int countByMezzo_Utilizzata(java.lang.String mezzo,
java.lang.String utilizzata) java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_CreateDate( public int countByMezzo_Utilizzata_CreateDate(java.lang.String mezzo,
java.lang.String mezzo, java.lang.String utilizzata, java.lang.String utilizzata, java.util.Date date)
java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countByMezzo_Utilizzata_EmailPending_CreateDate( public int countByMezzo_Utilizzata_EmailPending_CreateDate(
@ -413,49 +385,84 @@ public interface PagamentoLocalService extends BaseLocalService,
boolean emailPending, java.util.Date date) boolean emailPending, java.util.Date date)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate( public int countInPending(java.util.Date date)
java.lang.String mezzo, java.lang.String utilizzata,
boolean emailPending, java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findInPending( public long createPagamentoId()
java.util.Date date, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator comparator)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countInPending(java.util.Date date) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByClassPk(
long classPk)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countByMezzo_Utilizzata_CreateDate(java.lang.String mezzo, public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String utilizzata, java.util.Date date) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updateEmailPendingPagamento( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo_Utilizzata(
long pagamentoId, boolean emailPending) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
throws com.liferay.portal.kernel.exception.PortalException, java.lang.String utilizzata, int start, int end)
com.liferay.portal.kernel.exception.SystemException;
public int countByClassPk(long classPk)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByClassPk( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica(
long classPk) long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica_Visible(
long intPraticaId) long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countByIntPratica(long intPraticaId) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata(
java.lang.String mezzo, java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica_Visible( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_CreateDate(
long intPraticaId) java.lang.String mezzo, java.lang.String utilizzata,
java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public int countByIntPratica_Visible(long intPraticaId) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(
java.lang.String mezzo, java.lang.String utilizzata,
boolean emailPending, java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException; throws com.liferay.portal.kernel.exception.SystemException;
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findInPending(
java.util.Date date, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator comparator)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.math.BigDecimal getImportoBolli(long companyId,
long dettPraticaId, java.lang.String tipoIntegrazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.math.BigDecimal getImportoBolli(long companyId, long classPK,
java.lang.String className, java.lang.String tipoIntegrazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.Map<java.lang.String, java.lang.Double> getPagamenti();
public it.tref.liferay.portos.bo.model.Pagamento nuovoPagamento(
java.lang.String currentURL, long classPk, java.lang.String className,
java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String codiceFiscaleCommittente,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean pagamentiCompleted(long classPK, java.lang.String className)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public boolean pagamentiInitialized(long classPK, java.lang.String className)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void sostituisciPagamento(long pagamentoId, public void sostituisciPagamento(long pagamentoId,
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String url, java.lang.String url,
@ -463,6 +470,27 @@ public interface PagamentoLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updateEmailPendingPagamento(
long pagamentoId, boolean emailPending)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updateOtf(
long pagamentoId, boolean otf)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String codiceFiscaleCommittente,
java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
public void updatePagamentoManuale(long pagamentoId, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content, java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
@ -477,8 +505,8 @@ public interface PagamentoLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Pagamento updateOtf( public it.tref.liferay.portos.bo.model.Pagamento updatePagamentoUtilizzata(
long pagamentoId, boolean otf) long pagamentoId, java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
} }

950
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java

File diff soppresso perché troppo grande Load Diff

250
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java

@ -337,15 +337,6 @@ public class PagamentoLocalServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments); return getService().invokeMethod(name, parameterTypes, arguments);
} }
public static java.util.Map<java.lang.String, java.lang.Double> getPagamenti() {
return getService().getPagamenti();
}
public static long createPagamentoId()
throws com.liferay.portal.kernel.exception.SystemException {
return getService().createPagamentoId();
}
public static it.tref.liferay.portos.bo.model.Pagamento addPagamento( public static it.tref.liferay.portos.bo.model.Pagamento addPagamento(
java.lang.String codice, java.lang.String causale, java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
@ -360,20 +351,6 @@ public class PagamentoLocalServiceUtil {
classPk, className, serviceContext); classPk, className, serviceContext);
} }
public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String utilizzata, long classPk, java.lang.String className,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addPagamentoAndUpdate(codice, causale, mezzo,
codiceFiscaleCommittente, tipoPagamento, importo, utilizzata,
classPk, className, serviceContext);
}
public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
long pagamentoId, java.lang.String codice, java.lang.String causale, long pagamentoId, java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
@ -403,28 +380,18 @@ public class PagamentoLocalServiceUtil {
classPk, className, url, serviceContext); classPk, className, url, serviceContext);
} }
public static it.tref.liferay.portos.bo.model.Pagamento updatePagamento( public static it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
long pagamentoId, java.lang.String importo) java.lang.String codice, java.lang.String causale,
throws com.liferay.portal.kernel.exception.PortalException, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
com.liferay.portal.kernel.exception.SystemException { java.lang.String tipoPagamento, java.lang.String importo,
return getService().updatePagamento(pagamentoId, importo); java.lang.String utilizzata, long classPk, java.lang.String className,
} com.liferay.portal.service.ServiceContext serviceContext)
public static it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String codiceFiscaleCommittente,
java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.updatePagamento(pagamentoId, codiceFiscaleCommittente, .addPagamentoAndUpdate(codice, causale, mezzo,
importo); codiceFiscaleCommittente, tipoPagamento, importo, utilizzata,
} classPk, className, serviceContext);
public static it.tref.liferay.portos.bo.model.Pagamento updatePagamentoUtilizzata(
long pagamentoId, java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().updatePagamentoUtilizzata(pagamentoId, utilizzata);
} }
public static it.tref.liferay.portos.bo.model.Pagamento annullaPagamento( public static it.tref.liferay.portos.bo.model.Pagamento annullaPagamento(
@ -434,13 +401,9 @@ public class PagamentoLocalServiceUtil {
return getService().annullaPagamento(pagamentoId); return getService().annullaPagamento(pagamentoId);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo( public static int countByClassPk(long classPk)
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService() return getService().countByClassPk(classPk);
.findByCommittente_Mezzo(codiceFiscaleCommittente, mezzo,
start, end);
} }
public static int countByCommittente_Mezzo( public static int countByCommittente_Mezzo(
@ -450,15 +413,6 @@ public class PagamentoLocalServiceUtil {
.countByCommittente_Mezzo(codiceFiscaleCommittente, mezzo); .countByCommittente_Mezzo(codiceFiscaleCommittente, mezzo);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo_Utilizzata(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.findByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente,
mezzo, utilizzata, start, end);
}
public static int countByCommittente_Mezzo_Utilizzata( public static int countByCommittente_Mezzo_Utilizzata(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String utilizzata) java.lang.String utilizzata)
@ -468,10 +422,14 @@ public class PagamentoLocalServiceUtil {
mezzo, utilizzata); mezzo, utilizzata);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata( public static int countByIntPratica(long intPraticaId)
java.lang.String mezzo, java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByMezzo_Utilizzata(mezzo, utilizzata, start, end); return getService().countByIntPratica(intPraticaId);
}
public static int countByIntPratica_Visible(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByIntPratica_Visible(intPraticaId);
} }
public static int countByMezzo_Utilizzata(java.lang.String mezzo, public static int countByMezzo_Utilizzata(java.lang.String mezzo,
@ -480,13 +438,11 @@ public class PagamentoLocalServiceUtil {
return getService().countByMezzo_Utilizzata(mezzo, utilizzata); return getService().countByMezzo_Utilizzata(mezzo, utilizzata);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_CreateDate( public static int countByMezzo_Utilizzata_CreateDate(
java.lang.String mezzo, java.lang.String utilizzata, java.lang.String mezzo, java.lang.String utilizzata, java.util.Date date)
java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.findByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date, .countByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date);
start, end);
} }
public static int countByMezzo_Utilizzata_EmailPending_CreateDate( public static int countByMezzo_Utilizzata_EmailPending_CreateDate(
@ -498,73 +454,129 @@ public class PagamentoLocalServiceUtil {
utilizzata, emailPending, date); utilizzata, emailPending, date);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate( public static int countInPending(java.util.Date date)
java.lang.String mezzo, java.lang.String utilizzata,
boolean emailPending, java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService() return getService().countInPending(date);
.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo,
utilizzata, emailPending, date, start, end);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findInPending( public static long createPagamentoId()
java.util.Date date, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator comparator)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().findInPending(date, start, end, comparator); return getService().createPagamentoId();
} }
public static int countInPending(java.util.Date date) public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByClassPk(
long classPk)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().countInPending(date); return getService().findByClassPk(classPk);
} }
public static int countByMezzo_Utilizzata_CreateDate( public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String mezzo, java.lang.String utilizzata, java.util.Date date) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.countByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date); .findByCommittente_Mezzo(codiceFiscaleCommittente, mezzo,
start, end);
} }
public static it.tref.liferay.portos.bo.model.Pagamento updateEmailPendingPagamento( public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo_Utilizzata(
long pagamentoId, boolean emailPending) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
throws com.liferay.portal.kernel.exception.PortalException, java.lang.String utilizzata, int start, int end)
com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService() return getService()
.updateEmailPendingPagamento(pagamentoId, emailPending); .findByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente,
mezzo, utilizzata, start, end);
} }
public static int countByClassPk(long classPk) public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByClassPk(classPk); return getService().findByIntPratica(intPraticaId);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByClassPk( public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica_Visible(
long classPk) long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByClassPk(classPk); return getService().findByIntPratica_Visible(intPraticaId);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica( public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata(
long intPraticaId) java.lang.String mezzo, java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByIntPratica(intPraticaId); return getService().findByMezzo_Utilizzata(mezzo, utilizzata, start, end);
} }
public static int countByIntPratica(long intPraticaId) public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_CreateDate(
java.lang.String mezzo, java.lang.String utilizzata,
java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByIntPratica(intPraticaId); return getService()
.findByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date,
start, end);
} }
public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica_Visible( public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(
long intPraticaId) java.lang.String mezzo, java.lang.String utilizzata,
boolean emailPending, java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().findByIntPratica_Visible(intPraticaId); return getService()
.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo,
utilizzata, emailPending, date, start, end);
} }
public static int countByIntPratica_Visible(long intPraticaId) public static java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findInPending(
java.util.Date date, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator comparator)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return getService().countByIntPratica_Visible(intPraticaId); return getService().findInPending(date, start, end, comparator);
}
public static java.math.BigDecimal getImportoBolli(long companyId,
long dettPraticaId, java.lang.String tipoIntegrazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.getImportoBolli(companyId, dettPraticaId, tipoIntegrazione);
}
public static java.math.BigDecimal getImportoBolli(long companyId,
long classPK, java.lang.String className,
java.lang.String tipoIntegrazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.getImportoBolli(companyId, classPK, className,
tipoIntegrazione);
}
public static java.util.Map<java.lang.String, java.lang.Double> getPagamenti() {
return getService().getPagamenti();
}
public static it.tref.liferay.portos.bo.model.Pagamento nuovoPagamento(
java.lang.String currentURL, long classPk, java.lang.String className,
java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String codiceFiscaleCommittente,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.nuovoPagamento(currentURL, classPk, className,
tipoPagamento, importo, codiceFiscaleCommittente, serviceContext);
}
public static boolean pagamentiCompleted(long classPK,
java.lang.String className)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().pagamentiCompleted(classPK, className);
}
public static boolean pagamentiInitialized(long classPK,
java.lang.String className)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().pagamentiInitialized(classPK, className);
} }
public static void sostituisciPagamento(long pagamentoId, public static void sostituisciPagamento(long pagamentoId,
@ -578,6 +590,38 @@ public class PagamentoLocalServiceUtil {
url, serviceContext); url, serviceContext);
} }
public static it.tref.liferay.portos.bo.model.Pagamento updateEmailPendingPagamento(
long pagamentoId, boolean emailPending)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateEmailPendingPagamento(pagamentoId, emailPending);
}
public static it.tref.liferay.portos.bo.model.Pagamento updateOtf(
long pagamentoId, boolean otf)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().updateOtf(pagamentoId, otf);
}
public static it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService().updatePagamento(pagamentoId, importo);
}
public static it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String codiceFiscaleCommittente,
java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updatePagamento(pagamentoId, codiceFiscaleCommittente,
importo);
}
public static void updatePagamentoManuale(long pagamentoId, public static void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content, java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
@ -600,11 +644,11 @@ public class PagamentoLocalServiceUtil {
sourceFileName, serviceContext); sourceFileName, serviceContext);
} }
public static it.tref.liferay.portos.bo.model.Pagamento updateOtf( public static it.tref.liferay.portos.bo.model.Pagamento updatePagamentoUtilizzata(
long pagamentoId, boolean otf) long pagamentoId, java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return getService().updateOtf(pagamentoId, otf); return getService().updatePagamentoUtilizzata(pagamentoId, utilizzata);
} }
public static void clearService() { public static void clearService() {

263
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java

@ -355,17 +355,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
arguments); arguments);
} }
@Override
public java.util.Map<java.lang.String, java.lang.Double> getPagamenti() {
return _pagamentoLocalService.getPagamenti();
}
@Override
public long createPagamentoId()
throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.createPagamentoId();
}
@Override @Override
public it.tref.liferay.portos.bo.model.Pagamento addPagamento( public it.tref.liferay.portos.bo.model.Pagamento addPagamento(
java.lang.String codice, java.lang.String causale, java.lang.String codice, java.lang.String causale,
@ -380,20 +369,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
classPk, className, serviceContext); classPk, className, serviceContext);
} }
@Override
public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
java.lang.String codice, java.lang.String causale,
java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String utilizzata, long classPk, java.lang.String className,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.addPagamentoAndUpdate(codice, causale,
mezzo, codiceFiscaleCommittente, tipoPagamento, importo,
utilizzata, classPk, className, serviceContext);
}
@Override @Override
public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate( public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
long pagamentoId, java.lang.String codice, java.lang.String causale, long pagamentoId, java.lang.String codice, java.lang.String causale,
@ -424,30 +399,17 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento( public it.tref.liferay.portos.bo.model.Pagamento addPagamentoAndUpdate(
long pagamentoId, java.lang.String importo) java.lang.String codice, java.lang.String causale,
throws com.liferay.portal.kernel.exception.PortalException, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente,
com.liferay.portal.kernel.exception.SystemException { java.lang.String tipoPagamento, java.lang.String importo,
return _pagamentoLocalService.updatePagamento(pagamentoId, importo); java.lang.String utilizzata, long classPk, java.lang.String className,
} com.liferay.portal.service.ServiceContext serviceContext)
@Override
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String codiceFiscaleCommittente,
java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updatePagamento(pagamentoId,
codiceFiscaleCommittente, importo);
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento updatePagamentoUtilizzata(
long pagamentoId, java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId, return _pagamentoLocalService.addPagamentoAndUpdate(codice, causale,
utilizzata); mezzo, codiceFiscaleCommittente, tipoPagamento, importo,
utilizzata, classPk, className, serviceContext);
} }
@Override @Override
@ -459,12 +421,9 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo( public int countByClassPk(long classPk)
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByCommittente_Mezzo(codiceFiscaleCommittente, return _pagamentoLocalService.countByClassPk(classPk);
mezzo, start, end);
} }
@Override @Override
@ -475,15 +434,6 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
mezzo); mezzo);
} }
@Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo_Utilizzata(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente,
mezzo, utilizzata, start, end);
}
@Override @Override
public int countByCommittente_Mezzo_Utilizzata( public int countByCommittente_Mezzo_Utilizzata(
java.lang.String codiceFiscaleCommittente, java.lang.String mezzo, java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
@ -494,11 +444,15 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata( public int countByIntPratica(long intPraticaId)
java.lang.String mezzo, java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByMezzo_Utilizzata(mezzo, utilizzata, return _pagamentoLocalService.countByIntPratica(intPraticaId);
start, end); }
@Override
public int countByIntPratica_Visible(long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.countByIntPratica_Visible(intPraticaId);
} }
@Override @Override
@ -509,12 +463,11 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_CreateDate( public int countByMezzo_Utilizzata_CreateDate(java.lang.String mezzo,
java.lang.String mezzo, java.lang.String utilizzata, java.lang.String utilizzata, java.util.Date date)
java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByMezzo_Utilizzata_CreateDate(mezzo, return _pagamentoLocalService.countByMezzo_Utilizzata_CreateDate(mezzo,
utilizzata, date, start, end); utilizzata, date);
} }
@Override @Override
@ -527,82 +480,138 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate( public int countInPending(java.util.Date date)
java.lang.String mezzo, java.lang.String utilizzata,
boolean emailPending, java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, return _pagamentoLocalService.countInPending(date);
utilizzata, emailPending, date, start, end);
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findInPending( public long createPagamentoId()
java.util.Date date, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator comparator)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findInPending(date, start, end, comparator); return _pagamentoLocalService.createPagamentoId();
} }
@Override @Override
public int countInPending(java.util.Date date) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByClassPk(
long classPk)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.countInPending(date); return _pagamentoLocalService.findByClassPk(classPk);
} }
@Override @Override
public int countByMezzo_Utilizzata_CreateDate(java.lang.String mezzo, public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo(
java.lang.String utilizzata, java.util.Date date) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.countByMezzo_Utilizzata_CreateDate(mezzo, return _pagamentoLocalService.findByCommittente_Mezzo(codiceFiscaleCommittente,
utilizzata, date); mezzo, start, end);
} }
@Override @Override
public it.tref.liferay.portos.bo.model.Pagamento updateEmailPendingPagamento( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByCommittente_Mezzo_Utilizzata(
long pagamentoId, boolean emailPending) java.lang.String codiceFiscaleCommittente, java.lang.String mezzo,
throws com.liferay.portal.kernel.exception.PortalException, java.lang.String utilizzata, int start, int end)
com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updateEmailPendingPagamento(pagamentoId, return _pagamentoLocalService.findByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente,
emailPending); mezzo, utilizzata, start, end);
} }
@Override @Override
public int countByClassPk(long classPk) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica(
long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.countByClassPk(classPk); return _pagamentoLocalService.findByIntPratica(intPraticaId);
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByClassPk( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica_Visible(
long classPk) long intPraticaId)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByClassPk(classPk); return _pagamentoLocalService.findByIntPratica_Visible(intPraticaId);
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata(
long intPraticaId) java.lang.String mezzo, java.lang.String utilizzata, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByIntPratica(intPraticaId); return _pagamentoLocalService.findByMezzo_Utilizzata(mezzo, utilizzata,
start, end);
} }
@Override @Override
public int countByIntPratica(long intPraticaId) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_CreateDate(
java.lang.String mezzo, java.lang.String utilizzata,
java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.countByIntPratica(intPraticaId); return _pagamentoLocalService.findByMezzo_Utilizzata_CreateDate(mezzo,
utilizzata, date, start, end);
} }
@Override @Override
public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByIntPratica_Visible( public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(
long intPraticaId) java.lang.String mezzo, java.lang.String utilizzata,
boolean emailPending, java.util.Date date, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.findByIntPratica_Visible(intPraticaId); return _pagamentoLocalService.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo,
utilizzata, emailPending, date, start, end);
} }
@Override @Override
public int countByIntPratica_Visible(long intPraticaId) public java.util.List<it.tref.liferay.portos.bo.model.Pagamento> findInPending(
java.util.Date date, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator comparator)
throws com.liferay.portal.kernel.exception.SystemException { throws com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.countByIntPratica_Visible(intPraticaId); return _pagamentoLocalService.findInPending(date, start, end, comparator);
}
@Override
public java.math.BigDecimal getImportoBolli(long companyId,
long dettPraticaId, java.lang.String tipoIntegrazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.getImportoBolli(companyId, dettPraticaId,
tipoIntegrazione);
}
@Override
public java.math.BigDecimal getImportoBolli(long companyId, long classPK,
java.lang.String className, java.lang.String tipoIntegrazione)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.getImportoBolli(companyId, classPK,
className, tipoIntegrazione);
}
@Override
public java.util.Map<java.lang.String, java.lang.Double> getPagamenti() {
return _pagamentoLocalService.getPagamenti();
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento nuovoPagamento(
java.lang.String currentURL, long classPk, java.lang.String className,
java.lang.String tipoPagamento, java.lang.String importo,
java.lang.String codiceFiscaleCommittente,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.nuovoPagamento(currentURL, classPk,
className, tipoPagamento, importo, codiceFiscaleCommittente,
serviceContext);
}
@Override
public boolean pagamentiCompleted(long classPK, java.lang.String className)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.pagamentiCompleted(classPK, className);
}
@Override
public boolean pagamentiInitialized(long classPK, java.lang.String className)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.pagamentiInitialized(classPK, className);
} }
@Override @Override
@ -616,6 +625,41 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
codiceFiscaleCommittente, mezzo, url, serviceContext); codiceFiscaleCommittente, mezzo, url, serviceContext);
} }
@Override
public it.tref.liferay.portos.bo.model.Pagamento updateEmailPendingPagamento(
long pagamentoId, boolean emailPending)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updateEmailPendingPagamento(pagamentoId,
emailPending);
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento updateOtf(
long pagamentoId, boolean otf)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updateOtf(pagamentoId, otf);
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updatePagamento(pagamentoId, importo);
}
@Override
public it.tref.liferay.portos.bo.model.Pagamento updatePagamento(
long pagamentoId, java.lang.String codiceFiscaleCommittente,
java.lang.String importo)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updatePagamento(pagamentoId,
codiceFiscaleCommittente, importo);
}
@Override @Override
public void updatePagamentoManuale(long pagamentoId, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content, java.lang.String numeroBollettino, byte[] content,
@ -639,11 +683,12 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public it.tref.liferay.portos.bo.model.Pagamento updateOtf( public it.tref.liferay.portos.bo.model.Pagamento updatePagamentoUtilizzata(
long pagamentoId, boolean otf) long pagamentoId, java.lang.String utilizzata)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException { com.liferay.portal.kernel.exception.SystemException {
return _pagamentoLocalService.updateOtf(pagamentoId, otf); return _pagamentoLocalService.updatePagamentoUtilizzata(pagamentoId,
utilizzata);
} }
/** /**

276
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java

@ -1,276 +0,0 @@
package it.tref.liferay.portos.bo.util;
import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.Delega;
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.Soggetto;
import it.tref.liferay.portos.bo.service.CollaudoServiceUtil;
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.DocPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriServiceUtil;
import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
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.util.Validator;
import com.liferay.portal.model.User;
import com.liferay.portal.service.UserLocalServiceUtil;
public class DelegheUtil {
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_RIFIUTATA = "RI";
public static final String TIPO_TOTALE = "TT";
public static final String TIPO_COMPILAZIONE = "CO";
public static final String TIPO_GEOLOGO = "GE";
public static final String TIPO_FIRMA_INSERIMENTO_ALLEGATI = "FI";
public static final String TIPO_PAGAMENTO = "PG";
public static final String TIPO_VISUALIZZAZIONE = "VI";
public static final String TIPO_FINE_LAVORI = "FL";
public static final String TIPO_COLLAUDO = "CL";
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())) {
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())) {
intPraticaId = dettPratica.getIntPraticaId();
owner = dettPratica.getUserId();
} else if (FineLavori.class.getName().equals(docPratica.getClassName())) {
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(docPratica.getClassPk());
owner = fineLavori.getUserId();
} else if (Collaudo.class.getName().equals(docPratica.getClassName())) {
Collaudo collaudo = CollaudoServiceUtil.getCollaudo(docPratica.getClassPk());
owner = collaudo.getUserId();
}
if (user.getUserId() == owner) {
controllo = true;
} else if (DettPratica.class.getName().equals(docPratica.getClassName())) {
List<Delega> deleghe = findDeleghe(intPraticaId, sezioneGeologica);
controllo = false;
if (!deleghe.isEmpty()) {
controllo = false;
for (Delega delega : deleghe) {
if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) {
controllo = true;
break;
}
}
}
} else {
controllo = false;
}
}
return controllo;
}
private static List<Delega> findDeleghe(long intPraticaid, boolean sezioneGeologica) throws SystemException {
List<Delega> deleghe = new ArrayList<Delega>();
deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid,
DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null));
deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid,
DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI, new String[] { DelegheUtil.STATO_ASSEGNATA },
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null));
if (sezioneGeologica) {
deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid,
DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null));
}
return deleghe;
}
public static boolean hasDelegaDeleteFile(long userId, long docPraticaId, boolean sezioneGeologica)
throws PortalException, SystemException {
// TODO completare e controllare
DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId);
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(docPratica.getClassPk());
return dettPratica.praticaIsEditable();
}
public static boolean hasCambioStatoDelega(long userId, long delegaId) throws PortalException, SystemException {
return true;
}
public static boolean hasCreazioneDelega(long userId, long intPraticaId) throws PortalException, SystemException {
return true;
}
public static boolean hasDeleteDelega(long userId, long intPraticaId) throws PortalException, SystemException {
return hasCreazioneDelega(userId, intPraticaId);
}
public static boolean hasAnnullaDelega(long userId, long intPraticaId) throws PortalException, SystemException {
return hasCreazioneDelega(userId, intPraticaId);
}
public static boolean canCompilaDomanda(long userId, long dettPraticaId) throws PortalException, SystemException {
boolean controllo = false;
User user = UserLocalServiceUtil.getUser(userId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
List<Delega> 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()) {
if (user.getUserId() == dettPratica.getUserId()) {
controllo = true;
} else {
controllo = false;
}
} 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;
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if (dettPratica.praticaIsEditable()) {
List<Delega> 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()) {
for (Delega delega : deleghe) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(dettPraticaId,
delega.getCodiceFiscale());
for (Soggetto soggettoTmp : soggetti) {
soggetto = soggettoTmp;
}
}
}
}
return soggetto;
}
public static Soggetto getPersonaDelegaCompilazioneSezioneGeologica(long dettPraticaId) throws SystemException,
PortalException {
Soggetto soggetto = null;
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
if (dettPratica.praticaIsEditable()) {
List<Delega> 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()) {
for (Delega delega : deleghe) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(dettPraticaId,
delega.getCodiceFiscale());
for (Soggetto soggettoTmp : soggetti) {
soggetto = soggettoTmp;
}
}
} else {
soggetto = getPersonaDelegaCompilazioneDomanda(dettPraticaId);
}
}
return soggetto;
}
public static List<Soggetto> getGeologi(long intPraticaId) throws SystemException {
List<Soggetto> geologi = new ArrayList<Soggetto>();
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica(intPraticaId);
for (Soggetto soggetto : soggetti) {
if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.GEOLOGO)
&& Validator.isNull(soggetto.getSostituitoDa()))
geologi.add(soggetto);
}
return geologi;
}
public static boolean hasDelegaPagamento(long userId, long dettPraticaId) throws PortalException, SystemException {
boolean controllo = false;
User user = UserLocalServiceUtil.getUser(userId);
DettPratica dettPratica = DettPraticaServiceUtil.getDettPratica(dettPraticaId);
List<Delega> deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(dettPratica.getIntPraticaId(),
DelegheUtil.TIPO_PAGAMENTO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
if (deleghe.isEmpty()) {
if (user.getUserId() == dettPratica.getUserId()) {
controllo = true;
} else {
controllo = false;
}
} else {
controllo = false;
for (Delega delega : deleghe) {
if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) {
controllo = true;
}
}
}
return controllo;
}
public static boolean canDoPayment(long userId, long dettPraticaId) throws PortalException, SystemException {
return canCompilaDomanda(userId, dettPraticaId) || hasDelegaPagamento(userId, dettPraticaId);
}
public static boolean hasDelegheCompilazioneAttive(long dettPraticaId) throws SystemException {
return DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(dettPraticaId, new String[] {
TIPO_COMPILAZIONE, TIPO_GEOLOGO, TIPO_FIRMA_INSERIMENTO_ALLEGATI }, new String[] { STATO_ASSEGNATA }) > 0;
}
public static boolean hasDelegaAttiva(long userId, long dettPraticaId) throws PortalException, SystemException {
User user = UserLocalServiceUtil.getUser(userId);
return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(dettPraticaId, user.getScreenName(),
new String[] { STATO_ASSEGNATA }) > 0;
}
@SuppressWarnings("serial")
public static final Map<String, String> iconMapper = new HashMap<String, String>() {
{
put(TIPO_TOTALE, "fa-bullseye");
put(TIPO_COMPILAZIONE, "fa-pencil");
put(TIPO_FIRMA_INSERIMENTO_ALLEGATI, "fa-paperclip");
put(TIPO_GEOLOGO, "fa-globe");
put(TIPO_COLLAUDO, "fa-cogs");
put(TIPO_PAGAMENTO, "fa-eur");
put(TIPO_VISUALIZZAZIONE, "fa-eye");
put(TIPO_FINE_LAVORI, "fa-window-close");
}
};
}

258
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/MailUtil.java

@ -1,258 +0,0 @@
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;
import it.tref.liferay.portos.bo.model.DettPratica;
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.Soggetto;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil;
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.TipoSoggettoUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
import java.util.Date;
import java.util.List;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
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.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.model.User;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil;
public class MailUtil {
private static final Log _log = LogFactoryUtil.getLog(MailUtil.class);
public static void invioMailNotifica(long intPraticaId, long dettPraticaId, long classPk, String className,
String[] to, String[] cc, String[] ccn, String templateName, JSONObject templateVariables,
List<FileAttachment> allegati, ServiceContext serviceContext) throws PortalException, SystemException {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
User titolaredigitaleUser = UserLocalServiceUtil.getUser(intPratica.getUserId());
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(
intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName());
String titolareDigitale = StringPool.BLANK;
String titolareDigitaleMail = StringPool.BLANK;
String titolareDigitaleRoles = StringPool.BLANK;
if (!titolari.isEmpty()) {
titolareDigitale = titolari.get(0).getTitle();
titolareDigitaleMail = titolari.get(0).getEmail();
for (Soggetto titolare : titolari) {
titolareDigitaleRoles += LanguageUtil.get(LocaleUtil.ITALIAN,
"gc-soggetto-" + titolare.getTipologiaSoggetto())
+ StringPool.SPACE;
}
}
String committenteTitle = StringPool.BLANK;
String descIntervento = StringPool.BLANK;
String tempId = StringPool.BLANK;
if (Validator.isNotNull(dettPratica)) {
tempId = dettPratica.getTitle();
descIntervento = dettPratica.getDescLongIntervento();
Soggetto committentePrincipale = SoggettoLocalServiceUtil
.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(intPratica.getIntPraticaId(),
dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE);
if (Validator.isNotNull(committentePrincipale)) {
committenteTitle = committentePrincipale.getTitle();
}
}
templateVariables.put("tempId", tempId);
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("titolareDigitale", titolareDigitale);
templateVariables.put("titolareDigitaleRoles", titolareDigitaleRoles);
templateVariables.put("titolareDigitaleMail", titolareDigitaleMail);
templateVariables.put("intervento", descIntervento);
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
templateVariables.put("committente", committenteTitle);
MailManagerUtil.sendMailByTemplatName(className, classPk, templateName, to, cc, ccn, templateVariables,
allegati, serviceContext);
}
// ADT
public static void invioNotificaAssegnazioneIstruttore(Avviso avviso) throws PortalException, SystemException {
_log.info("start invioNotificaAssegnazioneIstruttore: avviso_id = " + avviso.getAvvisoId()
+ " - IntPraticaId = " + avviso.getIntPraticaId());
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(avviso.getClassPk());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
if (avviso.getControlloPraticaId() == 0) {
_log.info("invioNotificaAssegnazioneIstruttore - skip invio email - controllopratica non trovato per avviso_id = "
+ avviso.getAvvisoId());
AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), true);
return;
}
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(avviso
.getControlloPraticaId());
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(controlloPratica.getCompanyId());
serviceContext.setScopeGroupId(controlloPratica.getGroupId());
serviceContext.setUserId(controlloPratica.getUserId());
User tecnicoIstruttore = recuperaTecnicoIstruttore(intPratica);
if (tecnicoIstruttore == null) {
_log.info("invioNotificaAssegnazioneIstruttore - skip invio email - tecnicoIstruttore non trovato per avviso_id = "
+ avviso.getAvvisoId());
AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), true);
return;
}
String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
// recupero dati
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Assegnazione Istruttoria");
templateVariables.put(
"dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
intPratica.getStatusDate() != null ? intPratica.getStatusDate() : new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = IntPratica.class.getName();
long classPk = intPratica.getIntPraticaId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables, null,
serviceContext);
AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(avviso.getAvvisoId(), true);
}
// Invio notifica istruttore dopo inserimento parere geologo
public static void invioNotificaIstruttoreByGeologo(long parereGeologoId, ServiceContext serviceContext) {
_log.info("start invioNotificaIstruttoreByGeologo parereGeologoId=" + parereGeologoId);
long intPraticaId = 0L;
try {
ParereGeologo parereGeologo = ParereGeologoLocalServiceUtil.getParereGeologo(parereGeologoId);
intPraticaId = parereGeologo.getIntPraticaId();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
User tecnicoIstruttore = recuperaTecnicoIstruttore(intPratica);
_log.info("email tecnico istruttore=" + tecnicoIstruttore.getEmailAddress());
String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
// recupero dati
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Risposta a Richiesta Parere Endoprocedimentale");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologoId;
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables,
null, serviceContext);
} catch (Exception e) {
_log.error("invioNotificaIstruttoreByGeologo - Errore invio mail al tecnico istruttore per pratica id="
+ intPraticaId, e);
}
}
public static void invioNotificaGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) {
_log.info("start invioNotificaGeologo parereGeologo=" + parereGeologo.getParereGeologoId());
try {
User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parereGeologo.getIntPraticaId());
_log.info("email geologo = " + geologo.getEmailAddress());
String[] to = { geologo.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", geologo.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Richiesta Parere");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologo.getParereGeologoId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-GEOLOGO", to, cc, ccn,
templateVariables, null, serviceContext);
} catch (Exception e) {
_log.error(
"invioNotificaGeologo - Errore invio mail al geologo - ParereGeologoId="
+ parereGeologo.getParereGeologoId(), e);
}
}
public static User recuperaTecnicoIstruttore(IntPratica intPratica) throws PortalException, SystemException {
long statusByUserId = intPratica.getStatusByUserId();
User istruttoreUser = null;
if (Validator.isNotNull(statusByUserId) && intPratica.getStatus() != WorkflowConstants.STATUS_DRAFT) {
istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
_log.info("istruttore pratica id=" + intPratica.getIntPraticaId() + StringPool.COLON
+ istruttoreUser.getScreenName() + StringPool.SPACE + istruttoreUser.getEmailAddress());
}
return istruttoreUser;
}
}

181
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/PagamentiCommonUtil.java

@ -1,181 +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.FineLavori;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
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;
public abstract class PagamentiCommonUtil {
private static Log _log = LogFactoryUtil.getLog(PagamentiCommonUtil.class);
private static final Map<String, Integer> NUMERO_BOLLI_INTEGRAZIONE = new HashMap<String, Integer>() {
{
put(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE, 0);
put(TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE, 2);
put(TipoIntegrazioneUtil.FINE_LAVORI, 2);
put(TipoIntegrazioneUtil.COLLAUDO_PARZIALE, 2);
put(TipoIntegrazioneUtil.COLLAUDO, 2);
put(TipoIntegrazioneUtil.VARIANTE, 2);
put(TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO, 0);
}
};
public static boolean isPagamentoRidotto(long dettPraticaId) throws Exception {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
return intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_DEPOSITO);
}
public static BigDecimal getImportoBolli(long companyId, long classPK, String className, String tipoIntegrazione)
throws PortalException, SystemException {
try {
boolean normEsenteBollo = false;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK);
normEsenteBollo = dettPratica.isNormEsenteBollo();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
normEsenteBollo = fineLavori.isNormEsenteBollo();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
normEsenteBollo = collaudo.isNormEsenteBollo();
}
if (normEsenteBollo) {
return new BigDecimal("0.00");
}
} catch (PortalException e) {}
int numeroBolli = getNumeroBolli(tipoIntegrazione);
BigDecimal importoBolliBigDecimal = new BigDecimal(ConfigurazioneLocalServiceUtil.findByC_ChiaveString(
companyId, ConfigurazioneConstants.IMPORTO_BOLLO));
return importoBolliBigDecimal.multiply(new BigDecimal(numeroBolli));
}
public static Integer getNumeroBolli(String tipoIntegrazione) throws PortalException, SystemException {
if (Validator.isNull(tipoIntegrazione)) {
return 2;
} else {
return getNumeroBolliByTipoIntegrazione(tipoIntegrazione);
}
}
private static Integer getNumeroBolliByTipoIntegrazione(String tipoIntegrazione) {
return NUMERO_BOLLI_INTEGRAZIONE.get(tipoIntegrazione);
}
public static boolean existsSpeseIstruttoria(String tipoIntegrazione) {
return !TipoIntegrazioneUtil.FINE_LAVORI_PARZIALE.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.FINE_LAVORI.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.COLLAUDO_PARZIALE.equals(tipoIntegrazione)
&& !TipoIntegrazioneUtil.COLLAUDO.equals(tipoIntegrazione);
}
public static boolean pagamentiInitialized(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false;
boolean normEsenteBollo = false;
long pagamentoIdSpese = 0L;
long pagamentoIdBolli = 0L;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK);
normEsenteSpese = dettPratica.isNormEsenteSpese();
normEsenteBollo = dettPratica.isNormEsenteBollo();
pagamentoIdSpese = dettPratica.getPagamentoIdOneri();
pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
normEsenteSpese = true;
normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
normEsenteSpese = true;
normEsenteBollo = collaudo.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = collaudo.getPagamentoId();
}
if (!normEsenteBollo && !normEsenteSpese) {
return Validator.isNotNull(pagamentoIdBolli) || Validator.isNotNull(pagamentoIdSpese);
} else if (normEsenteBollo) {
return Validator.isNotNull(pagamentoIdSpese);
} else if (normEsenteSpese) {
return Validator.isNotNull(pagamentoIdBolli);
}
return false;
}
public static boolean pagamentiCompleted(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false;
boolean normEsenteBollo = false;
long pagamentoIdSpese = 0;
long pagamentoIdBolli = 0;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPK);
normEsenteSpese = dettPratica.isNormEsenteSpese();
normEsenteBollo = dettPratica.isNormEsenteBollo();
pagamentoIdSpese = dettPratica.getPagamentoIdOneri();
pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPK);
normEsenteSpese = true;
normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPK);
normEsenteSpese = true;
normEsenteBollo = collaudo.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = collaudo.getPagamentoId();
}
boolean completed = false;
if (!normEsenteBollo && !normEsenteSpese) {
if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) {
return false;
}
Pagamento pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(pagamentoIdBolli);
Pagamento pagamentoSpese = PagamentoLocalServiceUtil.getPagamento(pagamentoIdSpese);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata())
&& PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else {
if (normEsenteBollo && Validator.isNotNull(pagamentoIdSpese)) {
Pagamento pagamentoSpese = PagamentoLocalServiceUtil.getPagamento(pagamentoIdSpese);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else if (normEsenteSpese && Validator.isNotNull(pagamentoIdBolli)) {
Pagamento pagamentoBolli = PagamentoLocalServiceUtil.getPagamento(pagamentoIdBolli);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata());
}
}
return completed;
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java

@ -3,6 +3,7 @@
*/ */
package it.mwg.sismica.bo.util; package it.mwg.sismica.bo.util;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil;
import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
@ -39,7 +40,6 @@ import it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; 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.Constants;
import it.tref.liferay.portos.mailmanager.model.Email; import it.tref.liferay.portos.mailmanager.model.Email;
import it.tref.liferay.portos.mailmanager.model.EmailAttachment; import it.tref.liferay.portos.mailmanager.model.EmailAttachment;

2
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; package it.mwg.sismica.bo.util;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.shared.util.WorkflowConstants;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
@ -19,7 +20,6 @@ import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; 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.Constants;
import java.io.Serializable; import java.io.Serializable;

218
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java

@ -8,27 +8,46 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil; import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil; import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
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.Constants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; 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.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import java.util.Date;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil; import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.LocaleUtil; import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.util.DLUtil; import com.liferay.portlet.documentlibrary.util.DLUtil;
@ -49,62 +68,13 @@ public class AvvisoImpl extends AvvisoBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a avviso model instance should * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a avviso model instance should
* use the {@link it.tref.liferay.portos.bo.model.Avviso} interface instead. * use the {@link it.tref.liferay.portos.bo.model.Avviso} interface instead.
*/ */
private static final Log _log = LogFactoryUtil.getLog(AvvisoImpl.class);
@Override @Override
public String getFullDescription() throws PortalException, SystemException { public String getDescriptionOggettoProtocollo() throws PortalException, SystemException {
String tipoDocumento = AvvisoUtil.getAllTipoDocumento().containsKey(this.getTipoDocumento()) ? AvvisoUtil IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId());
.getAllTipoDocumento().get(this.getTipoDocumento()) return getDescriptionOggettoProtocollo(intPratica.getTipoProcedura());
: "label.admingeniocivile.avviso.tipoDocumento.avvisomanuale";
String fullDescription = LanguageUtil.get(LocaleUtil.ITALIAN, tipoDocumento);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId());
if (intPratica.getTipoRichiesta() == Constants.VIARCH) {
switch (this.getTipoDocumento()) {
case StatoPraticaConstants.AUTORIZZATA:
case StatoPraticaConstants.CONFORME:
return "Avviso di "
+ LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-"
+ StatoPraticaConstants.VIARCH_APERTO);
case StatoPraticaConstants.NON_AUTORIZZATA:
case StatoPraticaConstants.NON_CONFORME:
return "Avviso di "
+ LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-"
+ StatoPraticaConstants.VIARCH_CHIUSO);
}
}
if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) {
if (this.getClassName().equals(DettPratica.class.getName())) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(this.getClassPk());
if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
fullDescription += " di <strong>" + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-12")
+ "</strong>";
} else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica
.getTipoIntegrazione())) {
fullDescription += " di <strong>" + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-05")
+ " n° " + dettPratica.getIntegrazione() + "</strong>";
} else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
fullDescription += " di <strong>" + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-13")
+ " n° " + dettPratica.getVarianteNumero() + "</strong>";
}
} else if (this.getClassName().equals(FineLavori.class.getName())) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(this.getClassPk());
fullDescription += " di <strong>"
+ LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-"
+ (fineLavori.getParziale() ? "09" : "07")) + " n° " + fineLavori.getNumero()
+ "</strong>";
} else if (this.getClassName().equals(Collaudo.class.getName())) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(this.getClassPk());
fullDescription += " di <strong>"
+ LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-"
+ (collaudo.getParziale() ? "10" : "08")) + " n° " + collaudo.getNumero() + "</strong>";
}
} else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.CONFORME)
|| this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) {
return LanguageUtil.get(
LocaleUtil.ITALIAN,
AvvisoUtil.getAllTipoDocumento().get(
PraticaUtil.getStatoPraticaCode(this.getTipoDocumento(), intPratica)));
}
return fullDescription;
} }
@Override @Override
@ -163,13 +133,6 @@ public class AvvisoImpl extends AvvisoBaseImpl {
return fullDescription.replace("Avviso di ", StringPool.BLANK); return fullDescription.replace("Avviso di ", StringPool.BLANK);
} }
@Override
public String getDescriptionOggettoProtocollo() throws PortalException, SystemException {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId());
return getDescriptionOggettoProtocollo(intPratica.getTipoProcedura());
}
@Override @Override
public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException { public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException {
@ -180,6 +143,130 @@ public class AvvisoImpl extends AvvisoBaseImpl {
return null; return null;
} }
@Override
public String getFullDescription() throws PortalException, SystemException {
String tipoDocumento = AvvisoUtil.getAllTipoDocumento().containsKey(this.getTipoDocumento()) ? AvvisoUtil
.getAllTipoDocumento().get(this.getTipoDocumento())
: "label.admingeniocivile.avviso.tipoDocumento.avvisomanuale";
String fullDescription = LanguageUtil.get(LocaleUtil.ITALIAN, tipoDocumento);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(this.getIntPraticaId());
if (intPratica.getTipoRichiesta() == Constants.VIARCH) {
switch (this.getTipoDocumento()) {
case StatoPraticaConstants.AUTORIZZATA:
case StatoPraticaConstants.CONFORME:
return "Avviso di "
+ LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-"
+ StatoPraticaConstants.VIARCH_APERTO);
case StatoPraticaConstants.NON_AUTORIZZATA:
case StatoPraticaConstants.NON_CONFORME:
return "Avviso di "
+ LanguageUtil.get(LocaleUtil.ITALIAN, "stato-pratica-"
+ StatoPraticaConstants.VIARCH_CHIUSO);
}
}
if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.VIDIMATA)) {
if (this.getClassName().equals(DettPratica.class.getName())) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(this.getClassPk());
if (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
fullDescription += " di <strong>" + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-12")
+ "</strong>";
} else if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica
.getTipoIntegrazione())) {
fullDescription += " di <strong>" + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-05")
+ " n° " + dettPratica.getIntegrazione() + "</strong>";
} else if (TipoIntegrazioneUtil.VARIANTE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
fullDescription += " di <strong>" + LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-13")
+ " n° " + dettPratica.getVarianteNumero() + "</strong>";
}
} else if (this.getClassName().equals(FineLavori.class.getName())) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(this.getClassPk());
fullDescription += " di <strong>"
+ LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-"
+ (fineLavori.getParziale() ? "09" : "07")) + " n° " + fineLavori.getNumero()
+ "</strong>";
} else if (this.getClassName().equals(Collaudo.class.getName())) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(this.getClassPk());
fullDescription += " di <strong>"
+ LanguageUtil.get(LocaleUtil.ITALIAN, "label-integrazione-"
+ (collaudo.getParziale() ? "10" : "08")) + " n° " + collaudo.getNumero() + "</strong>";
}
} else if (this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.CONFORME)
|| this.getTipoDocumento().equalsIgnoreCase(StatoPraticaConstants.NON_CONFORME)) {
return LanguageUtil.get(
LocaleUtil.ITALIAN,
AvvisoUtil.getAllTipoDocumento().get(
PraticaUtil.getStatoPraticaCode(this.getTipoDocumento(), intPratica)));
}
return fullDescription;
}
// ADT
@Override
public void invioNotificaAssegnazioneIstruttore() throws PortalException, SystemException {
_log.info("start invioNotificaAssegnazioneIstruttore: avviso_id = " + getAvvisoId() + " - IntPraticaId = "
+ getIntPraticaId());
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(getClassPk());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
if (getControlloPraticaId() == 0) {
_log.info("invioNotificaAssegnazioneIstruttore - skip invio email - controllopratica non trovato per avviso_id = "
+ getAvvisoId());
AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(getAvvisoId(), true);
return;
}
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
.getControlloPratica(getControlloPraticaId());
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(controlloPratica.getCompanyId());
serviceContext.setScopeGroupId(controlloPratica.getGroupId());
serviceContext.setUserId(controlloPratica.getUserId());
User tecnicoIstruttore = intPratica.recuperaTecnicoIstruttore();
if (tecnicoIstruttore == null) {
_log.info("invioNotificaAssegnazioneIstruttore - skip invio email - tecnicoIstruttore non trovato per avviso_id = "
+ getAvvisoId());
AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(getAvvisoId(), true);
return;
}
String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
// recupero dati
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Assegnazione Istruttoria");
templateVariables.put(
"dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
intPratica.getStatusDate() != null ? intPratica.getStatusDate() : new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = IntPratica.class.getName();
long classPk = intPratica.getIntPraticaId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables, null,
serviceContext);
AvvisoLocalServiceUtil.updateAvvisoInviatoTecnico(getAvvisoId(), true);
}
@Override
public String translateTipoDocumento() throws PortalException, SystemException {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId());
return translateTipoDocumento(intPratica.getTipoProcedura());
}
@Override @Override
public String translateTipoDocumento(String tipoProcedura) throws PortalException, SystemException { public String translateTipoDocumento(String tipoProcedura) throws PortalException, SystemException {
@ -208,11 +295,4 @@ public class AvvisoImpl extends AvvisoBaseImpl {
} }
return tipoDocumento; return tipoDocumento;
} }
@Override
public String translateTipoDocumento() throws PortalException, SystemException {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId());
return translateTipoDocumento(intPratica.getTipoProcedura());
}
} }

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java

@ -11,6 +11,8 @@ package it.tref.liferay.portos.bo.model.impl;
import java.io.Serializable; import java.io.Serializable;
import java.util.Map; 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.JSONDeserializer;
import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
@ -43,4 +45,9 @@ public class DelegaImpl extends DelegaBaseImpl {
} }
return deserializer.deserialize(dichiarazioni); return deserializer.deserialize(dichiarazioni);
} }
public boolean hasCambioStatoDelega(long userId) throws PortalException, SystemException {
return true;
}
} }

159
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java

@ -9,6 +9,8 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.mwg.sismica.bo.shared.util.AsseverazioniUtil;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.DelegheUtil;
import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.Delega;
@ -26,9 +28,9 @@ 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.Constants;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; 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.SezioniUtil;
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.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
@ -246,22 +248,42 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
return hasAsseverazioniAttive() return hasAsseverazioniAttive()
|| (getStatus() == WorkflowConstants.STATUS_DRAFT || (getStatus() == WorkflowConstants.STATUS_DRAFT
&& SoggettoLocalServiceUtil.countValidTmpByIntPratica(getIntPraticaId()) > 0 && SoggettoLocalServiceUtil.countValidTmpByIntPratica(getIntPraticaId()) > 0
&& praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId())); && praticaIsCompleta() && !hasDelegheCompilazioneAttive());
}
@Override
public boolean canCompilaDomanda(long userId) throws PortalException, SystemException {
boolean controllo = false;
User user = UserLocalServiceUtil.getUser(userId);
List<Delega> 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 = userId == getUserId();
} else {
controllo = false;
for (Delega delega : deleghe) {
if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) {
controllo = true;
break;
}
}
}
return controllo;
} }
@Override @Override
public boolean canCompleteDettPraticaEsente() throws SystemException, PortalException { public boolean canCompleteDettPraticaEsente() throws SystemException, PortalException {
return praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId()) return praticaIsCompleta() && !hasDelegheCompilazioneAttive() && allAsseverazioniCompleted() && !isCompleta()
&& allAsseverazioniCompleted() && !isCompleta()
&& !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId()); && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId());
} }
@Override @Override
public boolean canCompleteIntegrazione() throws SystemException, PortalException { public boolean canCompleteIntegrazione() throws SystemException, PortalException {
return praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId()) return praticaIsCompleta() && !hasDelegheCompilazioneAttive() && allAsseverazioniCompleted()
&& allAsseverazioniCompleted()
&& IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId()) && IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId())
&& getStatus() != WorkflowConstants.STATUS_APPROVED; && getStatus() != WorkflowConstants.STATUS_APPROVED;
} }
@ -275,6 +297,12 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
&& TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(getTipoIntegrazione()); && TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(getTipoIntegrazione());
} }
@Override
public boolean canDoPayment(long userId) throws PortalException, SystemException {
return canCompilaDomanda(userId) || hasDelegaPagamento(userId);
}
private boolean checkAsseverazioniRichiestaOriginaria(String tipoSoggetto) throws SystemException { private boolean checkAsseverazioniRichiestaOriginaria(String tipoSoggetto) throws SystemException {
List<Soggetto> soggettiPerTipologia = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto( List<Soggetto> soggettiPerTipologia = SoggettoLocalServiceUtil.findByDettPratica_TipologiaSoggetto(
@ -463,6 +491,75 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
return firme; return firme;
} }
@Override
public Soggetto getPersonaDelegaCompilazioneDomanda() throws SystemException, PortalException {
Soggetto soggetto = null;
if (praticaIsEditable()) {
List<Delega> deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(getIntPraticaId(),
DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
if (!deleghe.isEmpty()) {
for (Delega delega : deleghe) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(
getDettPraticaId(), delega.getCodiceFiscale());
for (Soggetto soggettoTmp : soggetti) {
soggetto = soggettoTmp;
}
}
}
}
return soggetto;
}
@Override
public Soggetto getPersonaDelegaCompilazioneSezioneGeologica() throws SystemException, PortalException {
Soggetto soggetto = null;
if (praticaIsEditable()) {
List<Delega> deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(getIntPraticaId(),
DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
if (!deleghe.isEmpty()) {
for (Delega delega : deleghe) {
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByDettPratica_CodiceFiscale(
getDettPraticaId(), delega.getCodiceFiscale());
for (Soggetto soggettoTmp : soggetti) {
soggetto = soggettoTmp;
}
}
} else {
soggetto = getPersonaDelegaCompilazioneDomanda();
}
}
return soggetto;
}
@Override
public String getTipoReport(String tipoDocumento) {
String tipoReport = null;
try {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId());
if (Validator.isNull(getTipoIntegrazione())
|| (Validator.isNotNull(getTipoIntegrazione()) && getTipoIntegrazione().equals(
TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))) {}
if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE)
&& (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)
|| tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE)
|| tipoDocumento.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)
|| tipoDocumento.equals(StatoPraticaConstants.PERIZIA_SANZIONE) || tipoDocumento
.equals(StatoPraticaConstants.DECRETO_SANZIONE))) {
tipoReport = AvvisoUtil.TIPO_REPORT_AUTORIZZAZIONE;
} else {
tipoReport = AvvisoUtil.TIPO_REPORT_CONTROLLO_OBBLIGATORIO;
}
} catch (SystemException | PortalException e) {
_log.warn(e, e);
}
return tipoReport;
}
@Override @Override
public boolean hasAnnullaAsseverazioni(long userId) throws SystemException { public boolean hasAnnullaAsseverazioni(long userId) throws SystemException {
@ -483,6 +580,14 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
AsseverazioniUtil.STATO_ASSEGNATA, AsseverazioniUtil.STATO_ESEGUITA }) > 0; AsseverazioniUtil.STATO_ASSEGNATA, AsseverazioniUtil.STATO_ESEGUITA }) > 0;
} }
@Override
public boolean hasDelegaAttiva(long userId) throws PortalException, SystemException {
User user = UserLocalServiceUtil.getUser(userId);
return DelegaLocalServiceUtil.countByDettPratica_CodiceFiscale_InEsito(getDettPraticaId(),
user.getScreenName(), new String[] { DelegheUtil.STATO_ASSEGNATA }) > 0;
}
@Override @Override
public boolean hasDelegaCompilazioneDomanda(long userId) throws PortalException, SystemException { public boolean hasDelegaCompilazioneDomanda(long userId) throws PortalException, SystemException {
@ -552,6 +657,39 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
return controllo; return controllo;
} }
@Override
public boolean hasDelegaPagamento(long userId) throws PortalException, SystemException {
boolean controllo = false;
User user = UserLocalServiceUtil.getUser(userId);
List<Delega> deleghe = DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(getIntPraticaId(),
DelegheUtil.TIPO_PAGAMENTO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null);
if (deleghe.isEmpty()) {
if (user.getUserId() == getUserId()) {
controllo = true;
} else {
controllo = false;
}
} else {
controllo = false;
for (Delega delega : deleghe) {
if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) {
controllo = true;
}
}
}
return controllo;
}
@Override
public boolean hasDelegheCompilazioneAttive() throws SystemException {
return DelegaLocalServiceUtil.countByDettPratica_Tipologia_InEsito(getDettPraticaId(), new String[] {
DelegheUtil.TIPO_COMPILAZIONE, DelegheUtil.TIPO_GEOLOGO, DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI },
new String[] { DelegheUtil.STATO_ASSEGNATA }) > 0;
}
@Override @Override
public boolean hasRichiediAsseverazioni(long userId) throws SystemException, PortalException { public boolean hasRichiediAsseverazioni(long userId) throws SystemException, PortalException {
@ -608,9 +746,9 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
tipoSoggetto)); tipoSoggetto));
List<String> cfNuoviSoggetti = SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto( List<String> cfNuoviSoggetti = SoggettoLocalServiceUtil.getCfValidTmpByDettPratica_TipologiaSoggetto(
getDettPraticaId(), tipoSoggetto); getDettPraticaId(), tipoSoggetto);
List<String> nuoviDelegati = DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito( List<String> nuoviDelegati = new ArrayList<>(DelegaLocalServiceUtil.findCfByDettPratica_Tipologia_InEsito(
getDettPraticaId(), new String[] { tipoSoggetto }, getDettPraticaId(), new String[] { tipoSoggetto },
new String[] { AsseverazioniUtil.STATO_ESEGUITA }); new String[] { AsseverazioniUtil.STATO_ESEGUITA }));
nuoviDelegati.removeAll(cfNuoviSoggetti); nuoviDelegati.removeAll(cfNuoviSoggetti);
for (String cfDelegato : nuoviDelegati) { for (String cfDelegato : nuoviDelegati) {
nuoviSoggetti.addAll(SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(getIntPraticaId(), nuoviSoggetti.addAll(SoggettoLocalServiceUtil.getValidTmpByIntPratica_CodiceFiscale(getIntPraticaId(),
@ -1188,9 +1326,8 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
@Override @Override
public boolean pagamentoIsEnable() throws SystemException, PortalException { public boolean pagamentoIsEnable() throws SystemException, PortalException {
return praticaIsCompleta() && !DelegheUtil.hasDelegheCompilazioneAttive(getDettPraticaId()) return praticaIsCompleta() && !hasDelegheCompilazioneAttive() && allAsseverazioniCompleted()
&& allAsseverazioniCompleted() // se è un'integrazione non si paga
// se è un'integrazione non si paga
&& !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId()); && !IntPraticaLocalServiceUtil.hasRichiestaIntegrazioneAttiva(getIntPraticaId());
} }

85
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java

@ -8,10 +8,27 @@
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
import it.mwg.sismica.bo.shared.util.DelegheUtil;
import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.Delega;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.service.CollaudoServiceUtil;
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.FineLavoriServiceUtil;
import java.util.ArrayList;
import java.util.List;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.User;
import com.liferay.portal.service.UserLocalServiceUtil;
import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portlet.documentlibrary.model.DLFileEntry; import com.liferay.portlet.documentlibrary.model.DLFileEntry;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
@ -36,6 +53,23 @@ public class DocPraticaImpl extends DocPraticaBaseImpl {
*/ */
public DocPraticaImpl() {} public DocPraticaImpl() {}
private List<Delega> findDeleghe(long intPraticaid, boolean sezioneGeologica) throws SystemException {
List<Delega> deleghe = new ArrayList<Delega>();
deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid,
DelegheUtil.TIPO_COMPILAZIONE, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null));
deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid,
DelegheUtil.TIPO_FIRMA_INSERIMENTO_ALLEGATI, new String[] { DelegheUtil.STATO_ASSEGNATA },
QueryUtil.ALL_POS, QueryUtil.ALL_POS, null));
if (sezioneGeologica) {
deleghe.addAll(DelegaLocalServiceUtil.findByIntPratica_Tipologia_InEsito(intPraticaid,
DelegheUtil.TIPO_GEOLOGO, new String[] { DelegheUtil.STATO_ASSEGNATA }, QueryUtil.ALL_POS,
QueryUtil.ALL_POS, null));
}
return deleghe;
}
@Override @Override
public String getFileName() throws PortalException, SystemException { public String getFileName() throws PortalException, SystemException {
@ -55,4 +89,55 @@ public class DocPraticaImpl extends DocPraticaBaseImpl {
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getDlFileEntryId()); FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getDlFileEntryId());
return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true"); return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true");
} }
@Override
public boolean hasDelegaFirma(long userId, boolean sezioneGeologica) throws PortalException, SystemException {
boolean controllo = true;
DettPratica dettPratica = null;
if (DettPratica.class.getName().equals(getClassName())) {
dettPratica = DettPraticaServiceUtil.getDettPratica(getClassPk());
controllo = dettPratica.praticaIsEditable();
}
if (controllo) {
User user = UserLocalServiceUtil.getUser(userId);
long owner = 0L;
long intPraticaId = 0L;
if (DettPratica.class.getName().equals(getClassName())) {
intPraticaId = dettPratica.getIntPraticaId();
owner = dettPratica.getUserId();
} else if (FineLavori.class.getName().equals(getClassName())) {
FineLavori fineLavori = FineLavoriServiceUtil.getFineLavori(getClassPk());
owner = fineLavori.getUserId();
} else if (Collaudo.class.getName().equals(getClassName())) {
Collaudo collaudo = CollaudoServiceUtil.getCollaudo(getClassPk());
owner = collaudo.getUserId();
}
if (user.getUserId() == owner) {
controllo = true;
} else if (DettPratica.class.getName().equals(getClassName())) {
List<Delega> deleghe = findDeleghe(intPraticaId, sezioneGeologica);
controllo = false;
if (!deleghe.isEmpty()) {
controllo = false;
for (Delega delega : deleghe) {
if (delega.getCodiceFiscale().equalsIgnoreCase(user.getScreenName())) {
controllo = true;
break;
}
}
}
} else {
controllo = false;
}
}
return controllo;
}
public boolean hasDelegaDeleteFile(long userId, boolean sezioneGeologica) throws PortalException, SystemException {
// TODO completare e controllare
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(getClassPk());
return dettPratica.praticaIsEditable();
}
} }

104
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java

@ -40,7 +40,8 @@ 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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil; import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
@ -51,6 +52,8 @@ import org.apache.commons.lang.StringUtils;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.util.HtmlUtil; import com.liferay.portal.kernel.util.HtmlUtil;
@ -58,6 +61,8 @@ import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.workflow.WorkflowConstants; import com.liferay.portal.kernel.workflow.WorkflowConstants;
import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil;
/** /**
@ -224,8 +229,7 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
if (Validator.isNull(dettPratica)) { if (Validator.isNull(dettPratica)) {
return false; return false;
} }
return dettPratica.pagamentoIsEnable() return dettPratica.pagamentoIsEnable() && dettPratica.hasDelegaPagamento(userId);
&& DelegheUtil.hasDelegaPagamento(userId, dettPratica.getDettPraticaId());
} }
@Override @Override
@ -495,6 +499,19 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
return Validator.isNotNull(dettPratica); return Validator.isNotNull(dettPratica);
} }
@Override
public List<Soggetto> getGeologi() throws SystemException {
List<Soggetto> geologi = new ArrayList<>();
List<Soggetto> soggetti = SoggettoLocalServiceUtil.findByIntPratica(getIntPraticaId());
for (Soggetto soggetto : soggetti) {
if (soggetto.getTipologiaSoggetto().equalsIgnoreCase(TipoSoggettoUtil.GEOLOGO)
&& Validator.isNull(soggetto.getSostituitoDa()))
geologi.add(soggetto);
}
return geologi;
}
private List<String> getSignaturePerSubject(List<String> signatures, String tipoSoggetto, long docPraticaClassPk) private List<String> getSignaturePerSubject(List<String> signatures, String tipoSoggetto, long docPraticaClassPk)
throws SystemException { throws SystemException {
@ -511,6 +528,24 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
return signaturesPerSubject; return signaturesPerSubject;
} }
@Override
public boolean hasAnnullaDelega(long userId) throws PortalException, SystemException {
return hasCreazioneDelega(userId);
}
@Override
public boolean hasCreazioneDelega(long userId) throws PortalException, SystemException {
return true;
}
@Override
public boolean hasDeleteDelega(long userId) throws PortalException, SystemException {
return hasCreazioneDelega(userId);
}
@Override @Override
public boolean hasRichiestaIntegrazioneAttiva() { public boolean hasRichiestaIntegrazioneAttiva() {
@ -521,6 +556,56 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
|| StatoPraticaConstants.PERIZIA_SANZIONE.equals(stato); || StatoPraticaConstants.PERIZIA_SANZIONE.equals(stato);
} }
public void invioMailNotifica(long dettPraticaId, long classPk, String className, String[] to, String[] cc,
String[] ccn, String templateName, JSONObject templateVariables, List<FileAttachment> allegati,
ServiceContext serviceContext) throws PortalException, SystemException {
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(dettPraticaId);
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
User titolaredigitaleUser = UserLocalServiceUtil.getUser(getUserId());
List<Soggetto> titolari = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale(getIntPraticaId(),
titolaredigitaleUser.getScreenName());
String titolareDigitale = StringPool.BLANK;
String titolareDigitaleMail = StringPool.BLANK;
String titolareDigitaleRoles = StringPool.BLANK;
if (!titolari.isEmpty()) {
titolareDigitale = titolari.get(0).getTitle();
titolareDigitaleMail = titolari.get(0).getEmail();
for (Soggetto titolare : titolari) {
titolareDigitaleRoles += LanguageUtil.get(LocaleUtil.ITALIAN,
"gc-soggetto-" + titolare.getTipologiaSoggetto())
+ StringPool.SPACE;
}
}
String committenteTitle = StringPool.BLANK;
String descIntervento = StringPool.BLANK;
String tempId = StringPool.BLANK;
if (Validator.isNotNull(dettPratica)) {
tempId = dettPratica.getTitle();
descIntervento = dettPratica.getDescLongIntervento();
Soggetto committentePrincipale = SoggettoLocalServiceUtil
.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(getIntPraticaId(),
dettPratica.getCodiceFiscalePrincipaleCommittente(), TipoSoggettoUtil.COMMITTENTE);
if (Validator.isNotNull(committentePrincipale)) {
committenteTitle = committentePrincipale.getTitle();
}
}
templateVariables.put("tempId", tempId);
templateVariables.put("praticaNum", getNumeroProgetto());
templateVariables.put("titolareDigitale", titolareDigitale);
templateVariables.put("titolareDigitaleRoles", titolareDigitaleRoles);
templateVariables.put("titolareDigitaleMail", titolareDigitaleMail);
templateVariables.put("intervento", descIntervento);
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
templateVariables.put("committente", committenteTitle);
MailManagerUtil.sendMailByTemplatName(className, classPk, templateName, to, cc, ccn, templateVariables,
allegati, serviceContext);
}
@Override @Override
public boolean isAllowedAction(String action) throws SystemException { public boolean isAllowedAction(String action) throws SystemException {
@ -618,6 +703,19 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
|| getStatus() == WorkflowConstants.STATUS_INCOMPLETE; || getStatus() == WorkflowConstants.STATUS_INCOMPLETE;
} }
@Override
public User recuperaTecnicoIstruttore() throws PortalException, SystemException {
long statusByUserId = getStatusByUserId();
User istruttoreUser = null;
if (Validator.isNotNull(statusByUserId) && getStatus() != WorkflowConstants.STATUS_DRAFT) {
istruttoreUser = UserLocalServiceUtil.getUser(statusByUserId);
_log.info("istruttore pratica id=" + getIntPraticaId() + StringPool.COLON + istruttoreUser.getScreenName()
+ StringPool.SPACE + istruttoreUser.getEmailAddress());
}
return istruttoreUser;
}
@Override @Override
public boolean signaturesContains(String tipoSoggetto, List<String> signatures) throws SystemException { public boolean signaturesContains(String tipoSoggetto, List<String> signatures) throws SystemException {

53
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaPortlet.java

@ -1,6 +1,7 @@
package it.tref.liferay.portos.bo.portlet; package it.tref.liferay.portos.bo.portlet;
import it.mwg.sismica.bo.search.ControlloPraticaAdvancedSearch; import it.mwg.sismica.bo.search.ControlloPraticaAdvancedSearch;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
@ -20,9 +21,8 @@ import it.tref.liferay.portos.bo.service.permission.IntPraticaPermission;
import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean; import it.tref.liferay.portos.bo.shared.bean.IstruttoreBean;
import it.tref.liferay.portos.bo.shared.util.ActionKeys; import it.tref.liferay.portos.bo.shared.util.ActionKeys;
import it.tref.liferay.portos.bo.shared.util.Constants; import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
@ -57,7 +57,9 @@ import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.util.CSVUtil; import com.liferay.portal.kernel.util.CSVUtil;
import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
@ -85,7 +87,7 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
public class GestioneAttivitaPortlet extends MVCPortlet { public class GestioneAttivitaPortlet extends MVCPortlet {
private Log _log = LogFactoryUtil.getLog(GestioneAttivitaPortlet.class); private static final Log _log = LogFactoryUtil.getLog(GestioneAttivitaPortlet.class);
public void search2URL(ActionRequest actionRequest, ActionResponse actionResponse) { public void search2URL(ActionRequest actionRequest, ActionResponse actionResponse) {
@ -249,13 +251,56 @@ public class GestioneAttivitaPortlet extends MVCPortlet {
ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId, ParereGeologo parereGeologo = ParereGeologoServiceUtil.addParereGeologo(geologoId, intPraticaId,
dettPraticaId, noteRichiedente, serviceContext); dettPraticaId, noteRichiedente, serviceContext);
// ADT: aggiunta notifica geologo // ADT: aggiunta notifica geologo
MailUtil.invioNotificaGeologo(parereGeologo, serviceContext); invioNotificaGeologo(parereGeologo, serviceContext);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error(e, e); _log.error(e, e);
SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere"); SessionErrors.add(actionRequest, "error-aggiunta-richiesta-parere");
} }
} }
private static void invioNotificaGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) {
_log.info("start invioNotificaGeologo parereGeologo=" + parereGeologo.getParereGeologoId());
try {
User geologo = UserLocalServiceUtil.getUser(parereGeologo.getGeologoUserId());
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(parereGeologo.getIntPraticaId());
_log.info("email geologo = " + geologo.getEmailAddress());
String[] to = { geologo.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", geologo.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Richiesta Parere");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologo.getParereGeologoId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-GEOLOGO", to, cc, ccn,
templateVariables, null, serviceContext);
} catch (Exception e) {
_log.error(
"invioNotificaGeologo - Errore invio mail al geologo - ParereGeologoId="
+ parereGeologo.getParereGeologoId(), e);
}
}
public void aggiungiDettPraticheAlControllo(ActionRequest actionRequest, ActionResponse actionResponse) public void aggiungiDettPraticheAlControllo(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException { throws PortalException, SystemException {

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java

@ -28,7 +28,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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.io.Serializable; import java.io.Serializable;
@ -103,7 +102,7 @@ public class ReportAvvisoBeanBuilder {
} }
} }
bean.setSoggetti(soggettiBean); bean.setSoggetti(soggettiBean);
String tipo = AvvisoUtil.getTipoReport(dettPratica, avviso.getTipoDocumento()); String tipo = dettPratica.getTipoReport(avviso.getTipoDocumento());
bean.setTipo(tipo); bean.setTipo(tipo);
int numeroProtocolloIntegrazione = DettPraticaLocalServiceUtil int numeroProtocolloIntegrazione = DettPraticaLocalServiceUtil
.countByIntPraticaId_TipoIntegrazione_Completa(intPraticaId, .countByIntPraticaId_TipoIntegrazione_Completa(intPraticaId,

2
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; package it.tref.liferay.portos.bo.scheduler;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.shared.util.WorkflowConstants;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
@ -10,7 +11,6 @@ import it.tref.liferay.portos.bo.service.ConfigurazioneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil; import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; 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.ProtocollazioneUtil;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; 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.ReportDto;

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java

@ -1,8 +1,8 @@
package it.tref.liferay.portos.bo.scheduler; package it.tref.liferay.portos.bo.scheduler;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil; import it.tref.liferay.portos.bo.service.AvvisoLocalServiceUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; 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.ReportDto;
import it.tref.liferay.portos.report.shared.dto.ReportResultDto; import it.tref.liferay.portos.report.shared.dto.ReportResultDto;

18
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; package it.tref.liferay.portos.bo.scheduler;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.shared.util.WorkflowConstants;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
@ -25,8 +26,6 @@ import it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; 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.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil; import it.tref.liferay.portos.kaleo.service.FormLogLocalServiceUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment; import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
@ -188,7 +187,7 @@ public class SchedulerInvioDocumento implements MessageListener {
for (Avviso avviso : avvisi) { for (Avviso avviso : avvisi) {
try { try {
// trattandosi solo di avvisi con tipo documento CI oppure SP si tratta di assegnazione istruttore // trattandosi solo di avvisi con tipo documento CI oppure SP si tratta di assegnazione istruttore
MailUtil.invioNotificaAssegnazioneIstruttore(avviso); avviso.invioNotificaAssegnazioneIstruttore();
} catch (Exception e) { } catch (Exception e) {
_log.error("Error", e); _log.error("Error", e);
} }
@ -284,8 +283,8 @@ public class SchedulerInvioDocumento implements MessageListener {
serviceContext.setScopeGroupId(avviso.getGroupId()); serviceContext.setScopeGroupId(avviso.getGroupId());
serviceContext.setCompanyId(avviso.getCompanyId()); serviceContext.setCompanyId(avviso.getCompanyId());
serviceContext.setUserId(avviso.getUserId()); serviceContext.setUserId(avviso.getUserId());
MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to, intPratica.invioMailNotifica(dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to, cc, ccn,
cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, null, serviceContext); "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, null, serviceContext);
if (null != committentePrincipale) { if (null != committentePrincipale) {
to = new String[] { committentePrincipale.getEmail() }; to = new String[] { committentePrincipale.getEmail() };
List<FileAttachment> allegati = new ArrayList<FileAttachment>(); List<FileAttachment> allegati = new ArrayList<FileAttachment>();
@ -311,8 +310,8 @@ public class SchedulerInvioDocumento implements MessageListener {
fileAttachment.generateFile(); fileAttachment.generateFile();
allegati.add(fileAttachment); allegati.add(fileAttachment);
} }
MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), intPratica.invioMailNotifica(dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to, cc, ccn,
to, cc, ccn, "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, allegati, serviceContext); "NOTIFICA-SOGGETTI-ATTIVI", templateVariables, allegati, serviceContext);
String[] suapEnabled = new String[] { StatoPraticaConstants.CONFORME, StatoPraticaConstants.NON_CONFORME }; String[] suapEnabled = new String[] { StatoPraticaConstants.CONFORME, StatoPraticaConstants.NON_CONFORME };
if ((intPratica.isAutorizzazione() && ArrayUtil.contains(suapEnabled, avviso.getTipoDocumento())) if ((intPratica.isAutorizzazione() && ArrayUtil.contains(suapEnabled, avviso.getTipoDocumento()))
|| (StatoPraticaConstants.VIDIMATA.equals(avviso.getTipoDocumento()))) { || (StatoPraticaConstants.VIDIMATA.equals(avviso.getTipoDocumento()))) {
@ -332,9 +331,8 @@ public class SchedulerInvioDocumento implements MessageListener {
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format( FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
intPratica.getDtPratica())); intPratica.getDtPratica()));
if (to.length > 0 && to[0] != StringPool.BLANK) { if (to.length > 0 && to[0] != StringPool.BLANK) {
MailUtil.invioMailNotifica(intPraticaId, dettPratica.getDettPraticaId(), avvisoId, intPratica.invioMailNotifica(dettPratica.getDettPraticaId(), avvisoId, Avviso.class.getName(), to,
Avviso.class.getName(), to, cc, ccn, "INVIO-SUAP", templateVariables, allegati, cc, ccn, "INVIO-SUAP", templateVariables, allegati, serviceContext);
serviceContext);
} }
} }
} }

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java

@ -1,5 +1,6 @@
package it.tref.liferay.portos.bo.scheduler; package it.tref.liferay.portos.bo.scheduler;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.ControlloPratica; import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
@ -16,7 +17,6 @@ import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil; import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; 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.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.ProtocollazioneUtil; import it.tref.liferay.portos.bo.util.ProtocollazioneUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;

480
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java

@ -130,44 +130,27 @@ public class PagamentoLocalServiceClpInvoker {
_methodParameterTypes165 = new String[] { "java.lang.String" }; _methodParameterTypes165 = new String[] { "java.lang.String" };
_methodName170 = "getPagamenti"; _methodName170 = "addPagamento";
_methodParameterTypes170 = new String[] { }; _methodParameterTypes170 = new String[] {
_methodName171 = "createPagamentoId";
_methodParameterTypes171 = new String[] { };
_methodName172 = "addPagamento";
_methodParameterTypes172 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName173 = "addPagamentoAndUpdate";
_methodParameterTypes173 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "long", "java.lang.String", "java.lang.String", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName174 = "addPagamentoAndUpdate"; _methodName171 = "addPagamentoAndUpdate";
_methodParameterTypes174 = new String[] { _methodParameterTypes171 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String", "long",
"java.lang.String", "com.liferay.portal.service.ServiceContext" "java.lang.String", "com.liferay.portal.service.ServiceContext"
}; };
_methodName175 = "addPagamentoAndUpdate"; _methodName172 = "addPagamentoAndUpdate";
_methodParameterTypes175 = new String[] { _methodParameterTypes172 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String", "long",
@ -175,161 +158,206 @@ public class PagamentoLocalServiceClpInvoker {
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName177 = "updatePagamento"; _methodName174 = "addPagamentoAndUpdate";
_methodParameterTypes174 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"java.lang.String", "long", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
};
_methodName175 = "annullaPagamento";
_methodParameterTypes175 = new String[] { "long" };
_methodName176 = "countByClassPk";
_methodParameterTypes176 = new String[] { "long" };
_methodParameterTypes177 = new String[] { "long", "java.lang.String" }; _methodName177 = "countByCommittente_Mezzo";
_methodName178 = "updatePagamento"; _methodParameterTypes177 = new String[] {
"java.lang.String", "java.lang.String"
};
_methodName178 = "countByCommittente_Mezzo_Utilizzata";
_methodParameterTypes178 = new String[] { _methodParameterTypes178 = new String[] {
"long", "java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String", "java.lang.String"
}; };
_methodName179 = "updatePagamentoUtilizzata"; _methodName179 = "countByIntPratica";
_methodParameterTypes179 = new String[] { "long", "java.lang.String" }; _methodParameterTypes179 = new String[] { "long" };
_methodName180 = "annullaPagamento"; _methodName180 = "countByIntPratica_Visible";
_methodParameterTypes180 = new String[] { "long" }; _methodParameterTypes180 = new String[] { "long" };
_methodName181 = "findByCommittente_Mezzo"; _methodName181 = "countByMezzo_Utilizzata";
_methodParameterTypes181 = new String[] { _methodParameterTypes181 = new String[] {
"java.lang.String", "java.lang.String", "int", "int" "java.lang.String", "java.lang.String"
}; };
_methodName182 = "countByCommittente_Mezzo"; _methodName182 = "countByMezzo_Utilizzata_CreateDate";
_methodParameterTypes182 = new String[] { _methodParameterTypes182 = new String[] {
"java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String", "java.util.Date"
}; };
_methodName183 = "findByCommittente_Mezzo_Utilizzata"; _methodName183 = "countByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes183 = new String[] { _methodParameterTypes183 = new String[] {
"java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "java.lang.String", "boolean",
"int", "int" "java.util.Date"
}; };
_methodName184 = "countByCommittente_Mezzo_Utilizzata"; _methodName184 = "countInPending";
_methodParameterTypes184 = new String[] { _methodParameterTypes184 = new String[] { "java.util.Date" };
"java.lang.String", "java.lang.String", "java.lang.String"
_methodName186 = "createPagamentoId";
_methodParameterTypes186 = new String[] { };
_methodName189 = "deletePagamento";
_methodParameterTypes189 = new String[] { "long" };
_methodName190 = "deletePagamento";
_methodParameterTypes190 = new String[] {
"it.tref.liferay.portos.bo.model.Pagamento"
}; };
_methodName185 = "findByMezzo_Utilizzata"; _methodName192 = "findByClassPk";
_methodParameterTypes192 = new String[] { "long" };
_methodParameterTypes185 = new String[] { _methodName193 = "findByCommittente_Mezzo";
_methodParameterTypes193 = new String[] {
"java.lang.String", "java.lang.String", "int", "int" "java.lang.String", "java.lang.String", "int", "int"
}; };
_methodName186 = "countByMezzo_Utilizzata"; _methodName194 = "findByCommittente_Mezzo_Utilizzata";
_methodParameterTypes186 = new String[] { _methodParameterTypes194 = new String[] {
"java.lang.String", "java.lang.String" "java.lang.String", "java.lang.String", "java.lang.String",
"int", "int"
}; };
_methodName187 = "findByMezzo_Utilizzata_CreateDate"; _methodName195 = "findByIntPratica";
_methodParameterTypes187 = new String[] { _methodParameterTypes195 = new String[] { "long" };
"java.lang.String", "java.lang.String", "java.util.Date", "int",
"int" _methodName196 = "findByIntPratica_Visible";
_methodParameterTypes196 = new String[] { "long" };
_methodName197 = "findByMezzo_Utilizzata";
_methodParameterTypes197 = new String[] {
"java.lang.String", "java.lang.String", "int", "int"
}; };
_methodName188 = "countByMezzo_Utilizzata_EmailPending_CreateDate"; _methodName198 = "findByMezzo_Utilizzata_CreateDate";
_methodParameterTypes188 = new String[] { _methodParameterTypes198 = new String[] {
"java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "java.util.Date", "int",
"java.util.Date" "int"
}; };
_methodName189 = "findByMezzo_Utilizzata_EmailPending_CreateDate"; _methodName199 = "findByMezzo_Utilizzata_EmailPending_CreateDate";
_methodParameterTypes189 = new String[] { _methodParameterTypes199 = new String[] {
"java.lang.String", "java.lang.String", "boolean", "java.lang.String", "java.lang.String", "boolean",
"java.util.Date", "int", "int" "java.util.Date", "int", "int"
}; };
_methodName190 = "findInPending"; _methodName200 = "findInPending";
_methodParameterTypes190 = new String[] { _methodParameterTypes200 = new String[] {
"java.util.Date", "int", "int", "java.util.Date", "int", "int",
"com.liferay.portal.kernel.util.OrderByComparator" "com.liferay.portal.kernel.util.OrderByComparator"
}; };
_methodName191 = "countInPending"; _methodName201 = "getImportoBolli";
_methodParameterTypes191 = new String[] { "java.util.Date" }; _methodParameterTypes201 = new String[] {
"long", "long", "java.lang.String"
};
_methodName193 = "countByMezzo_Utilizzata_CreateDate"; _methodName202 = "getImportoBolli";
_methodParameterTypes193 = new String[] { _methodParameterTypes202 = new String[] {
"java.lang.String", "java.lang.String", "java.util.Date" "long", "long", "java.lang.String", "java.lang.String"
}; };
_methodName194 = "deletePagamento"; _methodName203 = "getPagamenti";
_methodParameterTypes194 = new String[] { "long" }; _methodParameterTypes203 = new String[] { };
_methodName195 = "deletePagamento"; _methodName204 = "nuovoPagamento";
_methodParameterTypes195 = new String[] { _methodParameterTypes204 = new String[] {
"it.tref.liferay.portos.bo.model.Pagamento" "java.lang.String", "long", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
}; };
_methodName196 = "updateEmailPendingPagamento"; _methodName205 = "pagamentiCompleted";
_methodParameterTypes196 = new String[] { "long", "boolean" };
_methodName199 = "countByClassPk";
_methodParameterTypes199 = new String[] { "long" }; _methodParameterTypes205 = new String[] { "long", "java.lang.String" };
_methodName200 = "findByClassPk"; _methodName206 = "pagamentiInitialized";
_methodParameterTypes200 = new String[] { "long" }; _methodParameterTypes206 = new String[] { "long", "java.lang.String" };
_methodName201 = "findByIntPratica"; _methodName207 = "sostituisciPagamento";
_methodParameterTypes201 = new String[] { "long" }; _methodParameterTypes207 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "com.liferay.portal.service.ServiceContext"
};
_methodName202 = "countByIntPratica"; _methodName208 = "updateEmailPendingPagamento";
_methodParameterTypes202 = new String[] { "long" }; _methodParameterTypes208 = new String[] { "long", "boolean" };
_methodName203 = "findByIntPratica_Visible"; _methodName209 = "updateOtf";
_methodParameterTypes203 = new String[] { "long" }; _methodParameterTypes209 = new String[] { "long", "boolean" };
_methodName204 = "countByIntPratica_Visible"; _methodName210 = "updatePagamento";
_methodParameterTypes204 = new String[] { "long" }; _methodParameterTypes210 = new String[] { "long", "java.lang.String" };
_methodName206 = "sostituisciPagamento"; _methodName211 = "updatePagamento";
_methodParameterTypes206 = new String[] { _methodParameterTypes211 = new String[] {
"long", "java.lang.String", "java.lang.String", "long", "java.lang.String", "java.lang.String"
"java.lang.String", "com.liferay.portal.service.ServiceContext"
}; };
_methodName207 = "updatePagamentoManuale"; _methodName212 = "updatePagamentoManuale";
_methodParameterTypes207 = new String[] { _methodParameterTypes212 = new String[] {
"long", "java.lang.String", "byte[][]", "java.lang.String", "long", "java.lang.String", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName208 = "updatePagamentoManualeFromImport"; _methodName213 = "updatePagamentoManualeFromImport";
_methodParameterTypes208 = new String[] { _methodParameterTypes213 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
_methodName209 = "updateOtf"; _methodName214 = "updatePagamentoUtilizzata";
_methodParameterTypes209 = new String[] { "long", "boolean" }; _methodParameterTypes214 = new String[] { "long", "java.lang.String" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -459,16 +487,6 @@ public class PagamentoLocalServiceClpInvoker {
if (_methodName170.equals(name) && if (_methodName170.equals(name) &&
Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes170, parameterTypes)) {
return PagamentoLocalServiceUtil.getPagamenti();
}
if (_methodName171.equals(name) &&
Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) {
return PagamentoLocalServiceUtil.createPagamentoId();
}
if (_methodName172.equals(name) &&
Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) {
return PagamentoLocalServiceUtil.addPagamento((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.addPagamento((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[3], (java.lang.String)arguments[4],
@ -478,19 +496,8 @@ public class PagamentoLocalServiceClpInvoker {
(com.liferay.portal.service.ServiceContext)arguments[9]); (com.liferay.portal.service.ServiceContext)arguments[9]);
} }
if (_methodName173.equals(name) && if (_methodName171.equals(name) &&
Arrays.deepEquals(_methodParameterTypes173, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes171, parameterTypes)) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4],
(java.lang.String)arguments[5], (java.lang.String)arguments[6],
((Long)arguments[7]).longValue(),
(java.lang.String)arguments[8],
(com.liferay.portal.service.ServiceContext)arguments[9]);
}
if (_methodName174.equals(name) &&
Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[3], (java.lang.String)arguments[4],
@ -501,8 +508,8 @@ public class PagamentoLocalServiceClpInvoker {
(com.liferay.portal.service.ServiceContext)arguments[10]); (com.liferay.portal.service.ServiceContext)arguments[10]);
} }
if (_methodName175.equals(name) && if (_methodName172.equals(name) &&
Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes172, parameterTypes)) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.addPagamentoAndUpdate(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4], (java.lang.String)arguments[3], (java.lang.String)arguments[4],
@ -514,164 +521,195 @@ public class PagamentoLocalServiceClpInvoker {
(com.liferay.portal.service.ServiceContext)arguments[11]); (com.liferay.portal.service.ServiceContext)arguments[11]);
} }
if (_methodName174.equals(name) &&
Arrays.deepEquals(_methodParameterTypes174, parameterTypes)) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[4],
(java.lang.String)arguments[5], (java.lang.String)arguments[6],
((Long)arguments[7]).longValue(),
(java.lang.String)arguments[8],
(com.liferay.portal.service.ServiceContext)arguments[9]);
}
if (_methodName175.equals(name) &&
Arrays.deepEquals(_methodParameterTypes175, parameterTypes)) {
return PagamentoLocalServiceUtil.annullaPagamento(((Long)arguments[0]).longValue());
}
if (_methodName176.equals(name) &&
Arrays.deepEquals(_methodParameterTypes176, parameterTypes)) {
return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue());
}
if (_methodName177.equals(name) && if (_methodName177.equals(name) &&
Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes177, parameterTypes)) {
return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0],
(java.lang.String)arguments[1]); (java.lang.String)arguments[1]);
} }
if (_methodName178.equals(name) && if (_methodName178.equals(name) &&
Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes178, parameterTypes)) {
return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2]); (java.lang.String)arguments[1], (java.lang.String)arguments[2]);
} }
if (_methodName179.equals(name) && if (_methodName179.equals(name) &&
Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes179, parameterTypes)) {
return PagamentoLocalServiceUtil.updatePagamentoUtilizzata(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue());
(java.lang.String)arguments[1]);
} }
if (_methodName180.equals(name) && if (_methodName180.equals(name) &&
Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes180, parameterTypes)) {
return PagamentoLocalServiceUtil.annullaPagamento(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue());
} }
if (_methodName181.equals(name) && if (_methodName181.equals(name) &&
Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes181, parameterTypes)) {
return PagamentoLocalServiceUtil.findByCommittente_Mezzo((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[1]);
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
} }
if (_methodName182.equals(name) && if (_methodName182.equals(name) &&
Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes182, parameterTypes)) {
return PagamentoLocalServiceUtil.countByCommittente_Mezzo((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1]); (java.lang.String)arguments[1], (java.util.Date)arguments[2]);
} }
if (_methodName183.equals(name) && if (_methodName183.equals(name) &&
Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes183, parameterTypes)) {
return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1],
((Integer)arguments[3]).intValue(), ((Boolean)arguments[2]).booleanValue(),
((Integer)arguments[4]).intValue()); (java.util.Date)arguments[3]);
} }
if (_methodName184.equals(name) && if (_methodName184.equals(name) &&
Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) {
return PagamentoLocalServiceUtil.countByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]);
(java.lang.String)arguments[1], (java.lang.String)arguments[2]);
}
if (_methodName185.equals(name) &&
Arrays.deepEquals(_methodParameterTypes185, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
} }
if (_methodName186.equals(name) && if (_methodName186.equals(name) &&
Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes186, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.createPagamentoId();
(java.lang.String)arguments[1]);
}
if (_methodName187.equals(name) &&
Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2],
((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue());
}
if (_methodName188.equals(name) &&
Arrays.deepEquals(_methodParameterTypes188, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(),
(java.util.Date)arguments[3]);
} }
if (_methodName189.equals(name) && if (_methodName189.equals(name) &&
Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes189, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue());
(java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(),
(java.util.Date)arguments[3],
((Integer)arguments[4]).intValue(),
((Integer)arguments[5]).intValue());
} }
if (_methodName190.equals(name) && if (_methodName190.equals(name) &&
Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes190, parameterTypes)) {
return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0], return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]);
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
} }
if (_methodName191.equals(name) && if (_methodName192.equals(name) &&
Arrays.deepEquals(_methodParameterTypes191, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) {
return PagamentoLocalServiceUtil.countInPending((java.util.Date)arguments[0]); return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue());
} }
if (_methodName193.equals(name) && if (_methodName193.equals(name) &&
Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) {
return PagamentoLocalServiceUtil.countByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0], return PagamentoLocalServiceUtil.findByCommittente_Mezzo((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2]); (java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
} }
if (_methodName194.equals(name) && if (_methodName194.equals(name) &&
Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) {
return PagamentoLocalServiceUtil.deletePagamento(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.findByCommittente_Mezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.lang.String)arguments[2],
((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue());
} }
if (_methodName195.equals(name) && if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
return PagamentoLocalServiceUtil.deletePagamento((it.tref.liferay.portos.bo.model.Pagamento)arguments[0]); return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue());
} }
if (_methodName196.equals(name) && if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue());
((Boolean)arguments[1]).booleanValue()); }
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Integer)arguments[2]).intValue(),
((Integer)arguments[3]).intValue());
}
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1], (java.util.Date)arguments[2],
((Integer)arguments[3]).intValue(),
((Integer)arguments[4]).intValue());
} }
if (_methodName199.equals(name) && if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
return PagamentoLocalServiceUtil.countByClassPk(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.findByMezzo_Utilizzata_EmailPending_CreateDate((java.lang.String)arguments[0],
(java.lang.String)arguments[1],
((Boolean)arguments[2]).booleanValue(),
(java.util.Date)arguments[3],
((Integer)arguments[4]).intValue(),
((Integer)arguments[5]).intValue());
} }
if (_methodName200.equals(name) && if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
return PagamentoLocalServiceUtil.findByClassPk(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.findInPending((java.util.Date)arguments[0],
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue(),
(com.liferay.portal.kernel.util.OrderByComparator)arguments[3]);
} }
if (_methodName201.equals(name) && if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
return PagamentoLocalServiceUtil.findByIntPratica(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.getImportoBolli(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(), (java.lang.String)arguments[2]);
} }
if (_methodName202.equals(name) && if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
return PagamentoLocalServiceUtil.countByIntPratica(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.getImportoBolli(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3]);
} }
if (_methodName203.equals(name) && if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return PagamentoLocalServiceUtil.findByIntPratica_Visible(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.getPagamenti();
} }
if (_methodName204.equals(name) && if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return PagamentoLocalServiceUtil.countByIntPratica_Visible(((Long)arguments[0]).longValue()); return PagamentoLocalServiceUtil.nuovoPagamento((java.lang.String)arguments[0],
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
(java.lang.String)arguments[4], (java.lang.String)arguments[5],
(com.liferay.portal.service.ServiceContext)arguments[6]);
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return PagamentoLocalServiceUtil.pagamentiCompleted(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
} }
if (_methodName206.equals(name) && if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return PagamentoLocalServiceUtil.pagamentiInitialized(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
PagamentoLocalServiceUtil.sostituisciPagamento(((Long)arguments[0]).longValue(), PagamentoLocalServiceUtil.sostituisciPagamento(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (java.lang.String)arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[3],
@ -680,8 +718,32 @@ public class PagamentoLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName207.equals(name) && if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
return PagamentoLocalServiceUtil.updateEmailPendingPagamento(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
}
if (_methodName209.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) {
return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue());
}
if (_methodName210.equals(name) &&
Arrays.deepEquals(_methodParameterTypes210, parameterTypes)) {
return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName211.equals(name) &&
Arrays.deepEquals(_methodParameterTypes211, parameterTypes)) {
return PagamentoLocalServiceUtil.updatePagamento(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2]);
}
if (_methodName212.equals(name) &&
Arrays.deepEquals(_methodParameterTypes212, parameterTypes)) {
PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (byte[])arguments[2], (java.lang.String)arguments[1], (byte[])arguments[2],
(java.lang.String)arguments[3], (java.lang.String)arguments[3],
@ -690,8 +752,8 @@ public class PagamentoLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName208.equals(name) && if (_methodName213.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes213, parameterTypes)) {
PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(), PagamentoLocalServiceUtil.updatePagamentoManualeFromImport(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (byte[])arguments[1], (java.lang.String)arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]); (com.liferay.portal.service.ServiceContext)arguments[3]);
@ -699,10 +761,10 @@ public class PagamentoLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName209.equals(name) && if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes209, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return PagamentoLocalServiceUtil.updateOtf(((Long)arguments[0]).longValue(), return PagamentoLocalServiceUtil.updatePagamentoUtilizzata(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue()); (java.lang.String)arguments[1]);
} }
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
@ -758,12 +820,12 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes171; private String[] _methodParameterTypes171;
private String _methodName172; private String _methodName172;
private String[] _methodParameterTypes172; private String[] _methodParameterTypes172;
private String _methodName173;
private String[] _methodParameterTypes173;
private String _methodName174; private String _methodName174;
private String[] _methodParameterTypes174; private String[] _methodParameterTypes174;
private String _methodName175; private String _methodName175;
private String[] _methodParameterTypes175; private String[] _methodParameterTypes175;
private String _methodName176;
private String[] _methodParameterTypes176;
private String _methodName177; private String _methodName177;
private String[] _methodParameterTypes177; private String[] _methodParameterTypes177;
private String _methodName178; private String _methodName178;
@ -780,20 +842,14 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes183; private String[] _methodParameterTypes183;
private String _methodName184; private String _methodName184;
private String[] _methodParameterTypes184; private String[] _methodParameterTypes184;
private String _methodName185;
private String[] _methodParameterTypes185;
private String _methodName186; private String _methodName186;
private String[] _methodParameterTypes186; private String[] _methodParameterTypes186;
private String _methodName187;
private String[] _methodParameterTypes187;
private String _methodName188;
private String[] _methodParameterTypes188;
private String _methodName189; private String _methodName189;
private String[] _methodParameterTypes189; private String[] _methodParameterTypes189;
private String _methodName190; private String _methodName190;
private String[] _methodParameterTypes190; private String[] _methodParameterTypes190;
private String _methodName191; private String _methodName192;
private String[] _methodParameterTypes191; private String[] _methodParameterTypes192;
private String _methodName193; private String _methodName193;
private String[] _methodParameterTypes193; private String[] _methodParameterTypes193;
private String _methodName194; private String _methodName194;
@ -802,6 +858,10 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes195; private String[] _methodParameterTypes195;
private String _methodName196; private String _methodName196;
private String[] _methodParameterTypes196; private String[] _methodParameterTypes196;
private String _methodName197;
private String[] _methodParameterTypes197;
private String _methodName198;
private String[] _methodParameterTypes198;
private String _methodName199; private String _methodName199;
private String[] _methodParameterTypes199; private String[] _methodParameterTypes199;
private String _methodName200; private String _methodName200;
@ -814,6 +874,8 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes203; private String[] _methodParameterTypes203;
private String _methodName204; private String _methodName204;
private String[] _methodParameterTypes204; private String[] _methodParameterTypes204;
private String _methodName205;
private String[] _methodParameterTypes205;
private String _methodName206; private String _methodName206;
private String[] _methodParameterTypes206; private String[] _methodParameterTypes206;
private String _methodName207; private String _methodName207;
@ -822,4 +884,14 @@ public class PagamentoLocalServiceClpInvoker {
private String[] _methodParameterTypes208; private String[] _methodParameterTypes208;
private String _methodName209; private String _methodName209;
private String[] _methodParameterTypes209; private String[] _methodParameterTypes209;
private String _methodName210;
private String[] _methodParameterTypes210;
private String _methodName211;
private String[] _methodParameterTypes211;
private String _methodName212;
private String[] _methodParameterTypes212;
private String _methodName213;
private String[] _methodParameterTypes213;
private String _methodName214;
private String[] _methodParameterTypes214;
} }

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java

@ -8,6 +8,7 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.tref.liferay.portos.bo.model.AllegatoManuale; import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
@ -17,7 +18,6 @@ import it.tref.liferay.portos.bo.service.base.AllegatoManualeLocalServiceBaseImp
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.Constants; 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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import java.util.Date; import java.util.Date;

6
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java

@ -9,6 +9,8 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.mwg.sismica.bo.shared.util.AsseverazioniUtil;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.DelegheUtil;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.Comune; import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
@ -20,8 +22,6 @@ 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.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; 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.ReportDto;
@ -655,11 +655,13 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
start, end, orderByComparator); start, end, orderByComparator);
} }
@Override
public int countByIntPratica_Esito(long intPraticaId, String esito) throws SystemException { public int countByIntPratica_Esito(long intPraticaId, String esito) throws SystemException {
return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esito); return asseverazionePersistence.countByIntPratica_InEsito(intPraticaId, esito);
} }
@Override
public List<Asseverazione> findByIntPratica_Esito(long intPraticaId, String esito, int start, int end, public List<Asseverazione> findByIntPratica_Esito(long intPraticaId, String esito, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java

@ -8,12 +8,12 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.tref.liferay.portos.bo.model.Avviso; import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.base.AvvisoLocalServiceBaseImpl; 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.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.bo.util.ProtocollazioneUtil; import it.tref.liferay.portos.bo.util.ProtocollazioneUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;

16
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java

@ -17,9 +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.service.base.CollaudoLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.PagamentiCommonUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -247,8 +244,8 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
serviceContext.setScopeGroupId(collaudo.getGroupId()); serviceContext.setScopeGroupId(collaudo.getGroupId());
serviceContext.setCompanyId(collaudo.getCompanyId()); serviceContext.setCompanyId(collaudo.getCompanyId());
serviceContext.setUserId(collaudo.getUserId()); serviceContext.setUserId(collaudo.getUserId());
MailUtil.invioMailNotifica(collaudo.getIntPraticaId(), 0, collaudoId, Collaudo.class.getName(), to, cc, ccn, intPratica.invioMailNotifica(0, collaudoId, Collaudo.class.getName(), to, cc, ccn, "NOTIFICA-BO",
"NOTIFICA-BO", templateVariables, null, serviceContext); templateVariables, null, serviceContext);
} }
private IntPratica updateIntPraticaStatus(Collaudo collaudo, long intPraticaId) throws PortalException, private IntPratica updateIntPraticaStatus(Collaudo collaudo, long intPraticaId) throws PortalException,
@ -294,18 +291,19 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
ServiceContext serviceContext) throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId); Collaudo collaudo = collaudoPersistence.findByPrimaryKey(collaudoId);
BigDecimal importoBolli = PagamentiCommonUtil.getImportoBolli(collaudo.getCompanyId(), BigDecimal importoBolli = pagamentoLocalService.getImportoBolli(collaudo.getCompanyId(),
collaudo.getCollaudoId(), Collaudo.class.getName(), TipoIntegrazioneUtil.COLLAUDO); collaudo.getCollaudoId(), Collaudo.class.getName(), TipoIntegrazioneUtil.COLLAUDO);
collaudo.setImportoBolli(importoBolli.toString()); collaudo.setImportoBolli(importoBolli.toString());
collaudo = updateCollaudo(collaudo); collaudo = updateCollaudo(collaudo);
PagamentiUtil.nuovoPagamento(currentURL, collaudo.getCollaudoId(), Collaudo.class.getName(), pagamentoLocalService.nuovoPagamento(currentURL, collaudo.getCollaudoId(), Collaudo.class.getName(),
PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext);
return collaudo; return collaudo;
} }
@Override @Override
public List<Collaudo> findByIntPraticaId(long intPraticaId, int start, int end, OrderByComparator orderByComparator) public List<Collaudo>
throws SystemException { findByIntPraticaId(long intPraticaId, int start, int end, OrderByComparator orderByComparator)
throws SystemException {
return collaudoPersistence.findByIntPraticaId(intPraticaId, start, end, orderByComparator); return collaudoPersistence.findByIntPraticaId(intPraticaId, start, end, orderByComparator);
} }

9
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.service.base.ComunicazioneLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil; import it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil;
import it.tref.liferay.portos.bo.shared.util.PortletKeys; import it.tref.liferay.portos.bo.shared.util.PortletKeys;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.util.Date; import java.util.Date;
@ -147,8 +146,8 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
JSONObject templateVariable = JSONFactoryUtil.createJSONObject(); JSONObject templateVariable = JSONFactoryUtil.createJSONObject();
templateVariable.put("receiver", receiver); templateVariable.put("receiver", receiver);
templateVariable.put("link", url); templateVariable.put("link", url);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0, comunicazioneId, Comunicazione.class.getName(), intPratica.invioMailNotifica(0, comunicazioneId, Comunicazione.class.getName(), to, cc, ccn,
to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext); "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext);
} }
private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date) private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date)
@ -176,7 +175,7 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
serviceContext.setScopeGroupId(comunicazione.getGroupId()); serviceContext.setScopeGroupId(comunicazione.getGroupId());
serviceContext.setCompanyId(comunicazione.getCompanyId()); serviceContext.setCompanyId(comunicazione.getCompanyId());
serviceContext.setUserId(comunicazione.getUserId()); serviceContext.setUserId(comunicazione.getUserId());
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0, comunicazioneId, Comunicazione.class.getName(), intPratica.invioMailNotifica(0, comunicazioneId, Comunicazione.class.getName(), to, cc, ccn, "NOTIFICA-BO",
to, cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); templateVariables, null, serviceContext);
} }
} }

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java

@ -9,6 +9,7 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean; import it.mwg.sismica.bo.shared.bean.CarichiLavoroBean;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.Generics; import it.mwg.sismica.bo.shared.util.Generics;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil;
import it.mwg.sismica.bo.util.CarichiLavoroUtil; import it.mwg.sismica.bo.util.CarichiLavoroUtil;
@ -21,7 +22,6 @@ import it.tref.liferay.portos.bo.service.base.ControlloPraticaLocalServiceBaseIm
import it.tref.liferay.portos.bo.shared.util.Constants; 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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.AvvisoUtil;
import it.tref.liferay.portos.bo.util.GestioneFirmeUtil; import it.tref.liferay.portos.bo.util.GestioneFirmeUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java

@ -9,12 +9,12 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.mwg.sismica.bo.shared.util.AsseverazioniUtil;
import it.mwg.sismica.bo.shared.util.DelegheUtil;
import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.Delega;
import it.tref.liferay.portos.bo.service.base.DelegaLocalServiceBaseImpl; 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.bean.FirmeBean;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; 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.ReportDto;
import it.tref.liferay.portos.report.shared.dto.ReportResultDto; import it.tref.liferay.portos.report.shared.dto.ReportResultDto;

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java

@ -8,10 +8,10 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.util.DelegheUtil;
import it.tref.liferay.portos.bo.model.Delega; import it.tref.liferay.portos.bo.model.Delega;
import it.tref.liferay.portos.bo.model.IntPratica; import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.service.base.DelegaServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.DelegaServiceBaseImpl;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import java.util.List; import java.util.List;
@ -44,7 +44,8 @@ public class DelegaServiceImpl extends DelegaServiceBaseImpl {
public Delega addDelega(long userId, long intPraticaId, long dettPraticaId, String tipologia, String codiceFiscale, public Delega addDelega(long userId, long intPraticaId, long dettPraticaId, String tipologia, String codiceFiscale,
ServiceContext serviceContext) throws PortalException, SystemException { ServiceContext serviceContext) throws PortalException, SystemException {
if (!DelegheUtil.hasCreazioneDelega(userId, intPraticaId)) { IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
if (!intPratica.hasCreazioneDelega(userId)) {
throw new SystemException("TODO aggiungere eccezione"); throw new SystemException("TODO aggiungere eccezione");
} }
return delegaLocalService.addDelega(userId, intPraticaId, dettPraticaId, tipologia, codiceFiscale, return delegaLocalService.addDelega(userId, intPraticaId, dettPraticaId, tipologia, codiceFiscale,
@ -61,7 +62,7 @@ public class DelegaServiceImpl extends DelegaServiceBaseImpl {
public Delega annullaDelega(Delega delega) throws PortalException, SystemException { public Delega annullaDelega(Delega delega) throws PortalException, SystemException {
IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId());
if (!DelegheUtil.hasAnnullaDelega(getUserId(), intPratica.getIntPraticaId())) { if (!intPratica.hasAnnullaDelega(getUserId())) {
throw new SystemException("TODO aggiungere eccezione"); throw new SystemException("TODO aggiungere eccezione");
} }
return delegaLocalService.cambioStato(delega.getDelegaId(), DelegheUtil.STATO_ANNULLATA); return delegaLocalService.cambioStato(delega.getDelegaId(), DelegheUtil.STATO_ANNULLATA);
@ -71,7 +72,7 @@ public class DelegaServiceImpl extends DelegaServiceBaseImpl {
public Delega deleteDelega(Delega delega) throws PortalException, SystemException { public Delega deleteDelega(Delega delega) throws PortalException, SystemException {
IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(delega.getIntPraticaId());
if (!DelegheUtil.hasDeleteDelega(getUserId(), intPratica.getIntPraticaId())) { if (!intPratica.hasDeleteDelega(getUserId())) {
throw new SystemException("TODO aggiungere eccezione"); throw new SystemException("TODO aggiungere eccezione");
} }
return delegaLocalService.deleteDelega(delega); return delegaLocalService.deleteDelega(delega);
@ -86,7 +87,8 @@ public class DelegaServiceImpl extends DelegaServiceBaseImpl {
@Override @Override
public Delega cambioStato(long userId, long delegaId, String esito) throws PortalException, SystemException { public Delega cambioStato(long userId, long delegaId, String esito) throws PortalException, SystemException {
if (!DelegheUtil.hasCambioStatoDelega(userId, delegaId)) { Delega delega = delegaLocalService.getDelega(delegaId);
if (!delega.hasCambioStatoDelega(userId)) {
throw new SystemException("TODO aggiungere eccezione"); throw new SystemException("TODO aggiungere eccezione");
} }
return delegaLocalService.cambioStato(delegaId, esito); return delegaLocalService.cambioStato(delegaId, esito);

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java

@ -24,8 +24,6 @@ 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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.io.IOException; import java.io.IOException;
@ -1336,8 +1334,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
serviceContext.setScopeGroupId(dettPratica.getGroupId()); serviceContext.setScopeGroupId(dettPratica.getGroupId());
serviceContext.setCompanyId(dettPratica.getCompanyId()); serviceContext.setCompanyId(dettPratica.getCompanyId());
serviceContext.setUserId(dettPratica.getUserId()); serviceContext.setUserId(dettPratica.getUserId());
MailUtil.invioMailNotifica(dettPratica.getIntPraticaId(), dettPraticaId, dettPraticaId, intPratica.invioMailNotifica(dettPraticaId, dettPraticaId, DettPratica.class.getName(), to, cc, ccn,
DettPratica.class.getName(), to, cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); "NOTIFICA-BO", templateVariables, null, serviceContext);
} }
@Override @Override
@ -1365,11 +1363,11 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
throws SystemException, PortalException { throws SystemException, PortalException {
DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(dettPraticaId); DettPratica dettPratica = dettPraticaPersistence.findByPrimaryKey(dettPraticaId);
BigDecimal importoBolli = PagamentiUtil.getImportoBolli(dettPratica.getCompanyId(), BigDecimal importoBolli = pagamentoLocalService.getImportoBolli(dettPratica.getCompanyId(),
dettPratica.getDettPraticaId(), dettPratica.getTipoIntegrazione()); dettPratica.getDettPraticaId(), dettPratica.getTipoIntegrazione());
PagamentiUtil.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), DettPratica.class.getName(), pagamentoLocalService.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), DettPratica.class.getName(),
PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext);
PagamentiUtil.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), DettPratica.class.getName(), pagamentoLocalService.nuovoPagamento(currentURL, dettPratica.getDettPraticaId(), DettPratica.class.getName(),
PagamentoConstants.PAGAMENTO_ONERI, importoSpeseIstruttoria, codiceFiscaleCommittente, serviceContext); PagamentoConstants.PAGAMENTO_ONERI, importoSpeseIstruttoria, codiceFiscaleCommittente, serviceContext);
dettPratica = updateDettPraticaPagamento(dettPratica.getDettPraticaId(), importoSpeseIstruttoria, dettPratica = updateDettPraticaPagamento(dettPratica.getDettPraticaId(), importoSpeseIstruttoria,
importoBolli.toString(), pagInterventiRestauroManufatti, pagAltriCasiCulturali, pagLottizzazioni, importoBolli.toString(), pagInterventiRestauroManufatti, pagAltriCasiCulturali, pagLottizzazioni,

11
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java

@ -17,9 +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.service.base.FineLavoriLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.bo.util.PagamentiCommonUtil;
import it.tref.liferay.portos.bo.util.PagamentiUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;
import java.math.BigDecimal; import java.math.BigDecimal;
@ -175,11 +172,11 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
ServiceContext serviceContext) throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId); FineLavori fineLavori = fineLavoriPersistence.findByPrimaryKey(fineLavoriId);
BigDecimal importoBolli = PagamentiCommonUtil.getImportoBolli(fineLavori.getCompanyId(), BigDecimal importoBolli = pagamentoLocalService.getImportoBolli(fineLavori.getCompanyId(),
fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI); fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI);
fineLavori.setImportoBolli(importoBolli.toString()); fineLavori.setImportoBolli(importoBolli.toString());
fineLavori = updateFineLavori(fineLavori); fineLavori = updateFineLavori(fineLavori);
PagamentiUtil.nuovoPagamento(currentURL, fineLavori.getFineLavoriId(), FineLavori.class.getName(), pagamentoLocalService.nuovoPagamento(currentURL, fineLavori.getFineLavoriId(), FineLavori.class.getName(),
PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext); PagamentoConstants.PAGAMENTO_BOLLI, importoBolli.toString(), codiceFiscaleCommittente, serviceContext);
return fineLavori; return fineLavori;
} }
@ -267,8 +264,8 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
serviceContext.setScopeGroupId(fineLavori.getGroupId()); serviceContext.setScopeGroupId(fineLavori.getGroupId());
serviceContext.setCompanyId(fineLavori.getCompanyId()); serviceContext.setCompanyId(fineLavori.getCompanyId());
serviceContext.setUserId(fineLavori.getUserId()); serviceContext.setUserId(fineLavori.getUserId());
MailUtil.invioMailNotifica(fineLavori.getIntPraticaId(), 0, fineLavoriId, FineLavori.class.getName(), to, cc, intPratica.invioMailNotifica(0, fineLavoriId, FineLavori.class.getName(), to, cc, ccn, "NOTIFICA-BO",
ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); templateVariables, null, serviceContext);
} }
private IntPratica updateIntPraticaStatus(FineLavori fineLavori, long intPraticaId) throws PortalException, private IntPratica updateIntPraticaStatus(FineLavori fineLavori, long intPraticaId) throws PortalException,

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java

@ -9,6 +9,7 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch; import it.mwg.sismica.bo.search.IntPraticaAdvancedSearch;
import it.mwg.sismica.bo.shared.util.AvvisoUtil;
import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil; import it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil;
import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil; import it.mwg.sismica.bo.shared.util.UnitaOperativeUtil;
import it.mwg.sismica.bo.shared.util.WorkflowConstants; import it.mwg.sismica.bo.shared.util.WorkflowConstants;
@ -34,7 +35,6 @@ import it.tref.liferay.portos.bo.shared.bean.FirmeBean;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; 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.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; 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.Constants;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import it.tref.liferay.portos.bo.util.WorkflowUtil; import it.tref.liferay.portos.bo.util.WorkflowUtil;

486
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java

@ -8,6 +8,7 @@
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
import it.mwg.sismica.bo.shared.util.PagamentiUtil;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.DettPratica; import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.FineLavori; import it.tref.liferay.portos.bo.model.FineLavori;
@ -16,10 +17,12 @@ import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
import it.tref.liferay.portos.bo.service.base.PagamentoLocalServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.PagamentoLocalServiceBaseImpl;
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants; import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.util.PagamentiUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.util.PraticaUtil; import it.tref.liferay.portos.bo.util.PraticaUtil;
import java.io.IOException; import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
@ -87,18 +90,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
}; };
@Override
public Map<String, Double> getPagamenti() {
return PAGAMENTI;
}
@Override
public long createPagamentoId() throws SystemException {
return counterLocalService.increment(Pagamento.class.getName());
}
@Override @Override
public Pagamento addPagamento(String codice, String causale, String mezzo, String codiceFiscaleCommittente, public Pagamento addPagamento(String codice, String causale, String mezzo, String codiceFiscaleCommittente,
String tipoPagamento, String importo, String utilizzata, long classPk, String className, String tipoPagamento, String importo, String utilizzata, long classPk, String className,
@ -108,15 +99,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
utilizzata, classPk, className, false, StringPool.BLANK, serviceContext); utilizzata, classPk, className, false, StringPool.BLANK, serviceContext);
} }
@Override
public Pagamento addPagamentoAndUpdate(String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk,
String className, ServiceContext serviceContext) throws PortalException, SystemException {
return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo,
utilizzata, classPk, className, true, StringPool.BLANK, serviceContext);
}
@Override @Override
public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo, public Pagamento addPagamentoAndUpdate(long pagamentoId, String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk, String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk,
@ -223,30 +205,12 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override @Override
public Pagamento updatePagamento(long pagamentoId, String importo) throws PortalException, SystemException { public Pagamento addPagamentoAndUpdate(String codice, String causale, String mezzo,
String codiceFiscaleCommittente, String tipoPagamento, String importo, String utilizzata, long classPk,
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId); String className, ServiceContext serviceContext) throws PortalException, SystemException {
pagamento.setImporto(importo);
return updatePagamento(pagamento);
}
@Override
public Pagamento updatePagamento(long pagamentoId, String codiceFiscaleCommittente, String importo)
throws PortalException, SystemException {
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId);
pagamento.setCodiceFiscaleCommittente(codiceFiscaleCommittente);
pagamento.setImporto(importo);
return updatePagamento(pagamento);
}
@Override
public Pagamento updatePagamentoUtilizzata(long pagamentoId, String utilizzata) throws PortalException,
SystemException {
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId); return addPagamentoAndUpdate(null, codice, causale, mezzo, codiceFiscaleCommittente, tipoPagamento, importo,
pagamento.setUtilizzata(utilizzata); utilizzata, classPk, className, true, StringPool.BLANK, serviceContext);
return updatePagamento(pagamento);
} }
@Override @Override
@ -257,15 +221,10 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end) public int countByClassPk(long classPk) throws SystemException {
throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, return pagamentoPersistence.countByClassPk(classPk);
null);
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end,
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override @Override
@ -276,32 +235,26 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, public int countByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, String utilizzata)
String utilizzata, int start, int end) throws SystemException { throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo,
utilizzata); utilizzata);
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override @Override
public int countByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, String utilizzata) public int countByIntPratica(long intPraticaId) throws SystemException {
throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo, return pagamentoPersistence.countByIntPratica(intPraticaId);
utilizzata);
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@Override @Override
public List<Pagamento> findByMezzo_Utilizzata(String mezzo, String utilizzata, int start, int end) public int countByIntPratica_Visible(long intPraticaId) throws SystemException {
throws SystemException {
return pagamentoPersistence.findByMezzo_Utilizzata(mezzo, utilizzata, start, end, DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId);
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true)); return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
@Override @Override
@ -311,11 +264,9 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override @Override
public List<Pagamento> findByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date, int start, public int countByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date) throws SystemException {
int end) throws SystemException {
return pagamentoPersistence.findByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date, start, end, return pagamentoPersistence.countByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date);
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override @Override
@ -327,28 +278,24 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override @Override
public List<Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata, public int countInPending(Date date) throws SystemException {
boolean emailPending, Date date, int start, int end) throws SystemException {
return pagamentoPersistence.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, utilizzata, emailPending, DynamicQuery dynamicQuery = createPendingQuery(date);
date, start, end, return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@SuppressWarnings("unchecked") private DynamicQuery createPagamentiVisibleByIntPratica(long intPraticaId) {
@Override
public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator)
throws SystemException {
DynamicQuery dynamicQuery = createPendingQuery(date); DynamicQuery dynamicQuery = dynamicQuery();
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, comparator); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.ne("utilizzata", PagamentoConstants.UTILIZZATA_IN_CORSO));
return dynamicQuery;
} }
@Override @Override
public int countInPending(Date date) throws SystemException { public long createPagamentoId() throws SystemException {
DynamicQuery dynamicQuery = createPendingQuery(date); return counterLocalService.increment(Pagamento.class.getName());
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
} }
private DynamicQuery createPendingQuery(Date date) { private DynamicQuery createPendingQuery(Date date) {
@ -360,10 +307,17 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
@Override private void deleteDettPraticaPagamento(Pagamento pagamento) throws SystemException {
public int countByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date) throws SystemException {
return pagamentoPersistence.countByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date); List<DettPratica> dettPraticas = dettPraticaLocalService.findByPagamentoId(pagamento.getPagamentoId());
for (DettPratica dettPratica : dettPraticas) {
if (PagamentoConstants.PAGAMENTO_ONERI.equals(pagamento.getTipoPagamento())) {
dettPratica.setPagamentoIdOneri(0L);
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(pagamento.getTipoPagamento())) {
dettPratica.setPagamentoIdBolli(0L);
}
dettPraticaLocalService.updateDettPratica(dettPratica);
}
} }
@Override @Override
@ -392,29 +346,6 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return pagamento; return pagamento;
} }
@Override
public Pagamento updateEmailPendingPagamento(long pagamentoId, boolean emailPending) throws PortalException,
SystemException {
Pagamento pagamento = getPagamento(pagamentoId);
pagamento.setModifiedDate(new Date());
pagamento.setEmailPending(emailPending);
return updatePagamento(pagamento);
}
private void deleteDettPraticaPagamento(Pagamento pagamento) throws SystemException {
List<DettPratica> dettPraticas = dettPraticaLocalService.findByPagamentoId(pagamento.getPagamentoId());
for (DettPratica dettPratica : dettPraticas) {
if (PagamentoConstants.PAGAMENTO_ONERI.equals(pagamento.getTipoPagamento())) {
dettPratica.setPagamentoIdOneri(0L);
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(pagamento.getTipoPagamento())) {
dettPratica.setPagamentoIdBolli(0L);
}
dettPraticaLocalService.updateDettPratica(dettPratica);
}
}
private DynamicQuery dynamicQueryFindByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo, private DynamicQuery dynamicQueryFindByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo,
String utilizzata) { String utilizzata) {
@ -428,27 +359,37 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override @Override
public int countByClassPk(long classPk) throws SystemException { public List<Pagamento> findByClassPk(long classPk) throws SystemException {
return pagamentoPersistence.countByClassPk(classPk); return pagamentoPersistence.findByClassPk(classPk);
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByClassPk(long classPk) throws SystemException { public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end)
throws SystemException {
return pagamentoPersistence.findByClassPk(classPk); DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo,
null);
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end,
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@SuppressWarnings("unchecked")
@Override @Override
public List<Pagamento> findByIntPratica(long intPraticaId) throws SystemException { public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo,
String utilizzata, int start, int end) throws SystemException {
return pagamentoPersistence.findByIntPratica(intPraticaId); DynamicQuery dynamicQuery = dynamicQueryFindByCommittente_Mezzo_Utilizzata(codiceFiscaleCommittente, mezzo,
utilizzata);
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end,
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
@Override @Override
public int countByIntPratica(long intPraticaId) throws SystemException { public List<Pagamento> findByIntPratica(long intPraticaId) throws SystemException {
return pagamentoPersistence.countByIntPratica(intPraticaId); return pagamentoPersistence.findByIntPratica(intPraticaId);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@ -460,18 +401,256 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override @Override
public int countByIntPratica_Visible(long intPraticaId) throws SystemException { public List<Pagamento> findByMezzo_Utilizzata(String mezzo, String utilizzata, int start, int end)
throws SystemException {
DynamicQuery dynamicQuery = createPagamentiVisibleByIntPratica(intPraticaId); return pagamentoPersistence.findByMezzo_Utilizzata(mezzo, utilizzata, start, end,
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
} }
private DynamicQuery createPagamentiVisibleByIntPratica(long intPraticaId) { @Override
public List<Pagamento> findByMezzo_Utilizzata_CreateDate(String mezzo, String utilizzata, Date date, int start,
int end) throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery(); return pagamentoPersistence.findByMezzo_Utilizzata_CreateDate(mezzo, utilizzata, date, start, end,
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
dynamicQuery.add(RestrictionsFactoryUtil.ne("utilizzata", PagamentoConstants.UTILIZZATA_IN_CORSO)); }
return dynamicQuery;
@Override
public List<Pagamento> findByMezzo_Utilizzata_EmailPending_CreateDate(String mezzo, String utilizzata,
boolean emailPending, Date date, int start, int end) throws SystemException {
return pagamentoPersistence.findByMezzo_Utilizzata_EmailPending_CreateDate(mezzo, utilizzata, emailPending,
date, start, end,
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
}
@SuppressWarnings("unchecked")
@Override
public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator)
throws SystemException {
DynamicQuery dynamicQuery = createPendingQuery(date);
return pagamentoPersistence.findWithDynamicQuery(dynamicQuery, start, end, comparator);
}
@Override
public BigDecimal getImportoBolli(long companyId, long dettPraticaId, String tipoIntegrazione)
throws PortalException, SystemException {
return getImportoBolli(companyId, dettPraticaId, DettPratica.class.getName(), tipoIntegrazione);
}
@Override
public BigDecimal getImportoBolli(long companyId, long classPK, String className, String tipoIntegrazione)
throws PortalException, SystemException {
try {
boolean normEsenteBollo = false;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPK);
normEsenteBollo = dettPratica.isNormEsenteBollo();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = fineLavoriLocalService.getFineLavori(classPK);
normEsenteBollo = fineLavori.isNormEsenteBollo();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = collaudoLocalService.getCollaudo(classPK);
normEsenteBollo = collaudo.isNormEsenteBollo();
}
if (normEsenteBollo) {
return new BigDecimal("0.00");
}
} catch (PortalException e) {}
int numeroBolli = PagamentiUtil.getNumeroBolli(tipoIntegrazione);
BigDecimal importoBolliBigDecimal = new BigDecimal(configurazioneLocalService.findByC_ChiaveString(companyId,
ConfigurazioneConstants.IMPORTO_BOLLO));
return importoBolliBigDecimal.multiply(new BigDecimal(numeroBolli));
}
@Override
public Map<String, Double> getPagamenti() {
return PAGAMENTI;
}
@Override
public Pagamento nuovoPagamento(String currentURL, long classPk, String className, String tipoPagamento,
String importo, String codiceFiscaleCommittente, ServiceContext serviceContext) throws PortalException,
SystemException {
boolean esenzioneBolli = false;
boolean esenzioneSpeseIstruttoria = false;
String tipoIntegrazione = StringPool.BLANK;
long pagamentoId = 0L;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPk);
esenzioneBolli = dettPratica.isNormEsenteBollo();
esenzioneSpeseIstruttoria = dettPratica.isNormEsenteSpese();
tipoIntegrazione = dettPratica.getTipoIntegrazione();
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
pagamentoId = dettPratica.getPagamentoIdOneri();
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = dettPratica.getPagamentoIdBolli();
}
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = fineLavoriLocalService.getFineLavori(classPk);
esenzioneBolli = fineLavori.isNormEsenteBollo();
esenzioneSpeseIstruttoria = true;
tipoIntegrazione = TipoIntegrazioneUtil.FINE_LAVORI;
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
throw new SystemException("error.fields.fineLavori.pagamento.classPk.invalid");
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = fineLavori.getPagamentoId();
}
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = collaudoLocalService.getCollaudo(classPk);
esenzioneBolli = collaudo.isNormEsenteBollo();
esenzioneSpeseIstruttoria = true;
tipoIntegrazione = TipoIntegrazioneUtil.COLLAUDO;
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
throw new SystemException("error.fields.collaudo.pagamento.classPk.invalid");
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = collaudo.getPagamentoId();
}
} else {
throw new SystemException("error.fields.pratica.pagamento.classPk.invalid");
}
List<String> importi = new ArrayList<>();
if (esenzioneSpeseIstruttoria && esenzioneBolli) {
throw new SystemException("error.fields.pratica.pagamento.esente.oneri.bolli");
} else {
if ((PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) && !esenzioneBolli)
|| (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento) && !esenzioneSpeseIstruttoria)) {
if (Validator.isNotNull(importo)) {
importo = importo.replaceAll(StringPool.COMMA, StringPool.PERIOD);
try {
BigDecimal importoVal = new BigDecimal(importo);
importo = importoVal.toPlainString();
if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
int numeroBolli = PagamentiUtil.getNumeroBolli(tipoIntegrazione);
BigDecimal singoloImporto = importoVal.divide(new BigDecimal(numeroBolli));
for (int i = 0; i < numeroBolli; i++) {
importi.add(singoloImporto.toPlainString());
}
} else if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
importi.add(importo);
}
} catch (NumberFormatException e) {
throw new SystemException("error.fields.pratica.pagamento."
+ (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli"
: "speseistruttoria") + ".valid", e);
}
} else {
if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)
|| PagamentiUtil.existsSpeseIstruttoria(tipoIntegrazione)) {
throw new SystemException("error.fields.pratica.pagamento."
+ (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli"
: "speseistruttoria") + ".required");
}
}
} else {
return null;
}
}
boolean add = true;
if (Validator.isNotNull(pagamentoId)) {
Pagamento pagamento = getPagamento(pagamentoId);
if (pagamento.getClassPk() == classPk) {
add = false;
updatePagamento(pagamentoId, codiceFiscaleCommittente, importo);
}
return pagamento;
}
if (add) {
return addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK, PagamentoConstants.MEZZO_MANUALE,
codiceFiscaleCommittente, tipoPagamento, importo, PagamentoConstants.UTILIZZATA_IN_CORSO, classPk,
className, serviceContext);
}
return null;
}
@Override
public boolean pagamentiCompleted(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false;
boolean normEsenteBollo = false;
long pagamentoIdSpese = 0;
long pagamentoIdBolli = 0;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPK);
normEsenteSpese = dettPratica.isNormEsenteSpese();
normEsenteBollo = dettPratica.isNormEsenteBollo();
pagamentoIdSpese = dettPratica.getPagamentoIdOneri();
pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = fineLavoriLocalService.getFineLavori(classPK);
normEsenteSpese = true;
normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = collaudoLocalService.getCollaudo(classPK);
normEsenteSpese = true;
normEsenteBollo = collaudo.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = collaudo.getPagamentoId();
}
boolean completed = false;
if (!normEsenteBollo && !normEsenteSpese) {
if (Validator.isNull(pagamentoIdBolli) || Validator.isNull(pagamentoIdSpese)) {
return false;
}
Pagamento pagamentoBolli = getPagamento(pagamentoIdBolli);
Pagamento pagamentoSpese = getPagamento(pagamentoIdSpese);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata())
&& PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else {
if (normEsenteBollo && Validator.isNotNull(pagamentoIdSpese)) {
Pagamento pagamentoSpese = getPagamento(pagamentoIdSpese);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoSpese.getUtilizzata());
} else if (normEsenteSpese && Validator.isNotNull(pagamentoIdBolli)) {
Pagamento pagamentoBolli = getPagamento(pagamentoIdBolli);
completed = PagamentoConstants.UTILIZZATA_PAGATA.equalsIgnoreCase(pagamentoBolli.getUtilizzata());
}
}
return completed;
}
@Override
public boolean pagamentiInitialized(long classPK, String className) throws PortalException, SystemException {
boolean normEsenteSpese = false;
boolean normEsenteBollo = false;
long pagamentoIdSpese = 0L;
long pagamentoIdBolli = 0L;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = dettPraticaLocalService.getDettPratica(classPK);
normEsenteSpese = dettPratica.isNormEsenteSpese();
normEsenteBollo = dettPratica.isNormEsenteBollo();
pagamentoIdSpese = dettPratica.getPagamentoIdOneri();
pagamentoIdBolli = dettPratica.getPagamentoIdBolli();
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = fineLavoriLocalService.getFineLavori(classPK);
normEsenteSpese = true;
normEsenteBollo = fineLavori.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = fineLavori.getPagamentoId();
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = collaudoLocalService.getCollaudo(classPK);
normEsenteSpese = true;
normEsenteBollo = collaudo.isNormEsenteBollo();
pagamentoIdSpese = 0L;
pagamentoIdBolli = collaudo.getPagamentoId();
}
if (!normEsenteBollo && !normEsenteSpese) {
return Validator.isNotNull(pagamentoIdBolli) || Validator.isNotNull(pagamentoIdSpese);
} else if (normEsenteBollo) {
return Validator.isNotNull(pagamentoIdSpese);
} else if (normEsenteSpese) {
return Validator.isNotNull(pagamentoIdBolli);
}
return false;
} }
@Override @Override
@ -508,7 +687,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA); pagamento.setUtilizzata(PagamentoConstants.UTILIZZATA_SOSTITUITA);
pagamento.setUtilizzataSostituita(currentUtilizzata); pagamento.setUtilizzataSostituita(currentUtilizzata);
updatePagamento(pagamento); updatePagamento(pagamento);
PagamentiUtil.nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), tipoPagamento, nuovoPagamento(url, pagamento.getClassPk(), pagamento.getClassName(), tipoPagamento,
pagamento.getImporto(), codiceFiscaleCommittente, serviceContext); pagamento.getImporto(), codiceFiscaleCommittente, serviceContext);
} else { } else {
throw new PortalException("Creazione pagamento manuale con stato " + currentUtilizzata throw new PortalException("Creazione pagamento manuale con stato " + currentUtilizzata
@ -519,6 +698,47 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
} }
@Override
public Pagamento updateEmailPendingPagamento(long pagamentoId, boolean emailPending) throws PortalException,
SystemException {
Pagamento pagamento = getPagamento(pagamentoId);
pagamento.setModifiedDate(new Date());
pagamento.setEmailPending(emailPending);
return updatePagamento(pagamento);
}
@Override
public Pagamento updateOtf(long pagamentoId, boolean otf) throws PortalException, SystemException {
Pagamento pagamento = getPagamento(pagamentoId);
pagamento.setOtf(otf);
if (otf) {
pagamento.setOtfCreateDate(new Date());
} else {
pagamento.setOtfCreateDate(null);
}
return updatePagamento(pagamento);
}
@Override
public Pagamento updatePagamento(long pagamentoId, String importo) throws PortalException, SystemException {
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId);
pagamento.setImporto(importo);
return updatePagamento(pagamento);
}
@Override
public Pagamento updatePagamento(long pagamentoId, String codiceFiscaleCommittente, String importo)
throws PortalException, SystemException {
Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId);
pagamento.setCodiceFiscaleCommittente(codiceFiscaleCommittente);
pagamento.setImporto(importo);
return updatePagamento(pagamento);
}
@Override @Override
public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content,
String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException { String sourceFileName, ServiceContext serviceContext) throws IOException, PortalException, SystemException {
@ -610,15 +830,11 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
@Override @Override
public Pagamento updateOtf(long pagamentoId, boolean otf) throws PortalException, SystemException { public Pagamento updatePagamentoUtilizzata(long pagamentoId, String utilizzata) throws PortalException,
SystemException {
Pagamento pagamento = getPagamento(pagamentoId); Pagamento pagamento = pagamentoPersistence.findByPrimaryKey(pagamentoId);
pagamento.setOtf(otf); pagamento.setUtilizzata(utilizzata);
if (otf) {
pagamento.setOtfCreateDate(new Date());
} else {
pagamento.setOtfCreateDate(null);
}
return updatePagamento(pagamento); return updatePagamento(pagamento);
} }
} }

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java

@ -15,7 +15,6 @@ import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.base.PagamentoServiceBaseImpl; import it.tref.liferay.portos.bo.service.base.PagamentoServiceBaseImpl;
import it.tref.liferay.portos.bo.service.permission.PendingPagamentiPermission; import it.tref.liferay.portos.bo.service.permission.PendingPagamentiPermission;
import it.tref.liferay.portos.bo.shared.util.ActionKeys; import it.tref.liferay.portos.bo.shared.util.ActionKeys;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import java.io.IOException; import java.io.IOException;
@ -49,7 +48,8 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId);
long userId = findTitolare(pagamentoId); long userId = findTitolare(pagamentoId);
if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) { DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk());
if (getUserId() == userId || dettPratica.hasDelegaPagamento(userId)) {
pagamentoLocalService.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url, pagamentoLocalService.sostituisciPagamento(pagamentoId, codiceFiscaleCommittente, mezzo, url,
serviceContext); serviceContext);
} else { } else {
@ -89,7 +89,8 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId);
long userId = findTitolare(pagamentoId); long userId = findTitolare(pagamentoId);
if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) { DettPratica dettPratica = dettPraticaLocalService.getDettPratica(pagamento.getClassPk());
if (getUserId() == userId || dettPratica.hasDelegaPagamento(userId)) {
pagamentoLocalService.updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, pagamentoLocalService.updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName,
serviceContext); serviceContext);
} else { } else {

142
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/util/PagamentiUtil.java

@ -1,142 +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.FineLavori;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.service.CollaudoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.FineLavoriLocalServiceUtil;
import it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil;
import it.tref.liferay.portos.bo.shared.util.PagamentoConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.CalendarFactoryUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.service.ServiceContext;
public abstract class PagamentiUtil {
public static BigDecimal getImportoBolli(long companyId, long dettPraticaId, String tipoIntegrazione)
throws PortalException, SystemException {
return PagamentiCommonUtil.getImportoBolli(companyId, dettPraticaId, DettPratica.class.getName(),
tipoIntegrazione);
}
public static Date getScadenzaPending() {
Calendar calendar = CalendarFactoryUtil.getCalendar();
calendar.add(Calendar.MINUTE, -30);
return calendar.getTime();
}
public static boolean isPagamentoScadutoInPending(Pagamento pagamento) {
return pagamento.getCreateDate().compareTo(getScadenzaPending()) < 0;
}
public static Pagamento nuovoPagamento(String currentURL, long classPk, String className, String tipoPagamento,
String importo, String codiceFiscaleCommittente, ServiceContext serviceContext) throws PortalException,
SystemException {
boolean esenzioneBolli = false;
boolean esenzioneSpeseIstruttoria = false;
String tipoIntegrazione = StringPool.BLANK;
long pagamentoId = 0L;
if (DettPratica.class.getName().equals(className)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(classPk);
esenzioneBolli = dettPratica.isNormEsenteBollo();
esenzioneSpeseIstruttoria = dettPratica.isNormEsenteSpese();
tipoIntegrazione = dettPratica.getTipoIntegrazione();
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
pagamentoId = dettPratica.getPagamentoIdOneri();
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = dettPratica.getPagamentoIdBolli();
}
} else if (FineLavori.class.getName().equals(className)) {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(classPk);
esenzioneBolli = fineLavori.isNormEsenteBollo();
esenzioneSpeseIstruttoria = true;
tipoIntegrazione = TipoIntegrazioneUtil.FINE_LAVORI;
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
throw new SystemException("error.fields.fineLavori.pagamento.classPk.invalid");
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = fineLavori.getPagamentoId();
}
} else if (Collaudo.class.getName().equals(className)) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(classPk);
esenzioneBolli = collaudo.isNormEsenteBollo();
esenzioneSpeseIstruttoria = true;
tipoIntegrazione = TipoIntegrazioneUtil.COLLAUDO;
if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
throw new SystemException("error.fields.collaudo.pagamento.classPk.invalid");
} else if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
pagamentoId = collaudo.getPagamentoId();
}
} else {
throw new SystemException("error.fields.pratica.pagamento.classPk.invalid");
}
List<String> importi = new ArrayList<>();
if (esenzioneSpeseIstruttoria && esenzioneBolli) {
throw new SystemException("error.fields.pratica.pagamento.esente.oneri.bolli");
} else {
if ((PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) && !esenzioneBolli)
|| (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento) && !esenzioneSpeseIstruttoria)) {
if (Validator.isNotNull(importo)) {
importo = importo.replaceAll(StringPool.COMMA, StringPool.PERIOD);
try {
BigDecimal importoVal = new BigDecimal(importo);
importo = importoVal.toPlainString();
if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)) {
int numeroBolli = PagamentiCommonUtil.getNumeroBolli(tipoIntegrazione);
BigDecimal singoloImporto = importoVal.divide(new BigDecimal(numeroBolli));
for (int i = 0; i < numeroBolli; i++) {
importi.add(singoloImporto.toPlainString());
}
} else if (PagamentoConstants.PAGAMENTO_ONERI.equals(tipoPagamento)) {
importi.add(importo);
}
} catch (NumberFormatException e) {
throw new SystemException("error.fields.pratica.pagamento."
+ (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli"
: "speseistruttoria") + ".valid", e);
}
} else {
if (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento)
|| PagamentiCommonUtil.existsSpeseIstruttoria(tipoIntegrazione)) {
throw new SystemException("error.fields.pratica.pagamento."
+ (PagamentoConstants.PAGAMENTO_BOLLI.equals(tipoPagamento) ? "bolli"
: "speseistruttoria") + ".required");
}
}
} else {
return null;
}
}
boolean add = true;
if (Validator.isNotNull(pagamentoId)) {
Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId);
if (pagamento.getClassPk() == classPk) {
add = false;
PagamentoLocalServiceUtil.updatePagamento(pagamentoId, codiceFiscaleCommittente, importo);
}
return pagamento;
}
if (add) {
return PagamentoLocalServiceUtil.addPagamentoAndUpdate(StringPool.BLANK, StringPool.BLANK,
PagamentoConstants.MEZZO_MANUALE, codiceFiscaleCommittente, tipoPagamento, importo,
PagamentoConstants.UTILIZZATA_IN_CORSO, classPk, className, serviceContext);
}
return null;
}
}

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=3436 build.number=3461
build.date=1633525559869 build.date=1634550844703
build.auto.upgrade=true build.auto.upgrade=true
## ##

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/parametri/view.jsp

@ -5,8 +5,8 @@
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.AvvisoUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%>
<%@page import="java.util.Collection"%> <%@page import="java.util.Collection"%>
<%@ include file="/html/init.jsp"%> <%@ include file="/html/init.jsp"%>
<% <%

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/avvisi/view.jsp

@ -3,9 +3,9 @@
<%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%> <%@page import="com.liferay.portal.kernel.repository.model.FileEntry"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.AvvisoUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%>
<%@ include file="/html/avvisi/init.jsp" %> <%@ include file="/html/avvisi/init.jsp" %>
<% <%
long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L); long intPraticaId = ParamUtil.getLong(request, "intPraticaId", 0L);

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/cronologia/view.jsp

@ -8,12 +8,12 @@
<%@page import="com.liferay.portlet.PortletURLFactoryUtil"%> <%@page import="com.liferay.portlet.PortletURLFactoryUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%> <%@page import="com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.AvvisoUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaLink"%> <%@page import="it.tref.liferay.portos.bo.shared.bean.CronostoriaLink"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.CronostoriaUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.CronostoriaUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="java.util.Collections"%> <%@page import="java.util.Collections"%>
<%@page import="java.util.Comparator"%> <%@page import="java.util.Comparator"%>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/fascicolo/navigator/page_sez_geologica.jsp

@ -3,6 +3,7 @@
<%@page import="java.util.Date"%> <%@page import="java.util.Date"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
@ -11,7 +12,6 @@
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.kernel.util.KeyValuePair"%> <%@page import="com.liferay.portal.kernel.util.KeyValuePair"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@include file="/html/fascicolo/init.jsp"%> <%@include file="/html/fascicolo/init.jsp"%>
<% <%
long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0); long dettPraticaId = ParamUtil.getLong(request, "dettPraticaId", 0);

19
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare.jsp

@ -12,6 +12,7 @@
<%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%> <%@page import="com.liferay.portlet.documentlibrary.util.DLUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%> <%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="javax.portlet.PortletURL"%> <%@page import="javax.portlet.PortletURL"%>
<%@include file="/html/gestionefirme/init.jsp"%> <%@include file="/html/gestionefirme/init.jsp"%>
<% <%
@ -50,7 +51,9 @@ if (Validator.isNotNull(mvcPath)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso DettPratica dettPratica = DettPraticaLocalServiceUtil.fetchDettPratica(avviso
.getClassPk()); .getClassPk());
IntPratica intPratica = null; IntPratica intPratica = null;
if (Validator.isNotNull(dettPratica)) { if (Validator.isNull(dettPratica)) {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId());
} else {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
String urlDettaglioPratica = StringPool.BLANK; String urlDettaglioPratica = StringPool.BLANK;
if (fromPopUp) { if (fromPopUp) {
@ -62,8 +65,6 @@ if (Validator.isNotNull(mvcPath)) {
dettPratica.getDettPraticaId(), dettPratica.getStatus(), themeDisplay dettPratica.getDettPraticaId(), dettPratica.getStatus(), themeDisplay
.getPortalURL(), true); .getPortalURL(), true);
} }
} else {
intPratica = IntPraticaLocalServiceUtil.getIntPratica(avviso.getIntPraticaId());
} }
String tipoProcedura = StringPool.BLANK; String tipoProcedura = StringPool.BLANK;
if (Validator.isNotNull(intPratica)) { if (Validator.isNotNull(intPratica)) {
@ -89,9 +90,10 @@ if (Validator.isNotNull(mvcPath)) {
<liferay-ui:search-container-column-text name="label.avviso.dataAvviso" <liferay-ui:search-container-column-text name="label.avviso.dataAvviso"
value='<%= dateFormatDateTime.format(avviso.getDtAvviso()) %>' /> value='<%= dateFormatDateTime.format(avviso.getDtAvviso()) %>' />
<% <%
String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); String tipoDocumento = PraticaUtil.getStatoPratica(avviso.getTipoDocumento(),
avviso.getIntPraticaId());
%> %>
<liferay-ui:search-container-column-text name="label.avviso.tipoDocumento" <liferay-ui:search-container-column-text name="esito"
value='<%= LanguageUtil.get(pageContext, tipoDocumento) %>' /> value='<%= LanguageUtil.get(pageContext, tipoDocumento) %>' />
<% <%
String urlFileEntryBase = StringPool.BLANK; String urlFileEntryBase = StringPool.BLANK;
@ -202,10 +204,11 @@ if (Validator.isNotNull(mvcPath)) {
<liferay-ui:search-container-column-text name="label.avviso.dataAvviso" <liferay-ui:search-container-column-text name="label.avviso.dataAvviso"
value='<%= dateFormatDateTime.format(avviso.getDtAvviso()) %>' /> value='<%= dateFormatDateTime.format(avviso.getDtAvviso()) %>' />
<% <%
String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); String tipoDocumento = PraticaUtil.getStatoPratica(avviso.getTipoDocumento(),
avviso.getIntPraticaId());
%> %>
<liferay-ui:search-container-column-text name="label.avviso.tipoDocumento" <liferay-ui:search-container-column-text name="esito"
value='<%= LanguageUtil.get(pageContext, tipoDocumento) %>' /> value='<%= tipoDocumento %>' />
<% <%
String urlFileEntryBase = StringPool.BLANK; String urlFileEntryBase = StringPool.BLANK;
try { try {

10
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_da_firmare_altri.jsp

@ -1,4 +1,5 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.util.ArrayUtil"%> <%@page import="com.liferay.portal.kernel.util.ArrayUtil"%>
<%@page import="com.liferay.portal.model.Organization"%> <%@page import="com.liferay.portal.model.Organization"%>
@ -7,9 +8,9 @@
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%> <%@page import="com.liferay.portal.security.permission.ActionKeys"%>
<%@page import="it.mwg.sismica.bo.shared.util.AvvisoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%> <%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.Constants"%> <%@page import="it.tref.liferay.portos.bo.util.Constants"%>
<%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%>
<%@page import="com.liferay.portal.kernel.util.HttpUtil"%> <%@page import="com.liferay.portal.kernel.util.HttpUtil"%>
<%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%> <%@page import="com.liferay.portal.kernel.portlet.LiferayWindowState"%>
<%@page import="com.liferay.portal.kernel.exception.PortalException"%> <%@page import="com.liferay.portal.kernel.exception.PortalException"%>
@ -85,12 +86,11 @@ for (Organization organization:organizations) {
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.avviso.dataAvviso" value='<%=dateFormatDateTime.format(avviso.getDtAvviso()) %>' /> <liferay-ui:search-container-column-text name="label.avviso.dataAvviso" value='<%=dateFormatDateTime.format(avviso.getDtAvviso()) %>' />
<% <%
String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); String tipoDocumento = PraticaUtil.getStatoPratica(avviso.getTipoDocumento(),
avviso.getIntPraticaId());
%> %>
<liferay-ui:search-container-column-text name="label.avviso.tipoDocumento" value='<%=LanguageUtil.get(pageContext, tipoDocumento) %>' /> <liferay-ui:search-container-column-text name="esito" value="<%=tipoDocumento %>" />
<% <%
String urlFileEntryBase = StringPool.BLANK; String urlFileEntryBase = StringPool.BLANK;

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestionefirme/avvisi_firme.jsp

@ -1,10 +1,11 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%> <%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%> <%@page import="com.liferay.portal.service.GroupLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.User"%> <%@page import="com.liferay.portal.model.User"%>
<%@page import="com.liferay.portal.service.UserLocalServiceUtil"%> <%@page import="com.liferay.portal.service.UserLocalServiceUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.AvvisoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%> <%@page import="it.tref.liferay.portos.bo.util.GenioCivileBaseUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.AvvisoUtil"%>
<%@page import="com.liferay.portal.util.PortalUtil"%> <%@page import="com.liferay.portal.util.PortalUtil"%>
<%@page import="com.liferay.portal.kernel.exception.PortalException"%> <%@page import="com.liferay.portal.kernel.exception.PortalException"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
@ -65,16 +66,13 @@ searchURL.setParameter("tabs1", tabs1);
String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName(); String genio = OrganizationLocalServiceUtil.getOrganization(organizationId).getName();
%> %>
<%= genio %> <%= genio %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="label.avviso.dataAvviso" value='<%=dateFormatDateTime.format(avviso.getDtAvviso()) %>' /> <liferay-ui:search-container-column-text name="label.avviso.dataAvviso" value='<%=dateFormatDateTime.format(avviso.getDtAvviso()) %>' />
<% <%
String tipoDocumento = avviso.translateTipoDocumento(intPratica.getTipoProcedura()); String tipoDocumento = PraticaUtil.getStatoPratica(avviso.getTipoDocumento(),
avviso.getIntPraticaId());
%> %>
<liferay-ui:search-container-column-text name="label.avviso.tipoDocumento" value='<%=LanguageUtil.get(pageContext, tipoDocumento) %>' /> <liferay-ui:search-container-column-text name="esito" value="<%= tipoDocumento %>" />
<% <%
String urlFileEntryBase = StringPool.BLANK; String urlFileEntryBase = StringPool.BLANK;
try { try {

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view.jsp

@ -1,9 +1,7 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%> <%@page import="com.liferay.portal.kernel.bean.BeanPropertiesUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
<%@ include file="/html/pagamenti/init.jsp" %> <%@ include file="/html/pagamenti/init.jsp" %>

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_pagamenti_pending.jsp

@ -4,7 +4,6 @@
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="com.liferay.portal.kernel.language.LanguageUtil"%> <%@page import="com.liferay.portal.kernel.language.LanguageUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.permission.PendingPagamentiPermission"%> <%@page import="it.tref.liferay.portos.bo.service.permission.PendingPagamentiPermission"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.ActionKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_form_bollettino.jsp

@ -1,6 +1,5 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_generic.jsp

@ -1,7 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
@ -100,7 +99,7 @@
</div> </div>
<div class="col-sm-6 col-md-6"> <div class="col-sm-6 col-md-6">
<% <%
BigDecimal importoBollo = isEsenteBollo ? new BigDecimal("0.00") : PagamentiCommonUtil.getImportoBolli(company.getCompanyId(), classPk, className, tipoIntegrazione); BigDecimal importoBollo = isEsenteBollo ? new BigDecimal("0.00") : PagamentoLocalServiceUtil.getImportoBolli(company.getCompanyId(), classPk, className, tipoIntegrazione);
%> %>
Importo totale <strong><%= NumberFormat.getCurrencyInstance(Locale.ITALY).format(importoBollo) %></strong> Importo totale <strong><%= NumberFormat.getCurrencyInstance(Locale.ITALY).format(importoBollo) %></strong>
</div> </div>

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti.jsp

@ -1,5 +1,4 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_bolli.jsp

@ -1,6 +1,5 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
@ -78,7 +77,7 @@
if(Validator.isNotNull(pagamentoBolli)){ if(Validator.isNotNull(pagamentoBolli)){
importoBollo = new BigDecimal(pagamentoBolli.getImporto()); importoBollo = new BigDecimal(pagamentoBolli.getImporto());
} else { } else {
importoBollo = dettPratica.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentiCommonUtil.getImportoBolli(companyId, dettPratica.getDettPraticaId(), DettPratica.class.getName(), dettPratica.getTipoIntegrazione()); importoBollo = dettPratica.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentoLocalServiceUtil.getImportoBolli(companyId, dettPratica.getDettPraticaId(), DettPratica.class.getName(), dettPratica.getTipoIntegrazione());
} }
%> %>
Importo totale <strong><%= NumberFormat.getCurrencyInstance(Locale.ITALY).format(importoBollo) %></strong> Importo totale <strong><%= NumberFormat.getCurrencyInstance(Locale.ITALY).format(importoBollo) %></strong>

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/pagamenti/view_panel_pagamenti_spese.jsp

@ -1,6 +1,5 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>

10
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java

@ -7,7 +7,6 @@ import it.tref.liferay.portos.bo.service.DocPraticaServiceUtil;
import it.tref.liferay.portos.bo.shared.bean.FirmeBean; 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.Constants;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
@ -67,7 +66,8 @@ public class AllegatiPraticaPortlet extends MVCPortlet {
if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo")) { if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo")) {
controllo = true; controllo = true;
} else { } else {
controllo = DelegheUtil.hasDelegaDeleteFile(serviceContext.getUserId(), docPraticaId, DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId);
controllo = docPratica.hasDelegaDeleteFile(serviceContext.getUserId(),
"page_geologo".equalsIgnoreCase(comingFrom)); "page_geologo".equalsIgnoreCase(comingFrom));
} }
if (controllo) { if (controllo) {
@ -166,7 +166,8 @@ public class AllegatiPraticaPortlet extends MVCPortlet {
|| comingFrom.equalsIgnoreCase("edit_soggetto")) { || comingFrom.equalsIgnoreCase("edit_soggetto")) {
controllo = true; controllo = true;
} else { } else {
controllo = DelegheUtil.hasDelegaFirma(serviceContext.getUserId(), docPraticaId, DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId);
controllo = docPratica.hasDelegaFirma(serviceContext.getUserId(),
"page_geologica".equalsIgnoreCase(comingFrom)); "page_geologica".equalsIgnoreCase(comingFrom));
} }
if (controllo) { if (controllo) {
@ -185,7 +186,8 @@ public class AllegatiPraticaPortlet extends MVCPortlet {
if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo")) { if (comingFrom.equalsIgnoreCase("page_fine_lavori") || comingFrom.equalsIgnoreCase("page_collaudo")) {
controllo = true; controllo = true;
} else { } else {
controllo = DelegheUtil.hasDelegaFirma(serviceContext.getUserId(), docPraticaId, DocPratica docPratica = DocPraticaLocalServiceUtil.getDocPratica(docPraticaId);
controllo = docPratica.hasDelegaFirma(serviceContext.getUserId(),
"page_geologica".equalsIgnoreCase(comingFrom)); "page_geologica".equalsIgnoreCase(comingFrom));
} }
if (controllo) { if (controllo) {

19
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

@ -1,6 +1,7 @@
package it.tref.liferay.portos.fe.portlet; package it.tref.liferay.portos.fe.portlet;
import it.mwg.sismica.bo.shared.util.AsseverazioniUtil; import it.mwg.sismica.bo.shared.util.AsseverazioniUtil;
import it.mwg.sismica.bo.shared.util.DelegheUtil;
import it.mwg.sismica.fe.util.ValidazionePraticaUtil; import it.mwg.sismica.fe.util.ValidazionePraticaUtil;
import it.tref.liferay.portos.bo.model.Asseverazione; import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.Collaudo; import it.tref.liferay.portos.bo.model.Collaudo;
@ -37,8 +38,6 @@ import it.tref.liferay.portos.bo.shared.util.FascicoloURLUtil;
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; import it.tref.liferay.portos.bo.shared.util.FirmeUtil;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil; import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil; import it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil;
import it.tref.liferay.portos.bo.util.DelegheUtil;
import it.tref.liferay.portos.bo.util.MailUtil;
import it.tref.liferay.portos.fe.util.ReportFascicoloUtil; import it.tref.liferay.portos.fe.util.ReportFascicoloUtil;
import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment; import it.tref.liferay.portos.mailmanager.shared.model.FileAttachment;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; import it.tref.liferay.portos.report.shared.constants.ReportConstants;
@ -670,8 +669,7 @@ public class FascicoloFePortlet extends MVCPortlet {
boolean bozza = ParamUtil.getBoolean(request, "bozza"); boolean bozza = ParamUtil.getBoolean(request, "bozza");
if (bozza) { if (bozza) {
saveDatiDettPratica(dettPraticaId, request, response); saveDatiDettPratica(dettPraticaId, request, response);
} else if ("delega".equalsIgnoreCase(cmd) } else if ("delega".equalsIgnoreCase(cmd) && dettPratica.hasDelegaAttiva(serviceContext.getUserId())) {
&& DelegheUtil.hasDelegaAttiva(serviceContext.getUserId(), dettPratica.getDettPraticaId())) {
concludiDelegaDomanda(request, response); concludiDelegaDomanda(request, response);
String successURL = ParamUtil.getString(request, "successURL"); String successURL = ParamUtil.getString(request, "successURL");
response.sendRedirect(successURL); response.sendRedirect(successURL);
@ -696,8 +694,7 @@ public class FascicoloFePortlet extends MVCPortlet {
boolean bozza = ParamUtil.getBoolean(request, "bozza"); boolean bozza = ParamUtil.getBoolean(request, "bozza");
if (bozza) { if (bozza) {
saveDatiTipoPratica(dettPraticaId, request, response); saveDatiTipoPratica(dettPraticaId, request, response);
} else if ("delega".equalsIgnoreCase(cmd) } else if ("delega".equalsIgnoreCase(cmd) && dettPratica.hasDelegaAttiva(serviceContext.getUserId())) {
&& DelegheUtil.hasDelegaAttiva(serviceContext.getUserId(), dettPratica.getDettPraticaId())) {
concludiDelegaDomanda(request, response); concludiDelegaDomanda(request, response);
String successURL = ParamUtil.getString(request, "successURL"); String successURL = ParamUtil.getString(request, "successURL");
response.sendRedirect(successURL); response.sendRedirect(successURL);
@ -1909,7 +1906,7 @@ public class FascicoloFePortlet extends MVCPortlet {
String url = ParamUtil.getString(request, "url"); String url = ParamUtil.getString(request, "url");
if (Validator.isNotNull(dettPraticaId)) { if (Validator.isNotNull(dettPraticaId)) {
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(dettPraticaId);
if (dettPratica.pagamentoIsEnable() && DelegheUtil.canDoPayment(serviceContext.getUserId(), dettPraticaId)) { if (dettPratica.pagamentoIsEnable() && dettPratica.canDoPayment(serviceContext.getUserId())) {
Double pagSoggettiAdAutorizzazione = ParamUtil.getDouble(request, "pagSoggettiAdAutorizzazione"); Double pagSoggettiAdAutorizzazione = ParamUtil.getDouble(request, "pagSoggettiAdAutorizzazione");
Double pagInterventiRestauroManufatti = ParamUtil.getDouble(request, "pagInterventiRestauroManufatti"); Double pagInterventiRestauroManufatti = ParamUtil.getDouble(request, "pagInterventiRestauroManufatti");
Double pagAltriCasiCulturali = ParamUtil.getDouble(request, "pagAltriCasiCulturali"); Double pagAltriCasiCulturali = ParamUtil.getDouble(request, "pagAltriCasiCulturali");
@ -2021,8 +2018,8 @@ public class FascicoloFePortlet extends MVCPortlet {
templateVariablesExtra.put("delega", templateVariablesExtra.put("delega",
LanguageUtil.get(LocaleUtil.ITALIAN, "label-deleghe-tipologia-" + delega.getTipologia())); LanguageUtil.get(LocaleUtil.ITALIAN, "label-deleghe-tipologia-" + delega.getTipologia()));
templateVariablesExtra.put("link", url); templateVariablesExtra.put("link", url);
MailUtil.invioMailNotifica(delega.getIntPraticaId(), delega.getDettPraticaId(), delegaId, intPratica.invioMailNotifica(delega.getDettPraticaId(), delegaId, Delega.class.getName(), to, cc, ccn,
Delega.class.getName(), to, cc, ccn, "INVIO-DELEGA", templateVariablesExtra, null, serviceContext); "INVIO-DELEGA", templateVariablesExtra, null, serviceContext);
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);
throw new SystemException(e); throw new SystemException(e);
@ -2079,8 +2076,8 @@ public class FascicoloFePortlet extends MVCPortlet {
fileAttachment.setFileEntryId(asseverazione.getFileEntryId()); fileAttachment.setFileEntryId(asseverazione.getFileEntryId());
fileAttachment.generateFile(); fileAttachment.generateFile();
allegati.add(fileAttachment); allegati.add(fileAttachment);
MailUtil.invioMailNotifica(asseverazione.getIntPraticaId(), asseverazione.getDettPraticaId(), intPratica.invioMailNotifica(asseverazione.getDettPraticaId(), asseverazioneId,
asseverazioneId, Asseverazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", Asseverazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE",
templateVariablesExtra, allegati, serviceContext); templateVariablesExtra, allegati, serviceContext);
} catch (Exception e) { } catch (Exception e) {
_log.error("Error", e); _log.error("Error", e);

66
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java

@ -1,24 +1,40 @@
package it.tref.liferay.portos.fe.portlet; package it.tref.liferay.portos.fe.portlet;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.ParereGeologo; 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.service.ComuneLocalServiceUtil;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoLocalServiceUtil;
import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil; import it.tref.liferay.portos.bo.service.ParereGeologoServiceUtil;
import it.tref.liferay.portos.bo.util.MailUtil; import it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil;
import it.tref.liferay.portos.bo.service.TerritorioLocalServiceUtil;
import it.tref.liferay.portos.mailmanager.shared.messaging.util.MailManagerUtil;
import java.io.File; import java.io.File;
import java.util.Date;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.language.LanguageUtil;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.servlet.SessionErrors;
import com.liferay.portal.kernel.servlet.SessionMessages; import com.liferay.portal.kernel.servlet.SessionMessages;
import com.liferay.portal.kernel.upload.UploadPortletRequest; import com.liferay.portal.kernel.upload.UploadPortletRequest;
import com.liferay.portal.kernel.util.FastDateFormatFactoryUtil;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.User;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.ServiceContextFactory; import com.liferay.portal.service.ServiceContextFactory;
import com.liferay.portal.util.PortalUtil; import com.liferay.portal.util.PortalUtil;
@ -64,7 +80,7 @@ public class ParereGeologoPortlet extends MVCPortlet {
ParereGeologoServiceUtil ParereGeologoServiceUtil
.updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext); .updateParereGeologo(parereGeologoId, parere, content, fileName, serviceContext);
// ADT: INVIO NOTIFICA PARERE ALL ISTRUTTORE // ADT: INVIO NOTIFICA PARERE ALL ISTRUTTORE
MailUtil.invioNotificaIstruttoreByGeologo(parereGeologoId, serviceContext); invioNotificaIstruttoreByGeologo(parereGeologo, serviceContext);
} else { } else {
throw new PortalException("parere già espresso"); throw new PortalException("parere già espresso");
} }
@ -74,4 +90,50 @@ public class ParereGeologoPortlet extends MVCPortlet {
SessionErrors.add(actionRequest, "error-update-parere-geologo"); SessionErrors.add(actionRequest, "error-update-parere-geologo");
} }
} }
// Invio notifica istruttore dopo inserimento parere geologo
private static void invioNotificaIstruttoreByGeologo(ParereGeologo parereGeologo, ServiceContext serviceContext) {
_log.info("start invioNotificaIstruttoreByGeologo parereGeologoId=" + parereGeologo.getParereGeologoId());
long intPraticaId = 0L;
try {
intPraticaId = parereGeologo.getIntPraticaId();
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
User tecnicoIstruttore = intPratica.recuperaTecnicoIstruttore();
_log.info("email tecnico istruttore=" + tecnicoIstruttore.getEmailAddress());
String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
// recupero dati
String tipoPratica = StringPool.BLANK;
if (intPratica.isDeposito()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (intPratica.isAutorizzazione()) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(),
territorio.getCodiceProvincia());
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", "Risposta a Richiesta Parere Endoprocedimentale");
templateVariables
.put("dataInvio",
FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(
parereGeologo.getDtCompilazione() != null ? parereGeologo.getDtCompilazione()
: new Date()));
templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
templateVariables.put("provincia", provincia.getProvincia());
templateVariables.put("comune", comune.getDenominazione());
String className = ParereGeologo.class.getName();
long classPk = parereGeologo.getParereGeologoId();
MailManagerUtil.sendMailByTemplatName(className, classPk, "NOTIFICA-BO", to, cc, ccn, templateVariables,
null, serviceContext);
} catch (Exception e) {
_log.error("invioNotificaIstruttoreByGeologo - Errore invio mail al tecnico istruttore per pratica id="
+ intPraticaId, e);
}
}
} }

4
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/allegati_action.jsp

@ -3,7 +3,6 @@
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%> <%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeBean"%>
@ -30,8 +29,7 @@ long docPraticaId = ParamUtil.getLong(request, "docPraticaId");
DocPratica docPratica = DocPraticaServiceUtil.getDocPratica(docPraticaId); DocPratica docPratica = DocPraticaServiceUtil.getDocPratica(docPraticaId);
FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari()); FirmeBean firme = FirmeUtil.deserialize(docPratica.getJsonFirmatari());
boolean disabledInput = ParamUtil.getBoolean(request, "disabledInput", false); boolean disabledInput = ParamUtil.getBoolean(request, "disabledInput", false);
boolean hasDelegaFirma = DelegheUtil.hasDelegaFirma(user.getUserId(), docPraticaId, boolean hasDelegaFirma = docPratica.hasDelegaFirma(user.getUserId(), "page_geologica".equalsIgnoreCase(comingFrom));
"page_geologica".equalsIgnoreCase(comingFrom));
boolean canSignGeoDocs = "page_geologica".equalsIgnoreCase(comingFrom) && hasDelegaFirma; boolean canSignGeoDocs = "page_geologica".equalsIgnoreCase(comingFrom) && hasDelegaFirma;
%> %>
<liferay-ui:icon-menu icon="" showExpanded="true" showWhenSingleIcon="true"> <liferay-ui:icon-menu icon="" showExpanded="true" showWhenSingleIcon="true">

5
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/allegatipratica/view.jsp

@ -22,7 +22,6 @@
<%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%> <%@page import="it.tref.liferay.portos.bo.shared.bean.FirmeDetail"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.FirmeUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@include file="/html/soggettipratica/init.jsp"%> <%@include file="/html/soggettipratica/init.jsp"%>
<% <%
@ -66,10 +65,10 @@ if (Validator.isNotNull(request.getParameter("disabled"))) {
} else if ("page_allegati".equalsIgnoreCase(comingFrom)) { } else if ("page_allegati".equalsIgnoreCase(comingFrom)) {
disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId()) disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId())
&& !dettPratica.hasDelegaFirmaAllegati(user.getUserId()); && !dettPratica.hasDelegaFirmaAllegati(user.getUserId());
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(classPk); soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
} else if ("page_geologica".equalsIgnoreCase(comingFrom)) { } else if ("page_geologica".equalsIgnoreCase(comingFrom)) {
disabledInput = !dettPratica.hasDelegaCompilazioneSezioneGeologica(user.getUserId()); disabledInput = !dettPratica.hasDelegaCompilazioneSezioneGeologica(user.getUserId());
soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(classPk); soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneSezioneGeologica();
canSignGeoDocs = true; canSignGeoDocs = true;
} else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) { } else if ("page_fine_lavori".equalsIgnoreCase(comingFrom)) {
disabledInput = disabled; disabledInput = disabled;

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/asseverazione_actions.jsp

@ -18,7 +18,7 @@ String random = StringUtil.randomId().toString();
<% <%
DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId()); DettPratica dettPratica = DettPraticaLocalServiceUtil.getDettPratica(asseverazione.getDettPraticaId());
%> %>
<c:if test='<%= DelegheUtil.canCompilaDomanda(user.getUserId(), asseverazione.getDettPraticaId()) <c:if test='<%= dettPratica.canCompilaDomanda(user.getUserId())
&& dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT %>'> && dettPratica.getStatus() == WorkflowConstants.STATUS_DRAFT %>'>
<c:if test="<%= AsseverazioniUtil.STATO_ASSEGNATA.equalsIgnoreCase(asseverazione.getEsito()) %>"> <c:if test="<%= AsseverazioniUtil.STATO_ASSEGNATA.equalsIgnoreCase(asseverazione.getEsito()) %>">
<% <%

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_collaudo.jsp

@ -12,7 +12,6 @@
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fascicolo.jsp

@ -125,7 +125,7 @@ String[] _CATEGORY_NAMES = { "cat_dati_domanda" };
</aui:script> </aui:script>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= openVerifyUrl && DelegheUtil.canDoPayment(user.getUserId(), dettPraticaId) %>"> <c:if test="<%= openVerifyUrl && dettPratica.canDoPayment(user.getUserId()) %>">
<c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>"> <c:if test="<%= !TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) %>">
<c:if test='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'> <c:if test='<%= "verifyPagamenti".equalsIgnoreCase(verifyArea) %>'>
<liferay-portlet:renderURL var="verifyPagamentiRenderURL" <liferay-portlet:renderURL var="verifyPagamentiRenderURL"

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_fine-lavori.jsp

@ -10,7 +10,6 @@
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/init.jsp

@ -25,7 +25,6 @@
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ComuneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/html_top_pagamento.jspf

@ -4,7 +4,6 @@
<%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<div class="container-fluid clearfix"> <div class="container-fluid clearfix">
<div class="row"> <div class="row">
<div class="col-xs-9"> <div class="col-xs-9">
@ -23,7 +22,7 @@
cssClass="inline_toolbar"> cssClass="inline_toolbar">
<c:if test="<%= intPratica.getUserId() == user.getUserId() <c:if test="<%= intPratica.getUserId() == user.getUserId()
|| dettPratica.getUserId() == user.getUserId() || dettPratica.getUserId() == user.getUserId()
|| DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>"> || dettPratica.hasDelegaPagamento(user.getUserId()) %>">
<liferay-portlet:renderURL var="calcolaURL" <liferay-portlet:renderURL var="calcolaURL"
windowState="<%= LiferayWindowState.POP_UP.toString() %>"> windowState="<%= LiferayWindowState.POP_UP.toString() %>">
<liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" /> <liferay-portlet:param name="intPraticaId" value="<%= String.valueOf(intPraticaId) %>" />

12
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/common/save_actions.jspf

@ -6,6 +6,7 @@
<%@page import="com.liferay.portal.kernel.util.StringPool"%> <%@page import="com.liferay.portal.kernel.util.StringPool"%>
<%@page import="com.liferay.portal.kernel.util.StringUtil"%> <%@page import="com.liferay.portal.kernel.util.StringUtil"%>
<%@page import="com.liferay.portal.kernel.util.Validator"%> <%@page import="com.liferay.portal.kernel.util.Validator"%>
<%@page import="it.mwg.sismica.bo.shared.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.model.Delega"%> <%@page import="it.tref.liferay.portos.bo.model.Delega"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
@ -17,7 +18,6 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.SezioniUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.SezioniUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="java.util.HashMap"%> <%@page import="java.util.HashMap"%>
<%@page import="java.util.List"%> <%@page import="java.util.List"%>
<%@page import="java.util.Map"%> <%@page import="java.util.Map"%>
@ -52,18 +52,18 @@ String script =
linkCssClass="btn" /> linkCssClass="btn" />
</c:if> </c:if>
<c:if test="<%= intPratica.getUserId() == user.getUserId() <c:if test="<%= intPratica.getUserId() == user.getUserId()
&& !DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) && !dettPratica.hasDelegaAttiva(user.getUserId())
&& !dettPratica.hasAsseverazioneAttiva(user.getUserId()) %>"> && !dettPratica.hasAsseverazioneAttiva(user.getUserId()) %>">
<liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-verifica" linkCssClass="btn btn-primary" <liferay-ui:icon iconCssClass="fa fa-check-square" message="salva-verifica" linkCssClass="btn btn-primary"
url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo')" /> url="javascript:saveDettPratica(false, 'domanda', 'verifyFascicolo')" />
</c:if> </c:if>
<c:if test="<%= DelegheUtil.canCompilaDomanda(user.getUserId(), dettPraticaId) %>"> <c:if test="<%= dettPratica.canCompilaDomanda(user.getUserId()) %>">
<liferay-ui:icon iconCssClass="fa fa-users" <liferay-ui:icon iconCssClass="fa fa-users"
linkCssClass='<%= dettPratica.delegheCompilazioneIsEnable() ? "btn" linkCssClass='<%= dettPratica.delegheCompilazioneIsEnable() ? "btn"
:"btn disabled" %>' :"btn disabled" %>'
message="gestione-deleghe" url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe')" /> message="gestione-deleghe" url="javascript:saveDettPratica(false, 'domanda', 'verifyDeleghe')" />
</c:if> </c:if>
<c:if test="<%= DelegheUtil.canDoPayment(user.getUserId(),dettPraticaId) %>"> <c:if test="<%= dettPratica.canDoPayment(user.getUserId()) %>">
<% <%
boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese(); boolean isEsente = dettPratica.getNormEsenteBollo() && dettPratica.getNormEsenteSpese();
boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil boolean isIntegrazione = dettPratica.getTipoIntegrazione().equals(TipoIntegrazioneUtil
@ -115,8 +115,8 @@ String script =
</c:if> </c:if>
</c:if> </c:if>
</c:if> </c:if>
<c:if test="<%= DelegheUtil.hasDelegaAttiva(user.getUserId(),dettPraticaId) && <c:if test="<%= dettPratica.hasDelegaAttiva(user.getUserId()) &&
!DelegheUtil.hasDelegaPagamento(user.getUserId(), dettPraticaId) %>"> !dettPratica.hasDelegaPagamento(user.getUserId()) %>">
<liferay-ui:icon iconCssClass="fa fa-save" message="save" url="javascript:saveDettPratica(true)" <liferay-ui:icon iconCssClass="fa fa-save" message="save" url="javascript:saveDettPratica(true)"
linkCssClass="btn" /> linkCssClass="btn" />
<% <%

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_allegati.jsp

@ -1,5 +1,4 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_asseverazioni_riepilogo.jsp

@ -3,7 +3,6 @@
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.model.IntPratica"%> <%@page import="it.tref.liferay.portos.bo.model.IntPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
@ -15,7 +14,7 @@ DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica")
long dettPraticaId = dettPratica.getDettPraticaId(); long dettPraticaId = dettPratica.getDettPraticaId();
long intPraticaId = dettPratica.getIntPraticaId(); long intPraticaId = dettPratica.getIntPraticaId();
boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId()); boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId());
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>"/> <liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>"/>

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_desc_edificio.jsp

@ -1,7 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="it.tref.liferay.portos.bo.model.Provincia"%> <%@page import="it.tref.liferay.portos.bo.model.Provincia"%>
<%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ProvinciaLocalServiceUtil"%>
@ -14,7 +13,7 @@
<% <%
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica"); DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
request.setAttribute("bean.dettPratica",dettPratica); request.setAttribute("bean.dettPratica",dettPratica);
boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId()) boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId())
|| TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()); || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione());

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_dettagli_principali.jsp

@ -4,7 +4,6 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Soggetto"%> <%@page import="it.tref.liferay.portos.bo.model.Soggetto"%>
<%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%> <%@page import="com.liferay.portal.kernel.workflow.WorkflowConstants"%>
<%@page import="java.util.regex.Pattern"%> <%@page import="java.util.regex.Pattern"%>
@ -30,7 +29,7 @@ IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.get
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(intPratica.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(territorio.getCompanyId(), territorio.getCodiceProvincia());
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
request.setAttribute("bean.dettPratica",dettPratica); request.setAttribute("bean.dettPratica",dettPratica);
boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId()) boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId())
|| TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione()) || TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(dettPratica.getTipoIntegrazione())

4
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_geologica.jsp

@ -6,7 +6,7 @@
<% <%
DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica"); DettPratica dettPratica = (DettPratica) request.getAttribute("bean.dettPratica");
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
List<Soggetto> responsabiliCompilazione = DelegheUtil.getGeologi(intPratica.getIntPraticaId()); List<Soggetto> responsabiliCompilazione = intPratica.getGeologi();
if (responsabiliCompilazione.size() > 0) { if (responsabiliCompilazione.size() > 0) {
request.setAttribute("responsabiliCompilazione", responsabiliCompilazione); request.setAttribute("responsabiliCompilazione", responsabiliCompilazione);
} }
@ -20,7 +20,7 @@ if (responsabiliCompilazione.size() > 0) {
boolean disabledInput = !dettPratica.hasDelegaCompilazioneSezioneGeologica(user.getUserId()) boolean disabledInput = !dettPratica.hasDelegaCompilazioneSezioneGeologica(user.getUserId())
|| !dettPratica.praticaIsEditable() || !dettPratica.praticaIsEditable()
|| !isGeologo; || !isGeologo;
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneSezioneGeologica(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneSezioneGeologica();
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">
<liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" /> <liferay-util:param name="disabledInput" value="<%= String.valueOf(disabledInput) %>" />

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/domanda/page_soggetti.jsp

@ -15,7 +15,7 @@ IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.get
String tipoIntegrazione = (String) request.getAttribute("bean.tipoIntegrazione"); String tipoIntegrazione = (String) request.getAttribute("bean.tipoIntegrazione");
boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId()) boolean disabledInput = !dettPratica.hasDelegaCompilazioneDomanda(user.getUserId())
|| (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) && dettPratica.isCompleta()); || (TipoIntegrazioneUtil.VARIAZIONE_SOGGETTO.equals(tipoIntegrazione) && dettPratica.isCompleta());
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
%> %>
<liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/navigator/header.jsp" servletContext="<%= application %>">

6
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/navigator/header.jsp

@ -1,8 +1,8 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="org.apache.commons.lang.StringUtils"%> <%@page import="org.apache.commons.lang.StringUtils"%>
<%@ include file="/html/fascicolofe/init.jsp"%> <%@ include file="/html/fascicolofe/init.jsp"%>
<% <%
@ -51,8 +51,8 @@ boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
</div> </div>
</c:when> </c:when>
<c:when <c:when
test="<%= PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(), DettPratica.class test="<%= PagamentoLocalServiceUtil.pagamentiInitialized(dettPratica.getDettPraticaId(),
.getName()) %>"> DettPratica.class.getName()) %>">
<div class="alert alert-warn"><liferay-ui:message key="pagamento-attivo-domanda-non-modificabile" /></div> <div class="alert alert-warn"><liferay-ui:message key="pagamento-attivo-domanda-non-modificabile" /></div>
</c:when> </c:when>
</c:choose> </c:choose>

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/pagamenti/replace_payment.jsp

@ -1,6 +1,5 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.util.UUID"%> <%@page import="java.util.UUID"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%> <%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>

9
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_collaudo_calcolo.jsp

@ -4,7 +4,6 @@
<%@page import="it.tref.liferay.portos.bo.model.Collaudo"%> <%@page import="it.tref.liferay.portos.bo.model.Collaudo"%>
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%> <%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoServiceUtil"%>
@ -74,7 +73,7 @@
<h2 class="title-fascicolo pull-left">Calcolo importo</h2> <h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>"> <c:if test="<%= !PagamentoLocalServiceUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>">
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-chevron-left" iconCssClass="fa fa-chevron-left"
message="go-back" message="go-back"
@ -171,7 +170,7 @@
</div> </div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>"> <c:if test="<%= PagamentoLocalServiceUtil.pagamentiCompleted(collaudo.getCollaudoId(), Collaudo.class.getName()) %>">
<liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" >
<liferay-util:param name="classPk" value="<%=String.valueOf(collaudo.getCollaudoId())%>" /> <liferay-util:param name="classPk" value="<%=String.valueOf(collaudo.getCollaudoId())%>" />
<liferay-util:param name="className" value="<%=Collaudo.class.getName()%>" /> <liferay-util:param name="className" value="<%=Collaudo.class.getName()%>" />
@ -179,7 +178,7 @@
<div class="separator" style="margin: 30px 0 40px 0"></div> <div class="separator" style="margin: 30px 0 40px 0"></div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(collaudo.getCollaudoId(), Collaudo.class.getName()) %>"> <c:if test="<%= PagamentoLocalServiceUtil.pagamentiInitialized(collaudo.getCollaudoId(), Collaudo.class.getName()) %>">
<h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2> <h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2>
</c:if> </c:if>
@ -239,7 +238,7 @@
if(Validator.isNotNull(pagamento)){ if(Validator.isNotNull(pagamento)){
importoBollo = new BigDecimal(pagamento.getImporto()); importoBollo = new BigDecimal(pagamento.getImporto());
} else { } else {
importoBollo = collaudo.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentiCommonUtil.getImportoBolli(companyId, collaudo.getCollaudoId(), Collaudo.class.getName(), TipoIntegrazioneUtil.COLLAUDO); importoBollo = collaudo.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentoLocalServiceUtil.getImportoBolli(companyId, collaudo.getCollaudoId(), Collaudo.class.getName(), TipoIntegrazioneUtil.COLLAUDO);
} }
%> %>
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div> <div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div>

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo.jsp

@ -1,5 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.ParamUtil"%> <%@page import="com.liferay.portal.kernel.util.ParamUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.DelegheUtil"%>
<%@page import="it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil"%> <%@page import="it.mwg.sismica.bo.shared.util.DocumentiPraticaUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%> <%@page import="it.tref.liferay.portos.bo.model.Asseverazione"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
@ -97,7 +98,7 @@ if (dettPratica == null) {
if (SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0) { if (SoggettoLocalServiceUtil.countValidTmpByIntPratica(dettPratica.getIntPraticaId()) == 0) {
tooltipAsseverazioni.append("<li>Nessun soggetto</li>"); tooltipAsseverazioni.append("<li>Nessun soggetto</li>");
} }
if (DelegheUtil.hasDelegheCompilazioneAttive(dettPraticaId)) { if (dettPratica.hasDelegheCompilazioneAttive()) {
tooltipAsseverazioni.append("<li>Deleghe Attive</li>"); tooltipAsseverazioni.append("<li>Deleghe Attive</li>");
} }
tooltipAsseverazioni.append("</ul>"); tooltipAsseverazioni.append("</ul>");

12
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp

@ -1,5 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.model.Organization"%> <%@page import="com.liferay.portal.model.Organization"%>
<%@page import="it.mwg.sismica.bo.shared.util.PagamentiUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DettPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DettPratica"%>
<%@page import="it.tref.liferay.portos.bo.model.Pagamento"%> <%@page import="it.tref.liferay.portos.bo.model.Pagamento"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaServiceUtil"%>
@ -8,7 +9,6 @@
<%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.SoggettoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
@ -67,7 +67,7 @@ if (Validator.isNotNull(dettPratica.getPagamentoIdBolli())) {
} }
String formRicevutaPagamento = "fmRicevuta"; String formRicevutaPagamento = "fmRicevuta";
String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request); String currentCompleteUrl = PortalUtil.getCurrentCompleteURL(request);
boolean disabledIstruttoria = !PagamentiCommonUtil.existsSpeseIstruttoria(dettPratica.getTipoIntegrazione()) boolean disabledIstruttoria = !PagamentiUtil.existsSpeseIstruttoria(dettPratica.getTipoIntegrazione())
|| dettPratica.isNormEsenteSpese(); || dettPratica.isNormEsenteSpese();
boolean archivio = false; boolean archivio = false;
boolean beniCulturali = true; boolean beniCulturali = true;
@ -110,7 +110,7 @@ switch (intPratica.getTipoRichiesta()) {
<div class="pull-right"> <div class="pull-right">
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true"
cssClass="inline_toolbar"> cssClass="inline_toolbar">
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(dettPratica.getDettPraticaId(), <c:if test="<%= !PagamentoLocalServiceUtil.pagamentiCompleted(dettPratica.getDettPraticaId(),
DettPratica.class.getName()) %>"> DettPratica.class.getName()) %>">
<liferay-ui:icon iconCssClass="fa fa-chevron-left" message="go-back" url="<%= verifyURL %>" <liferay-ui:icon iconCssClass="fa fa-chevron-left" message="go-back" url="<%= verifyURL %>"
linkCssClass="btn" /> linkCssClass="btn" />
@ -324,7 +324,7 @@ switch (intPratica.getTipoRichiesta()) {
</div> </div>
</div> </div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(dettPratica.getDettPraticaId(), <c:if test="<%= PagamentoLocalServiceUtil.pagamentiCompleted(dettPratica.getDettPraticaId(),
DettPratica.class.getName()) %>"> DettPratica.class.getName()) %>">
<liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>"> <liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>">
<liferay-util:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" /> <liferay-util:param name="classPk" value="<%= String.valueOf(dettPratica.getDettPraticaId()) %>" />
@ -332,7 +332,7 @@ switch (intPratica.getTipoRichiesta()) {
</liferay-util:include> </liferay-util:include>
<div class="separator" style="margin: 30px 0 40px 0"></div> <div class="separator" style="margin: 30px 0 40px 0"></div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(dettPratica.getDettPraticaId(), <c:if test="<%= PagamentoLocalServiceUtil.pagamentiInitialized(dettPratica.getDettPraticaId(),
DettPratica.class.getName()) %>"> DettPratica.class.getName()) %>">
<h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2> <h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2>
</c:if> </c:if>
@ -741,7 +741,7 @@ switch (intPratica.getTipoRichiesta()) {
importoBollo = new BigDecimal(pagamentoBolli.getImporto()); importoBollo = new BigDecimal(pagamentoBolli.getImporto());
} else { } else {
importoBollo = dettPratica.isNormEsenteBollo() ? new BigDecimal("0.00") importoBollo = dettPratica.isNormEsenteBollo() ? new BigDecimal("0.00")
: PagamentiCommonUtil.getImportoBolli(companyId, dettPratica : PagamentoLocalServiceUtil.getImportoBolli(companyId, dettPratica
.getDettPraticaId(), DettPratica.class.getName(), .getDettPraticaId(), DettPratica.class.getName(),
dettPratica.getTipoIntegrazione()); dettPratica.getTipoIntegrazione());
} }

9
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fine-lavori_calcolo.jsp

@ -4,7 +4,6 @@
<%@page import="it.tref.liferay.portos.bo.model.FineLavori"%> <%@page import="it.tref.liferay.portos.bo.model.FineLavori"%>
<%@page import="com.liferay.portal.kernel.util.LocaleUtil"%> <%@page import="com.liferay.portal.kernel.util.LocaleUtil"%>
<%@page import="java.util.Locale"%> <%@page import="java.util.Locale"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoServiceUtil"%>
@ -73,7 +72,7 @@
<h2 class="title-fascicolo pull-left">Calcolo importo</h2> <h2 class="title-fascicolo pull-left">Calcolo importo</h2>
<div class="pull-right" > <div class="pull-right" >
<liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" > <liferay-ui:icon-menu showWhenSingleIcon="false" extended="false" showExpanded="true" cssClass="inline_toolbar" >
<c:if test="<%= !PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> <c:if test="<%= !PagamentoLocalServiceUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<liferay-ui:icon <liferay-ui:icon
iconCssClass="fa fa-chevron-left" iconCssClass="fa fa-chevron-left"
message="go-back" message="go-back"
@ -171,7 +170,7 @@
</div> </div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> <c:if test="<%= PagamentoLocalServiceUtil.pagamentiCompleted(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" > <liferay-util:include page="/html/fascicolofe/completed_fascicolo.jsp" servletContext="<%= application %>" >
<liferay-util:param name="classPk" value="<%=String.valueOf(fineLavori.getFineLavoriId())%>" /> <liferay-util:param name="classPk" value="<%=String.valueOf(fineLavori.getFineLavoriId())%>" />
<liferay-util:param name="className" value="<%=FineLavori.class.getName()%>" /> <liferay-util:param name="className" value="<%=FineLavori.class.getName()%>" />
@ -179,7 +178,7 @@
<div class="separator" style="margin: 30px 0 40px 0"></div> <div class="separator" style="margin: 30px 0 40px 0"></div>
</c:if> </c:if>
<c:if test="<%= PagamentiCommonUtil.pagamentiInitialized(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>"> <c:if test="<%= PagamentoLocalServiceUtil.pagamentiInitialized(fineLavori.getFineLavoriId(), FineLavori.class.getName()) %>">
<h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2> <h2 class="pagamento_riepilogo text-center txt-bold">Riepilogo</h2>
</c:if> </c:if>
@ -239,7 +238,7 @@
if(Validator.isNotNull(pagamento)){ if(Validator.isNotNull(pagamento)){
importoBollo = new BigDecimal(pagamento.getImporto()); importoBollo = new BigDecimal(pagamento.getImporto());
} else { } else {
importoBollo = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentiCommonUtil.getImportoBolli(companyId, fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI); importoBollo = fineLavori.isNormEsenteBollo() ? new BigDecimal("0.00") : PagamentoLocalServiceUtil.getImportoBolli(companyId, fineLavori.getFineLavoriId(), FineLavori.class.getName(), TipoIntegrazioneUtil.FINE_LAVORI);
} }
%> %>
<div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div> <div class="total-row__value"><strong> <%= NumberFormat.getCurrencyInstance(LocaleUtil.getSiteDefault()).format(importoBollo) %></strong></div>

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_collaudi_columns.jsp

@ -1,7 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_deleghe_columns.jsp

@ -1,7 +1,7 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.mwg.sismica.bo.shared.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>

5
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_columns_generic.jspf

@ -24,7 +24,6 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%> <%@page import="it.tref.liferay.portos.bo.util.PraticaUtil"%>
<%@page import="java.util.Arrays"%> <%@page import="java.util.Arrays"%>
<%@page import="java.util.List"%> <%@page import="java.util.List"%>
@ -113,14 +112,14 @@ if (lastDettPratica == null) {
int delegheCount = DelegaLocalServiceUtil.countByDettPratica(lastDettPratica.getDettPraticaId()); int delegheCount = DelegaLocalServiceUtil.countByDettPratica(lastDettPratica.getDettPraticaId());
%> %>
<c:if test="<%= delegheCount > 0 %>"> <c:if test="<%= delegheCount > 0 %>">
<c:if test="<%= DelegheUtil.hasDelegheCompilazioneAttive(lastDettPratica.getDettPraticaId()) %>"> <c:if test="<%= lastDettPratica.hasDelegheCompilazioneAttive() %>">
<span class="btn status-icon tooltip-info btn-action" title="Deleghe in corso"> <span class="btn status-icon tooltip-info btn-action" title="Deleghe in corso">
<i class="fa fa-hand-o-right relative"> <i class="fa fa-hand-o-right relative">
<i class="fa fa-hover fa-cog fa-top-right txt-orange"></i> <i class="fa fa-hover fa-cog fa-top-right txt-orange"></i>
</i> </i>
</span> </span>
</c:if> </c:if>
<c:if test="<%= !DelegheUtil.hasDelegheCompilazioneAttive(lastDettPratica.getDettPraticaId()) %>"> <c:if test="<%= !lastDettPratica.hasDelegheCompilazioneAttive() %>">
<span class="btn status-icon tooltip-info btn-action" title="Nessuna delega attiva"> <span class="btn status-icon tooltip-info btn-action" title="Nessuna delega attiva">
<i class="fa fa-hand-o-right relative"> <i class="fa fa-hand-o-right relative">
<i class="fa fa-hover fa-check fa-top-right txt-green"></i> <i class="fa fa-hover fa-check fa-top-right txt-green"></i>

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_comunicazioni.jsp

@ -1,5 +1,4 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_fascicolo_dettagli.jsp

@ -1,10 +1,10 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.mwg.sismica.bo.shared.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.model.DocPratica"%> <%@page import="it.tref.liferay.portos.bo.model.DocPratica"%>
<%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DocPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DettPraticaLocalServiceUtil"%>
<%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%> <%@page import="com.liferay.portal.kernel.servlet.ServletContextPool"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PagamentoConstants"%>
<%@page import="it.tref.liferay.portos.bo.util.PagamentiCommonUtil"%>
<%@page import="java.text.NumberFormat"%> <%@page import="java.text.NumberFormat"%>
<%@page import="java.math.BigDecimal"%> <%@page import="java.math.BigDecimal"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%> <%@page import="it.tref.liferay.portos.bo.shared.util.PortletKeys"%>

1
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/view_finelavori_columns.jsp

@ -1,7 +1,6 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.ControlloPraticaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%> <%@page import="it.tref.liferay.portos.bo.service.PagamentoLocalServiceUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view.jsp

@ -21,7 +21,6 @@
<%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%> <%@page import="it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil"%>
<%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%> <%@page import="it.tref.liferay.portos.bo.shared.util.TipoSoggettoUtil"%>
<%@page import="it.tref.liferay.portos.bo.util.DelegheUtil"%>
<%@page import="java.text.DateFormat"%> <%@page import="java.text.DateFormat"%>
<%@page import="java.util.ArrayList"%> <%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%> <%@page import="java.util.HashMap"%>
@ -40,7 +39,7 @@ if (Validator.isNull(dettPratica)) {
request.setAttribute("bean.dettPratica", dettPratica); request.setAttribute("bean.dettPratica", dettPratica);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
boolean disabledInput = !dettPratica.praticaIsEditable(); boolean disabledInput = !dettPratica.praticaIsEditable();
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
%> %>
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" /> <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />

2
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/soggettipratica/view_valida_fino.jsp

@ -12,7 +12,7 @@ if (Validator.isNull(dettPratica)) {
boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId()); boolean disabledInput = !DelegheUtil.hasDelegaCompilazioneDomanda(user.getUserId(), dettPratica.getDettPraticaId());
request.setAttribute("bean.dettPratica", dettPratica); request.setAttribute("bean.dettPratica", dettPratica);
IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId()); IntPratica intPratica = IntPraticaServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
Soggetto soggettoDelegato = DelegheUtil.getPersonaDelegaCompilazioneDomanda(dettPratica.getDettPraticaId()); Soggetto soggettoDelegato = dettPratica.getPersonaDelegaCompilazioneDomanda();
boolean inBO = ParamUtil.getBoolean(request, "inBO", false); boolean inBO = ParamUtil.getBoolean(request, "inBO", false);
%> %>
<aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" /> <aui:model-context bean="<%= dettPratica %>" model="<%= DettPratica.class %>" />

38
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/AvvisoUtil.java → liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/AvvisoUtil.java

@ -1,27 +1,15 @@
package it.tref.liferay.portos.bo.util; package it.mwg.sismica.bo.shared.util;
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.shared.util.Constants; 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.StatoPraticaConstants;
import it.tref.liferay.portos.bo.shared.util.TipoIntegrazioneUtil;
import java.util.Collection; import java.util.Collection;
import java.util.HashSet; import java.util.HashSet;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
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;
public class AvvisoUtil { public class AvvisoUtil {
private static Log _log = LogFactoryUtil.getLog(AvvisoUtil.class);
// Ogni volta che leggo queste due righe mi sale la cattiveria // Ogni volta che leggo queste due righe mi sale la cattiveria
public static final String DOCUMENTO_INVIATO = "S"; public static final String DOCUMENTO_INVIATO = "S";
public static final String DOCUMENTO_NON_INVIATO = "N"; public static final String DOCUMENTO_NON_INVIATO = "N";
@ -205,30 +193,6 @@ public class AvvisoUtil {
return result; return result;
} }
public static String getTipoReport(DettPratica dettPratica, String tipoDocumento) {
String tipoReport = null;
try {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(dettPratica.getIntPraticaId());
if (Validator.isNull(dettPratica.getTipoIntegrazione())
|| (Validator.isNotNull(dettPratica.getTipoIntegrazione()) && dettPratica.getTipoIntegrazione()
.equals(TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE))) {}
if (intPratica.getTipoPratica().equals(Constants.TIPO_PRATICA_AUTORIZZAZIONE)
&& (tipoDocumento.equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)
|| tipoDocumento.equals(StatoPraticaConstants.INTEGRAZIONE)
|| tipoDocumento.equals(StatoPraticaConstants.PREAVVISO_CONTRARIO)
|| tipoDocumento.equals(StatoPraticaConstants.PERIZIA_SANZIONE) || tipoDocumento
.equals(StatoPraticaConstants.DECRETO_SANZIONE))) {
tipoReport = TIPO_REPORT_AUTORIZZAZIONE;
} else {
tipoReport = TIPO_REPORT_CONTROLLO_OBBLIGATORIO;
}
} catch (SystemException | PortalException e) {
_log.warn(e, e);
}
return tipoReport;
}
public static boolean isStatoPraticaValidoNuovoAvviso(String statoPratica) { public static boolean isStatoPraticaValidoNuovoAvviso(String statoPratica) {
// TODO: In attesa di specifiche su stati validi // TODO: In attesa di specifiche su stati validi

35
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/mwg/sismica/bo/shared/util/DelegheUtil.java

@ -0,0 +1,35 @@
package it.mwg.sismica.bo.shared.util;
import java.util.HashMap;
import java.util.Map;
public class DelegheUtil {
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_RIFIUTATA = "RI";
public static final String TIPO_TOTALE = "TT";
public static final String TIPO_COMPILAZIONE = "CO";
public static final String TIPO_GEOLOGO = "GE";
public static final String TIPO_FIRMA_INSERIMENTO_ALLEGATI = "FI";
public static final String TIPO_PAGAMENTO = "PG";
public static final String TIPO_VISUALIZZAZIONE = "VI";
public static final String TIPO_FINE_LAVORI = "FL";
public static final String TIPO_COLLAUDO = "CL";
@SuppressWarnings("serial")
public static final Map<String, String> iconMapper = new HashMap<String, String>() {
{
put(TIPO_TOTALE, "fa-bullseye");
put(TIPO_COMPILAZIONE, "fa-pencil");
put(TIPO_FIRMA_INSERIMENTO_ALLEGATI, "fa-paperclip");
put(TIPO_GEOLOGO, "fa-globe");
put(TIPO_COLLAUDO, "fa-cogs");
put(TIPO_PAGAMENTO, "fa-eur");
put(TIPO_VISUALIZZAZIONE, "fa-eye");
put(TIPO_FINE_LAVORI, "fa-window-close");
}
};
}

Some files were not shown because too many files have changed in this diff Show More

Caricamento…
Annulla
Salva