Sfoglia il codice sorgente

Delega committente

master
Salvatore La Manna 4 anni fa
parent
commit
eb5f007277
  1. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar
  2. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar
  3. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar
  4. BIN
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar
  5. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/DelegheUtil.java
  6. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/scheduler/SchedulerWorkflow.java
  7. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ManutenzioneDatabase.java
  8. 38
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/SismicaUtil.java
  9. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRenderer.java
  10. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/asset/ControlloPraticaAssetRendererFactory.java
  11. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java
  12. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java
  13. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java
  14. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeImpl.java
  15. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java
  16. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AvvisoImpl.java
  17. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java
  18. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java
  19. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java
  20. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java
  21. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java
  22. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java
  23. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java
  24. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java
  25. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java
  26. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java
  27. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java
  28. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/IntPraticaImpl.java
  29. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java
  30. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java
  31. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java
  32. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java
  33. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaImpl.java
  34. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TempisticaImpl.java
  35. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java
  36. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/ControlloPraticaModelListener.java
  37. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java
  38. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DocPraticaModelListener.java
  39. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java
  40. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceModelListener.java
  41. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java
  42. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoLogModelListener.java
  43. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java
  44. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/SoggettoModelListener.java
  45. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AllegatiManualiPortlet.java
  46. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java
  47. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/DocAggiuntivaPortlet.java
  48. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FascicoloPortlet.java
  49. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GenerateProtocolloCSVPortlet.java
  50. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneAttivitaIstruttorePortlet.java
  51. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/GestioneFirmePortlet.java
  52. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/HomeBOPortlet.java
  53. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PaesaggisticaAdministrationPortlet.java
  54. 74
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/PagamentiPendingPortlet.java
  55. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/RicercaProtocolloPortlet.java
  56. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/TempistichePortlet.java
  57. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoAllegatoBean.java
  58. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/bean/ReportAvvisoBean.java
  59. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoAllegatoBeanBuilder.java
  60. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoBeanBuilder.java
  61. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/report/builder/builder/ReportAvvisoSoggettoBeanBuilder.java
  62. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerEstrazioneFirme.java
  63. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraDocumento.java
  64. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerGeneraProtocollo.java
  65. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  66. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  67. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java
  68. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeServiceImpl.java
  69. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneLocalServiceImpl.java
  70. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java
  71. 52
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoLocalServiceImpl.java
  72. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AvvisoServiceImpl.java
  73. 6
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoLocalServiceImpl.java
  74. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/CollaudoServiceImpl.java
  75. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
  76. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneServiceImpl.java
  77. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java
  78. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneServiceImpl.java
  79. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java
  80. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneServiceImpl.java
  81. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  82. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaServiceImpl.java
  83. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java
  84. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaServiceImpl.java
  85. 75
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  86. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java
  87. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaLocalServiceImpl.java
  88. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocAggiuntivaServiceImpl.java
  89. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java
  90. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java
  91. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriLocalServiceImpl.java
  92. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java
  93. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java
  94. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionServiceImpl.java
  95. 60
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  96. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java
  97. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java
  98. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java
  99. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java
  100. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java
  101. Some files were not shown because too many files have changed in this diff Show More

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-bridges.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/lib/util-taglib.jar

File binario non mostrato.

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

@ -182,11 +182,7 @@ public class DelegheUtil {
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;
}
controllo = user.getUserId() == dettPratica.getUserId();
} else {
controllo = false;
for (Delega delega : deleghe) {

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

@ -52,4 +52,4 @@ public class SchedulerWorkflow implements MessageListener {
}
}
}
}
}

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

@ -158,7 +158,9 @@ public class ManutenzioneDatabase {
PortalException {
List<String> esito = new ArrayList<>();
long companyId = serviceContext.getCompanyId();
if (mode.contains("!Workflow=")) {
esito.addAll(SismicaUtil.riparaWorkflow(mode.replaceAll(".*?!Workflow=([^!]*)!", "$1")));
}
if (mode.contains("!UnitaOperative!")) {
esito.addAll(fixUnitaOperative());
}

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

@ -120,6 +120,35 @@ public class SismicaUtil {
return null;
}
public static List<String> riparaWorkflow(String numeroProgetto) throws SystemException, PortalException {
List<String> esito = new ArrayList<>();
IntPratica pratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
long intPraticaId = pratica.getIntPraticaId();
long companyId = pratica.getCompanyId();
long groupId = pratica.getGroupId();
long userId = pratica.getUserId();
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId);
long dettPraticaId = dettPratica.getDettPraticaId();
if (Validator.isNull(pratica)) {
esitoLog(esito, "Progetto " + numeroProgetto + " non trovato");
return esito;
}
// STATUS_APPROVED STATUS_DENIED STATUS_DRAFT STATUS_INACTIVE STATUS_PENDING
List<ControlloPratica> controlli = ControlloPraticaLocalServiceUtil.findByIntPraticaId_Status(intPraticaId,
WorkflowConstants.STATUS_PENDING);
if (0 == controlli.size()) {
esitoLog(esito, "Aggiungo controllo pratica");
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(companyId);
serviceContext.setScopeGroupId(dettPraticaId);
serviceContext.setUserId(userId);
ControlloPraticaLocalServiceUtil.addControlloPratica(groupId, userId, intPraticaId, dettPraticaId, true,
serviceContext);
}
return esito;
}
public static Long daysBetween(String start, String end) {
Long diff = null;
@ -796,4 +825,11 @@ public class SismicaUtil {
} while (pratiche.size() > 0);
return esito;
}
}
private static List<String> esitoLog(List<String> esito, String msg) {
esito.add(msg);
_log.info(msg);
return esito;
}
}

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

@ -136,4 +136,4 @@ public class ControlloPraticaAssetRenderer extends BaseAssetRenderer {
}
private ControlloPratica _entry;
}
}

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

@ -31,4 +31,4 @@ public class ControlloPraticaAssetRendererFactory extends BaseAssetRendererFacto
return TYPE;
}
}
}

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java

@ -16,9 +16,6 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.util.ParamUtil;
/**
* Servlet implementation class GeosismaRequestServlet
*/
@WebServlet("/GeosismaRequest")
public class GeosismaRequestServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
@ -136,4 +133,4 @@ public class GeosismaRequestServlet extends HttpServlet {
out.print(json.toString());
out.flush();
}
}
}

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java

@ -369,8 +369,8 @@ public class ControlloPraticaIndexer extends BaseIndexer {
throws Exception {
if (Validator.isNotNull(document)) {
String title = document.get("");
String content = document.get("");
String title = document.get(StringPool.BLANK);
String content = document.get(StringPool.BLANK);
String controlloPraticaId = document.get(PortosIndexField.CONTROLLO_PRATICA_ID);
portletURL.setParameter("struts_action", "/web/TODO");
portletURL.setParameter("intPraticaId", controlloPraticaId);

9
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java

@ -91,10 +91,8 @@ public class IntPraticaIndexer extends BaseIndexer {
}
}
/*
* Manifattura Web Group per Regione Siciliana Modifiche per rendere i campi di testo ricercabili per parole
* contenute e non per corrispondenza esatta.
*/
// Manifattura Web Group per Regione Siciliana Modifiche per rendere i campi di testo ricercabili per parole
// contenute e non per corrispondenza esatta.
@Override
protected Document doGetDocument(Object obj) throws Exception {
@ -419,7 +417,6 @@ public class IntPraticaIndexer extends BaseIndexer {
ActionableDynamicQuery actionableDynamicQuery = new IntPraticaActionableDynamicQuery() {
@Override
protected void performAction(Object object) throws PortalException {
if (object != null) {
IntPratica intPratica = (IntPratica) object;
if (intPratica != null) {
@ -468,4 +465,4 @@ public class IntPraticaIndexer extends BaseIndexer {
return WorkflowUtil.isWorkflowDisattivabile(intPraticaId);
}
}
}

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

@ -31,4 +31,4 @@ public class AllegatoManualeImpl extends AllegatoManualeBaseImpl {
*/
public AllegatoManualeImpl() {
}
}
}

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

@ -91,4 +91,4 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl {
}
return modello;
}
}
}

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

@ -217,4 +217,4 @@ public class AvvisoImpl extends AvvisoBaseImpl {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(getIntPraticaId());
return translateTipoDocumento(intPratica.getTipoProcedura());
}
}
}

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

@ -92,4 +92,4 @@ public class CollaudoImpl extends CollaudoBaseImpl {
return getTitle();
}
}
}

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl;
/**
* The extended model implementation for the Comune service. Represents a row in the &quot;portos_amm_Comune&quot; database table, with each column mapped to a property of this class.
* The extended model implementation for the Comune service. Represents a row in the &quot;portos_amm_Comune&quot;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface.
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -26,10 +28,9 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial")
public class ComuneImpl extends ComuneBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a comune model instance should use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comune model instance should
* use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead.
*/
public ComuneImpl() {
}
}
}

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl;
/**
* The extended model implementation for the Comunicazione service. Represents a row in the &quot;portos_bo_Comunicazione&quot; database table, with each column mapped to a property of this class.
* The extended model implementation for the Comunicazione service. Represents a row in the
* &quot;portos_bo_Comunicazione&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface.
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -26,10 +28,9 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial")
public class ComunicazioneImpl extends ComunicazioneBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a comunicazione model instance should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comunicazione model instance
* should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead.
*/
public ComunicazioneImpl() {
}
}
}

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl;
/**
* The extended model implementation for the Configurazione service. Represents a row in the &quot;portos_bo_Configurazione&quot; database table, with each column mapped to a property of this class.
* The extended model implementation for the Configurazione service. Represents a row in the
* &quot;portos_bo_Configurazione&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface.
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -26,10 +28,9 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial")
public class ConfigurazioneImpl extends ConfigurazioneBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a configurazione model instance should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a configurazione model instance
* should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead.
*/
public ConfigurazioneImpl() {
}
}
}

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

@ -15,10 +15,12 @@
package it.tref.liferay.portos.bo.model.impl;
/**
* The extended model implementation for the ControlloPratica service. Represents a row in the &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class.
* The extended model implementation for the ControlloPratica service. Represents a row in the
* &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface.
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -26,10 +28,9 @@ package it.tref.liferay.portos.bo.model.impl;
@SuppressWarnings("serial")
public class ControlloPraticaImpl extends ControlloPraticaBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a controllo pratica model instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a controllo pratica model
* instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
*/
public ControlloPraticaImpl() {
}
}
}

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

@ -22,14 +22,12 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.util.Validator;
/**
* The extended model implementation for the Delega service. Represents a row in
* the &quot;portos_bo_Delega&quot; database table, with each column mapped to a
* property of this class.
* The extended model implementation for the Delega service. Represents a row in the &quot;portos_bo_Delega&quot;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class.
* Whenever methods are added, rerun ServiceBuilder to copy their definitions
* into the {@link it.tref.liferay.portos.bo.model.Delega} interface.
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Delega} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -37,11 +35,8 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial")
public class DelegaImpl extends DelegaBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a delega
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Delega} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a delega model instance should
* use the {@link it.tref.liferay.portos.bo.model.Delega} interface instead.
*/
public DelegaImpl() {
}
@ -49,11 +44,11 @@ public class DelegaImpl extends DelegaBaseImpl {
@Override
public Map<String, Serializable> getDichiarazioniMap() {
JSONDeserializer<Map<String, Serializable>> deserializer= JSONFactoryUtil.createJSONDeserializer();
JSONDeserializer<Map<String, Serializable>> deserializer = JSONFactoryUtil.createJSONDeserializer();
String dichiarazioni = getDichiarazioni();
if (Validator.isNull(dichiarazioni)) {
dichiarazioni = "{}";
}
return deserializer.deserialize(dichiarazioni);
}
}
}

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

@ -774,4 +774,4 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
LocaleUtil.getSiteDefault(), "interv-fin-pub-desc"));
return attributes;
}
}
}

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

@ -31,10 +31,8 @@ import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
@SuppressWarnings("serial")
public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a doc aggiuntiva model instance should use the
* {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc aggiuntiva model instance
* should use the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
*/
public DocAggiuntivaImpl() {
}
@ -45,4 +43,4 @@ public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl {
DLFileEntry file = DLFileEntryServiceUtil.getFileEntry(getFileEntryId());
return file.getDescription();
}
}
}

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

@ -61,4 +61,4 @@ public class DocPraticaImpl extends DocPraticaBaseImpl {
FileEntry fileEntry = DLAppLocalServiceUtil.getFileEntry(getDlFileEntryId());
return DLUtil.getPreviewURL(fileEntry, fileEntry.getFileVersion(), themeDisplay, "&download=true");
}
}
}

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

@ -92,4 +92,4 @@ public class FineLavoriImpl extends FineLavoriBaseImpl {
return getTitle();
}
}
}

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

@ -32,4 +32,4 @@ public class HistoryWorkflowActionImpl extends HistoryWorkflowActionBaseImpl {
*/
public HistoryWorkflowActionImpl() {
}
}
}

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

@ -95,7 +95,8 @@ public class IntPraticaImpl extends IntPraticaBaseImpl {
@Override
public boolean isSanatoria() {
return getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P8)
|| getTipoProcedura().equalsIgnoreCase(Constants.PROCEDURA_P9);
}
}
}

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

@ -66,4 +66,4 @@ public class PagamentoImpl extends PagamentoBaseImpl {
}
return NumberFormat.getCurrencyInstance(Locale.ITALY).format(importoVal);
}
}
}

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

@ -31,4 +31,4 @@ public class ParereGeologoImpl extends ParereGeologoBaseImpl {
*/
public ParereGeologoImpl() {
}
}
}

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

@ -31,4 +31,4 @@ public class ProvinciaImpl extends ProvinciaBaseImpl {
*/
public ProvinciaImpl() {
}
}
}

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

@ -107,4 +107,4 @@ public class SoggettoImpl extends SoggettoBaseImpl {
}
return getNome() + StringPool.SPACE + getCognome();
}
}
}

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

@ -32,4 +32,4 @@ public class StoricoSoggettoPraticaImpl extends StoricoSoggettoPraticaBaseImpl {
*/
public StoricoSoggettoPraticaImpl() {
}
}
}

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

@ -31,4 +31,4 @@ public class TempisticaImpl extends TempisticaBaseImpl {
*/
public TempisticaImpl() {
}
}
}

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

@ -34,9 +34,11 @@ public class TerritorioImpl extends TerritorioBaseImpl {
@Override
public String getZonaFasciaDesc() {
String ret = "Zona " + getZona();
if (getArticolo61())
ret += " - abitato da consolidare";
return ret;
StringBuilder sb = new StringBuilder();
sb.append("Zona ").append(getZona());
if (getArticolo61()) {
sb.append(" - abitato da consolidare");
}
return sb.toString();
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/ControlloPraticaModelListener.java

@ -30,4 +30,4 @@ public class ControlloPraticaModelListener extends BaseModelListener<ControlloPr
}
super.onAfterUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DettPraticaModelListener.java

@ -38,4 +38,4 @@ public class DettPraticaModelListener extends BaseModelListener<DettPratica> {
}
super.onAfterUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/DocPraticaModelListener.java

@ -29,4 +29,4 @@ public class DocPraticaModelListener extends BaseModelListener<DocPratica> {
}
super.onAfterUpdate(model);
}
}
}

12
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/IntPraticaModelListener.java

@ -33,18 +33,16 @@ public class IntPraticaModelListener extends BaseModelListener<IntPratica> {
intIndexer.reindex(IntPratica.class.getName(), model.getIntPraticaId());
DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", model.getIntPraticaId()));
@SuppressWarnings("unchecked")
List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS,
QueryUtil.ALL_POS);
if (appList != null && !appList.isEmpty()) {
for (ControlloPratica controlloPratica : appList) {
controlloIndexer.delete(model.getCompanyId(), controlloPratica.getUuid());
controlloIndexer
.reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId());
}
for (ControlloPratica controlloPratica : appList) {
controlloIndexer.delete(model.getCompanyId(), controlloPratica.getUuid());
controlloIndexer.reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId());
}
} catch (SearchException | SystemException e) {
_log.error(e, e);
}
super.onAfterUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceModelListener.java

@ -102,4 +102,4 @@ public class KaleoInstanceModelListener extends BaseModelListener<KaleoInstance>
super.onBeforeUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java

@ -169,4 +169,4 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
super.onBeforeUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoLogModelListener.java

@ -116,4 +116,4 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
super.onBeforeUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java

@ -100,4 +100,4 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<Kaleo
super.onBeforeUpdate(model);
}
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/SoggettoModelListener.java

@ -29,4 +29,4 @@ public class SoggettoModelListener extends BaseModelListener<Soggetto> {
}
super.onAfterUpdate(model);
}
}
}

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

@ -45,6 +45,7 @@ public class AllegatiManualiPortlet extends MVCPortlet {
public void uploadAllegatoManuale(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
try {
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
ServiceContext serviceContext = ServiceContextFactory.getInstance(uploadRequest);
@ -127,4 +128,4 @@ public class AllegatiManualiPortlet extends MVCPortlet {
throw new IOException(e);
}
}
}
}

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

@ -375,4 +375,4 @@ public class AmministrazionePortlet extends MVCPortlet {
throw e;
}
}
}
}

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

@ -130,4 +130,4 @@ public class DocAggiuntivaPortlet extends MVCPortlet {
throw new IOException(e);
}
}
}
}

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

@ -323,9 +323,7 @@ public class FascicoloPortlet extends MVCPortlet {
PortletException {
String id = resourceRequest.getResourceID();
ServiceContext serviceContext;
try {
serviceContext = ServiceContextFactory.getInstance(resourceRequest);
if ("downloadAllDocPratica".equals(id)) {
long intPraticaId = ParamUtil.getLong(resourceRequest, "intPraticaId");
long classPk = ParamUtil.getLong(resourceRequest, "classPk");
@ -525,4 +523,4 @@ public class FascicoloPortlet extends MVCPortlet {
}
return sb.toString();
}
}
}

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

@ -107,4 +107,4 @@ public class GenerateProtocolloCSVPortlet extends MVCPortlet {
}
super.serveResource(resourceRequest, resourceResponse);
}
}
}

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

@ -272,4 +272,4 @@ public class GestioneAttivitaIstruttorePortlet extends MVCPortlet {
}
super.serveResource(resourceRequest, resourceResponse);
}
}
}

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

@ -87,22 +87,15 @@ public class GestioneFirmePortlet extends MVCPortlet {
PortletException {
String resourceId = GetterUtil.getString(resourceRequest.getResourceID());
if (resourceId.equals("exportCSV")) {
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY);
long companyId = themeDisplay.getCompanyId();
Locale locale = themeDisplay.getLocale();
User user = themeDisplay.getUser();
String tabs1 = ParamUtil.getString(resourceRequest, "tabs1");
try {
String csv = null;
String fileName = null;
if ("Tab_AvvisiDaFirmare".equals(tabs1)) {
fileName = "firmati";
csv = exportToCSVAvvisiDaFirmare(companyId, user, locale);
@ -113,19 +106,14 @@ public class GestioneFirmePortlet extends MVCPortlet {
fileName = "da_firmare";
csv = exportToCSVAvvisiFirme(companyId, user.getScreenName(), locale);
}
HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest);
HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse);
ServletResponseUtil.sendFile(request, response, "export_firme_" + fileName + ".csv",
csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8);
} catch (Exception e) {
throw new IOException(e);
}
}
super.serveResource(resourceRequest, resourceResponse);
}
@ -343,4 +331,4 @@ public class GestioneFirmePortlet extends MVCPortlet {
}
return sb.toString();
}
}
}

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

@ -59,6 +59,7 @@ public class HomeBOPortlet extends MVCPortlet {
for (Long intPraticaId : praticheAttiveAutorizzazioni) {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
@SuppressWarnings("unchecked")
List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty()) {
ControlloPratica controlloPratica = lista.get(0);
@ -68,6 +69,7 @@ public class HomeBOPortlet extends MVCPortlet {
queryKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPratica.getControlloPraticaId()));
queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione"));
queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false));
@SuppressWarnings("unchecked")
List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil
.dynamicQuery(queryKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) {
@ -87,6 +89,7 @@ public class HomeBOPortlet extends MVCPortlet {
for (Long intPraticaId : praticheAttiveControlloObbligatorio) {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
@SuppressWarnings("unchecked")
List<ControlloPratica> lista = ControlloPraticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty()) {
ControlloPratica controlloPratica = lista.get(0);
@ -97,6 +100,7 @@ public class HomeBOPortlet extends MVCPortlet {
queryKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName()));
queryKaleo.add(RestrictionsFactoryUtil.eq("kaleoTaskName", "Assegnazione"));
queryKaleo.add(RestrictionsFactoryUtil.eq("completed", false));
@SuppressWarnings("unchecked")
List<KaleoTaskInstanceToken> listaKaleo = KaleoTaskInstanceTokenLocalServiceUtil
.dynamicQuery(queryKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) {

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

@ -23,15 +23,13 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse)
throws SystemException {
List<String> esito = new ArrayList<String>();
public void mostraConfigurazione(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
List<String> esito = new ArrayList<String>();
esito.add("<h3>Env:</h3>");
for (Map.Entry<String, String> entry : System.getenv().entrySet()) {
esito.add(entry.getKey() + "=" + entry.getValue());
}
esito.add("<h3>Properties:</h3>");
for (Map.Entry<Object, Object> entry : System.getProperties().entrySet()) {
esito.add(entry.getKey() + "=" + entry.getValue());
@ -39,16 +37,14 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
actionResponse.setRenderParameter("esito", esito.toArray(new String[esito.size()]));
}
public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
public void reIndexFasciolo(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
if (Validator.isNotNull(intPraticaId)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(intPraticaId, themeDisplay.getCompanyId());
}
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
if (Validator.isNotNull(numeroProgetto)) {
IntPraticaLocalServiceUtil.reIndexFasciolo(numeroProgetto, themeDisplay.getCompanyId());
@ -56,6 +52,7 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
}
public void reIndexFascicoli(ActionRequest actionRequest, ActionResponse actionResponse) {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
List<String> esito = null;
esito = SismicaUtil.reIndexFascicoli(themeDisplay.getCompanyId());
@ -65,6 +62,7 @@ public class PaesaggisticaAdministrationPortlet extends MVCPortlet {
public void manutenzioneDatabase(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException, SystemException {
String mode = ParamUtil.getString(actionRequest, "mode");
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
List<String> esito = ManutenzioneDatabase.pulisci(serviceContext, mode);

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

@ -20,44 +20,38 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
public class PagamentiPendingPortlet extends MVCPortlet {
private static final Log _log = LogFactoryUtil.getLog(PagamentiPendingPortlet.class);
public void rigeneraPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
String url = ParamUtil.getString(actionRequest, "redirect");
Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId);
if (Validator.isNotNull(pagamento)) {
PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(),
pagamento.getMezzo(), url, serviceContext);
}
} catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e);
throw new SystemException(e);
}
}
public void annullaPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext);
} catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e);
throw new SystemException(e);
}
}
private static final Log _log = LogFactoryUtil.getLog(PagamentiPendingPortlet.class);
public void rigeneraPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
String url = ParamUtil.getString(actionRequest, "redirect");
Pagamento pagamento = PagamentoLocalServiceUtil.fetchPagamento(pagamentoId);
if (Validator.isNotNull(pagamento)) {
PagamentoServiceUtil.rigeneraPagamento(pagamentoId, pagamento.getCodiceFiscaleCommittente(),
pagamento.getMezzo(), url, serviceContext);
}
} catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e);
throw new SystemException(e);
}
}
public void annullaPagamento(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException,
SystemException {
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
long pagamentoId = ParamUtil.getLong(actionRequest, "pagamentoId");
PagamentoServiceUtil.annullaPagamento(pagamentoId, serviceContext);
} catch (Exception e) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse);
_log.error("Error", e);
throw new SystemException(e);
}
}
}

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

@ -18,4 +18,4 @@ public class RicercaProtocolloPortlet extends MVCPortlet {
actionResponse.setRenderParameter("dataA", dataA);
actionResponse.setRenderParameter("numeroProtocollo", numeroProtocollo);
}
}
}

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

@ -152,6 +152,7 @@ public class TempistichePortlet extends MVCPortlet {
query.add(RestrictionsFactoryUtil.eq("tipo", TempisticaConstants.TIPO_PRATICA));
Order defaultOrderDettPrtatica = OrderFactoryUtil.desc("createDate");
query.addOrder(defaultOrderDettPrtatica);
@SuppressWarnings("unchecked")
List<Tempistica> lista = TempisticaLocalServiceUtil.dynamicQuery(query);
if (lista != null && !lista.isEmpty() && lista.size() > 1) {
intPraticaId = lista.get(0).getIntPraticaId();
@ -196,6 +197,7 @@ public class TempistichePortlet extends MVCPortlet {
}
Order defaultOrder = OrderFactoryUtil.desc("createDate");
queryAvv.addOrder(defaultOrder);
@SuppressWarnings("unchecked")
List<Avviso> listaAvv = AvvisoLocalServiceUtil.dynamicQuery(queryAvv);
if (listaAvv != null && !listaAvv.isEmpty() && listaAvv.get(0).getDtInvio() != null) {
sb.append(CSVUtil.encode(dateFormat.format(listaAvv.get(0).getDtInvio())));

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

@ -83,4 +83,4 @@ public class ReportAvvisoAllegatoBean implements Serializable {
this.aggiornato = aggiornato;
}
}
}

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

@ -472,4 +472,4 @@ public class ReportAvvisoBean implements Serializable {
this.tipoAutorizzazione = tipoAutorizzazione;
}
}
}

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

@ -44,4 +44,4 @@ public class ReportAvvisoAllegatoBeanBuilder {
bean.setAggiornato(docPratica.isAggiornato());
return bean;
}
}
}

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

@ -272,4 +272,4 @@ public class ReportAvvisoBeanBuilder {
}
return bean;
}
}
}

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

@ -28,4 +28,4 @@ public class ReportAvvisoSoggettoBeanBuilder {
}
return bean;
}
}
}

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

@ -111,4 +111,4 @@ public class SchedulerEstrazioneFirme implements MessageListener {
}
}
}
}
}

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

@ -59,16 +59,22 @@ public class SchedulerGeneraDocumento implements MessageListener {
for (Company company : CompanyLocalServiceUtil.getCompanies()) {
String condition = ConfigurazioneLocalServiceUtil.findByC_ChiaveString(company.getCompanyId(),
ConfigurazioneConstants.SCHEDULER_GENERA_DOCUMENTO);
_log.debug("SchedulerGeneraDocumento - per company " + company.getCompanyId() + " attivo? "
+ condition);
if (_log.isDebugEnabled()) {
_log.debug("SchedulerGeneraDocumento - per company " + company.getCompanyId() + " attivo? "
+ condition);
}
if (Boolean.parseBoolean(condition)) {
int count = AvvisoLocalServiceUtil.countAvvisiGenerazioneDocumento();
_log.debug("SchedulerGeneraDocumento - numero avvisi " + count);
if (_log.isDebugEnabled()) {
_log.debug("SchedulerGeneraDocumento - numero avvisi " + count);
}
for (int cursor = 0; cursor <= count; cursor += SIZE) {
List<Avviso> avvisi = AvvisoLocalServiceUtil.getAvvisiGenerazioneDocumento(cursor, cursor
+ SIZE);
for (Avviso avviso : avvisi) {
_log.debug("SchedulerGeneraDocumento - avviso " + avviso.getAvvisoId());
if (_log.isDebugEnabled()) {
_log.debug("SchedulerGeneraDocumento - avviso " + avviso.getAvvisoId());
}
try {
FileEntry fileEntryTemplate = null;
try {

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

@ -94,4 +94,4 @@ public class SchedulerGeneraProtocollo implements MessageListener {
}
}
}
}
}

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

@ -216,9 +216,7 @@ public class SchedulerInvioDocumento implements MessageListener {
}
}
/**
* ADT: gestione notifiche al tecnico istruttore. Al momento gestisce solo notifica di assegnazione/riassegnazione
*/
// ADT: gestione notifiche al tecnico istruttore. Al momento gestisce solo notifica di assegnazione/riassegnazione
private void processAvvisiInvioTecnico() throws SystemException {
int count = AvvisoLocalServiceUtil.countAvvisiInvioTecnicoNew();

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

@ -270,7 +270,6 @@ public class SchedulerPratiche implements MessageListener {
// in caso di errore successivo alla protocollazione salto questa operazione
if (Validator.isNull(intPratica.getNumeroProgetto())) {
intPratica = IntPraticaLocalServiceUtil.addNumeroProgetto(intPratica.getIntPraticaId());
}
return intPratica;
@ -403,4 +402,4 @@ public class SchedulerPratiche implements MessageListener {
serviceContext.setUserId(dettPratica.getUserId());
return serviceContext;
}
}
}

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

@ -173,4 +173,4 @@ public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalService
return deleteAllegatoManuale(getAllegatoManuale(allegatoManualeId));
}
}
}

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

@ -110,4 +110,4 @@ public class AllegatoManualeServiceImpl extends AllegatoManualeServiceBaseImpl {
return allegatoManualeLocalService.deleteAllegatoManuale(allegatoManualeId);
}
}
}

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

@ -56,8 +56,6 @@ import com.liferay.portal.NoSuchRepositoryEntryException;
import com.liferay.portal.kernel.dao.orm.QueryUtil;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -93,8 +91,6 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
* it.tref.liferay.portos.bo.service.AsseverazioneLocalServiceUtil} to access the asseverazione local service.
*/
private static final Log _log = LogFactoryUtil.getLog(AsseverazioneLocalServiceImpl.class);
@Override
public String anteprimaAsseverazione(String tipo, User user, DettPratica dettPratica, String relazioni)
throws IOException, SystemException, PortalException {
@ -724,4 +720,4 @@ public class AsseverazioneLocalServiceImpl extends AsseverazioneLocalServiceBase
return asseverazionePersistence.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti);
}
}
}

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

@ -21,8 +21,6 @@ import java.util.List;
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.repository.model.FileEntry;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.security.auth.PrincipalException;
@ -50,8 +48,6 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl {
* it.tref.liferay.portos.bo.service.AsseverazioneServiceUtil} to access the asseverazione remote service.
*/
private static final Log _log = LogFactoryUtil.getLog(AsseverazioneServiceImpl.class);
@Override
public void cambioStatoAsseverazione(long asseverazioneId, String stato) throws IOException, SystemException,
PortalException {
@ -299,4 +295,4 @@ public class AsseverazioneServiceImpl extends AsseverazioneServiceBaseImpl {
return asseverazioneLocalService.countByDettPratica_Tipologia_InEsito(dettPraticaId, tipologia, esiti);
}
}
}

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

@ -208,7 +208,6 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
+ "\", userCodiceFiscalePrimaFirma=\"" + userCodiceFiscalePrimaFirma + "\", fileEntryIdBase="
+ fileEntryIdBase + ", fileEntryIdFirma=" + fileEntryIdFirma + ", jsonParameters=\"" + jsonParameters
+ "\", controlloPraticaId=" + controlloPraticaId + ", serviceContext=\"" + serviceContext + "\"");
User user = userPersistence.fetchByPrimaryKey(serviceContext.getUserId());
Date now = new Date();
Avviso avviso = createAvviso(counterLocalService.increment(Avviso.class.getName()));
@ -286,6 +285,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return super.addAvviso(avviso);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> search(long[] groupIds, Long classPk, String keywords, int start, int end)
throws SystemException {
@ -325,6 +325,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiFirmatiByCF(long companyId, String cf, int start, int end) throws SystemException {
@ -354,6 +355,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiDaFirmarePrimaFirmaByCF(long companyId, String cf, int start, int end)
throws SystemException {
@ -418,6 +420,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiDaFirmarePrimaFirmaByNotCF(long companyId, long[] groupIds, String cf, int start,
int end) throws SystemException {
@ -455,6 +458,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiDaFirmarePrimaFirma(long companyId, long[] groupIds, int start, int end)
throws SystemException {
@ -500,6 +504,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiGenerazioneDocumento(int start, int end) throws SystemException {
@ -526,6 +531,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiFirmaDocumento(int start, int end) throws SystemException {
@ -558,6 +564,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiInvioDocumento(int start, int end) throws SystemException {
@ -589,10 +596,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
public Avviso getAvvisoInvioSignal(long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioSignal(avvisoId);
List<Avviso> avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avviso.isEmpty() ? null : avviso.get(0);
@SuppressWarnings("unchecked")
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiInvioSignal(int start, int end) throws SystemException {
@ -630,10 +639,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
public Avviso getAvvisoTempistica(long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryAvvisiTempistica(avvisoId);
List<Avviso> avviso = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avviso.isEmpty() ? null : avviso.get(0);
@SuppressWarnings("unchecked")
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiTempistica(int start, int end) throws SystemException {
@ -799,6 +810,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
public Avviso getAvvisoInvioTecnico(long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryAvvisiInvioTecnico(avvisoId);
@SuppressWarnings("unchecked")
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0);
}
@ -810,6 +822,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiInvioTecnico(int start, int end) throws SystemException {
@ -860,6 +873,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avvisoPersistence.findByIntPraticaIds_tipoDocumento(intPraticaIds, tipoDocumento);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> findByClassPk_ExcludeTipoDocumento(Long classPk, String tipoDocumento) throws SystemException {
@ -987,10 +1001,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
disjunction.add(RestrictionsFactoryUtil.eq("tipoDocumento", StatoPraticaConstants.ANNULLATA));
dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId"));
@SuppressWarnings("unchecked")
List<Avviso> avvisi = avvisoPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return avvisi.isEmpty() ? null : avvisi.get(0);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getListaAvvisiPerApplet(String codFisc) throws SystemException {
@ -1041,6 +1057,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return updateAvviso(avviso);
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiRifiutatiByControlloPraticaId(long controlloPraticaId) throws SystemException {
@ -1081,6 +1098,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avviso;
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> protocolliSearch(String dataDa, String dataA, String numeroProtocollo, int start, int end)
throws ParseException, SystemException {
@ -1151,6 +1169,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return count;
}
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiPerAggiuntaProtocollo(int start, int end) throws SystemException {
@ -1179,9 +1198,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
}
// NUOVI METODI ADT
/**
* ADT
*/
// ADT
@Override
public int countAvvisiInvioTecnicoNew() throws SystemException {
@ -1189,9 +1206,8 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return (int) avvisoPersistence.countWithDynamicQuery(dynamicQuery);
}
/**
* ADT
*/
// ADT
@SuppressWarnings("unchecked")
@Override
public List<Avviso> getAvvisiInvioTecnicoNew(int start, int end) throws SystemException {
@ -1200,9 +1216,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return avvisoPersistence.findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* ADT
*/
// ADT
private DynamicQuery dynamicQueryAvvisiInvioTecnicoNew(Long avvisoId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery();
@ -1224,9 +1238,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
return dynamicQuery;
}
/**
* ADT
*/
// ADT
@Override
public Avviso getAvvisoVidimazione(long intPraticaId, long dettPraticaID) throws SystemException {
@ -1239,13 +1251,12 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPk", dettPraticaID));
dynamicQuery.addOrder(OrderFactoryUtil.asc("avvisoId"));
@SuppressWarnings("unchecked")
List<Avviso> ritorno = dynamicQuery(dynamicQuery, 0, 1);
return ritorno.isEmpty() ? null : ritorno.get(0);
}
/**
* ADT
*/
// ADT
@Override
public Avviso getLastAvvisoIntegrazione(long intPraticaId) throws SystemException {
@ -1257,6 +1268,7 @@ public class AvvisoLocalServiceImpl extends AvvisoLocalServiceBaseImpl {
dynamicQuery.add(PropertyFactoryUtil.forName("annullato").eq(false));
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.addOrder(OrderFactoryUtil.desc("avvisoId"));
@SuppressWarnings("unchecked")
List<Avviso> ritorno = dynamicQuery(dynamicQuery, 0, 1);
return ritorno.isEmpty() ? null : ritorno.get(0);
}

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

@ -39,10 +39,8 @@ import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
*/
public class AvvisoServiceImpl extends AvvisoServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.AvvisoServiceUtil}
* to access the avviso remote service.
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.AvvisoServiceUtil} to access the avviso remote service.
*/
@Override
@ -65,4 +63,4 @@ public class AvvisoServiceImpl extends AvvisoServiceBaseImpl {
}
return avvisoLocalService.assegnaFirma(avvisoId, cf);
}
}
}

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

@ -153,6 +153,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false));
dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId"));
@SuppressWarnings("unchecked")
List<Collaudo> collaudoList = dynamicQuery(dynamicQuery, 0, 1);
if (!collaudoList.isEmpty())
return collaudoList.get(0);
@ -166,6 +167,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.addOrder(OrderFactoryUtil.desc("collaudoId"));
@SuppressWarnings("unchecked")
List<Collaudo> collaudoList = dynamicQuery(dynamicQuery, 0, 1);
if (!collaudoList.isEmpty())
return collaudoList.get(0);
@ -362,6 +364,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
return collaudoPersistence.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata);
}
@SuppressWarnings("unchecked")
@Override
public List<Collaudo> findByIntPraticaId_Parziale_leCollaudoId(long collaudoId, long intPraticaId,
boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -381,10 +384,12 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.lt("collaudoId", collaudoId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale));
@SuppressWarnings("unchecked")
List<Collaudo> results = dynamicQuery(dynamicQuery);
return results.size();
}
@SuppressWarnings("unchecked")
@Override
public List<Collaudo> findCollaudiCompletiNotProtocollo(int start, int end) throws SystemException {
@ -412,6 +417,7 @@ public class CollaudoLocalServiceImpl extends CollaudoLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<Collaudo> findCollaudiCompletiNotGestiti(int start, int end) throws SystemException {

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

@ -115,4 +115,4 @@ public class CollaudoServiceImpl extends CollaudoServiceBaseImpl {
return collaudoLocalService.updateEsito(collaudoId, stato);
}
}
}

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

@ -208,6 +208,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
return comunePersistence.findByC_CP(companyId, codiceProvincia, start, end, orderByComparator);
}
@SuppressWarnings("unchecked")
@Override
public List<Comune> findByKeywords(long companyId, String keywords, int start, int end,
OrderByComparator orderByComparator) throws SystemException {
@ -383,4 +384,4 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
}
return result;
}
}
}

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

@ -54,5 +54,4 @@ public class ComuneServiceImpl extends ComuneServiceBaseImpl {
return ComuneLocalServiceUtil.getComunes(start, end);
}
}
}

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

@ -187,4 +187,4 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(),
to, cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext);
}
}
}

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

@ -54,4 +54,4 @@ public class ComunicazioneServiceImpl extends ComunicazioneServiceBaseImpl {
return comunicazioneLocalService.updateComunicazione(comunicazioneId, risposta);
}
}
}

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

@ -121,4 +121,4 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa
return current;
}
}
}
}

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

@ -59,4 +59,4 @@ public class ConfigurazioneServiceImpl extends ConfigurazioneServiceBaseImpl {
ConfigurazioneLocalServiceUtil.storeConfig(chiave, valore, serviceContext);
}
}
}

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

@ -461,6 +461,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
@Override
public String getJsonEsitoPratica(long controlloPraticaId, Map<String, Serializable> workflowContext)
throws PortalException, SystemException {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil.getControlloPratica(controlloPraticaId);
IntPratica intPratica = intPraticaLocalService.getIntPratica(controlloPratica.getIntPraticaId());
if (AzioniPraticheUtil.isDeposito(controlloPratica.getIntPraticaId())) {
@ -498,9 +499,10 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
JSONArray esito = JSONFactoryUtil.createJSONArray();
esito.put(etichetta(StatoPraticaConstants.CONFORME));
esito.put(etichetta("Perizia di stima per committente", StatoPraticaConstants.INTEGRAZIONE, true));
esito.put(etichetta(StatoPraticaConstants.NON_CONFORME));
esito.put(etichetta("Autorizzazione a seguito di pagamento di sanzione pecuniaria",
StatoPraticaConstants.INTEGRAZIONE, true));
esito.put(etichetta(StatoPraticaConstants.INTEGRAZIONE));
esito.put(etichetta(StatoPraticaConstants.PREAVVISO_CONTRARIO));
JSONObject ret = JSONFactoryUtil.createJSONObject();
ret.put("esito", esito);
return ret.toString();
@ -603,6 +605,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
DynamicQuery dqKaleo = DynamicQueryFactoryUtil.forClass(KaleoInstance.class, classLoaderKaleo);
dqKaleo.add(RestrictionsFactoryUtil.eq("classPK", controlloPraticaId));
dqKaleo.add(RestrictionsFactoryUtil.eq("className", ControlloPratica.class.getName()));
@SuppressWarnings("unchecked")
List<KaleoInstance> listaKaleo = KaleoInstanceLocalServiceUtil.dynamicQuery(dqKaleo);
if (listaKaleo != null && !listaKaleo.isEmpty()) {
KaleoInstance kaleoInstance = listaKaleo.get(0);
@ -615,6 +618,7 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
dqKaleoLog.add(RestrictionsFactoryUtil.eq("transitionName", "registra-esito"));
Order defaultOrder = OrderFactoryUtil.desc("createDate");
dqKaleoLog.addOrder(defaultOrder);
@SuppressWarnings("unchecked")
List<FormLog> listaKaleoLog = FormLogLocalServiceUtil.dynamicQuery(dqKaleoLog);
if (listaKaleoLog != null && !listaKaleoLog.isEmpty()) {
FormLog formLog = listaKaleoLog.get(0);

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

@ -35,4 +35,4 @@ public class ControlloPraticaServiceImpl extends ControlloPraticaServiceBaseImpl
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.ControlloPraticaServiceUtil} to access the controllo pratica remote service.
*/
}
}

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

@ -69,9 +69,7 @@ import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
*/
public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.DelegaLocalServiceUtil} to access the delega local service.
*/
@ -246,6 +244,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findByDettPratica_InEsito(dettPraticaId, esiti, start, end, orderByComparator);
}
@SuppressWarnings("unchecked")
@Override
public List<String> findCfByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException {
@ -254,6 +253,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Delega> findByDettPratica_InEsito(long dettPraticaId, String[] esiti) throws SystemException {
@ -261,6 +261,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<String> findCfByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti)
throws SystemException {
@ -271,6 +272,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return delegaPersistence.findWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Delega> findByDettPratica_Tipologia_InEsito(long dettPraticaId, String[] tipologie, String[] esiti)
throws SystemException {
@ -447,4 +449,4 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
throw new PortalException(e);
}
}
}
}

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

@ -245,4 +245,4 @@ public class DelegaServiceImpl extends DelegaServiceBaseImpl {
return delegaLocalService.countByIntPratica_Tipologia_InEsito(intPraticaId, tipologia, esiti);
}
}
}

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

@ -306,12 +306,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
@Override
@ -322,12 +319,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
@Override
@ -340,12 +334,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
@Override
@ -357,12 +348,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.ne("protocollo", StringPool.BLANK));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
@Override
@ -375,12 +363,9 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
@Override
@ -395,14 +380,12 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
disjunction.add(RestrictionsFactoryUtil.eq("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(disjunction);
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findCompletedByIntPraticaAndTipoPratica(long intPraticaId, List<String> tipoPratiche)
throws SystemException {
@ -426,10 +409,10 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.add(RestrictionsFactoryUtil.in("tipoIntegrazione", tipoPratiche));
dynamicQuery.addOrder(OrderFactoryUtil.desc("dettPraticaId"));
int size = dynamicQuery(dynamicQuery).size();
return size;
return dynamicQuery(dynamicQuery).size();
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findCompletedByIntPraticaAndSuccessivoDettPratica(long intPraticaId, long dettPraticaId)
throws SystemException {
@ -518,8 +501,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
SystemException {
Date now = new Date();
validate(userId, dettPraticaId, intPraticaId, codiceFiscaleDelegatoCommittente,
codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, serviceContext);
DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId);
dettPratica.setModifiedDate(serviceContext.getModifiedDate(now));
dettPratica.setIntPraticaId(intPraticaId);
@ -1487,10 +1468,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPratica;
}
private void validate(long userId, long dettPraticaId, long intPraticaId, String codiceFiscaleDelegatoCommittente,
String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) {
}
@Override
@Indexable(type = IndexableType.REINDEX)
public DettPratica updateStatus(long userId, long resourcePrimKey, int status, ServiceContext serviceContext)
@ -1581,6 +1558,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.findByIntPraticaId(intPraticaId);
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findByIntPraticaIdInviate(long intPraticaId, int start, int end) throws SystemException {
@ -1592,6 +1570,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findPraticheCompleteNotProtocollo(int start, int end) throws SystemException {
@ -1619,6 +1598,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findPraticheCompleteNotGestite(int start, int end) throws SystemException {
@ -1660,6 +1640,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
completa);
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findPraticheCompletateNonVersionate(int start, int end) throws SystemException {
@ -1724,10 +1705,12 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
public DettPratica getInvioSignal(long dettPraticaId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryInvioSignal(dettPraticaId);
@SuppressWarnings("unchecked")
List<DettPratica> integrazioni = dettPraticaPersistence.findWithDynamicQuery(dynamicQuery, 0, 1);
return !integrazioni.isEmpty() ? integrazioni.get(0) : null;
return integrazioni.isEmpty() ? null : integrazioni.get(0);
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> getInviiSignal(int start, int end) throws SystemException {
@ -1750,6 +1733,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<DettPratica> findByPagamentoId(long pagamentoId) throws SystemException {
@ -1848,9 +1832,7 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
return dettPraticaPersistence.countByIntPraticaId_TipoIntegrazione(intPraticaId, TipoIntegrazioneUtil.VARIANTE);
}
/**
* ADT: nuovo metodo per stampa fascicolo
*/
// ADT: nuovo metodo per stampa fascicolo
@Override
public DettPratica getFirstCompletedByIntPratica(long intPraticaId) throws SystemException {
@ -1859,11 +1841,8 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_DRAFT));
dynamicQuery.add(RestrictionsFactoryUtil.ne("status", WorkflowConstants.STATUS_INCOMPLETE));
dynamicQuery.addOrder(OrderFactoryUtil.asc("dettPraticaId"));
@SuppressWarnings("unchecked")
List<DettPratica> ritorno = dynamicQuery(dynamicQuery, 0, 1);
if (ritorno.isEmpty()) {
return null;
} else {
return ritorno.get(0);
}
return ritorno.isEmpty() ? null : ritorno.get(0);
}
}
}

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

@ -415,4 +415,4 @@ public class DettPraticaServiceImpl extends DettPraticaServiceBaseImpl {
Constants.COMPANY_CUSTOM_FIELD_VERSIONING_COMMIT, false);
dettPraticaLocalService.sendToVersioning(dettPraticaId, commitURL);
}
}
}

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

@ -182,4 +182,4 @@ public class DocAggiuntivaLocalServiceImpl extends DocAggiuntivaLocalServiceBase
return deleteDocAggiuntiva(getDocAggiuntiva(docAggiuntivaId));
}
}
}

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

@ -122,4 +122,4 @@ public class DocAggiuntivaServiceImpl extends DocAggiuntivaServiceBaseImpl {
return docAggiuntivaLocalService.deleteDocAggiuntiva(docAggiuntivaId);
}
}
}

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

@ -310,6 +310,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getDocPraticaDaInviareDax(int start, int end) throws SystemException {
@ -376,6 +377,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return docPraticaPersistence.findByClassPk_Tipologia(classPk, tipologia, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> findByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end)
throws SystemException {
@ -387,6 +389,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return soggettoPersistence.findWithDynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> findByIntPratica_ClassPk_Tipologia(long intPraticaId, long classPk, String tipologia,
int start, int end) throws SystemException {
@ -399,6 +402,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> findByIntPratica_ClassPk_Tipologie(long intPraticaId, long classPk, List<String> tipologie)
throws SystemException {
@ -411,6 +415,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> findByIntPratica_ClassPkEqual_Tipologie(long intPraticaId, long classPk,
List<String> tipologie) throws SystemException {
@ -436,6 +441,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return findDistinctDlFileEntryId(new long[] { classPk }, tipologia, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<Long> findDistinctDlFileEntryId(long[] classPks, String tipologia, int start, int end)
throws SystemException {
@ -452,6 +458,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return docPraticaPersistence.findWithDynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidByIntPratica(long intPraticaId) throws SystemException {
@ -462,6 +469,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end)
throws SystemException {
@ -482,6 +490,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return (int) docPraticaPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidTmpByIntPratica(long intPraticaId, int start, int end) throws SystemException {
@ -490,6 +499,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidTmpByIntPratica_Tipologia(long intPraticaId, String tipologia, int start, int end)
throws SystemException {
@ -500,6 +510,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidTmpByIntPratica_DettPratica_Tipologia(long intPraticaId, long dettPraticaId,
String tipologia, int start, int end) throws SystemException {
@ -512,6 +523,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidTmpByIntPratica_Tipologie(long intPraticaId, String[] tipologie, int start, int end)
throws SystemException {
@ -538,6 +550,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getInvalidByIntPratica(long intPraticaId) throws SystemException {
@ -548,6 +561,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getInvalidTmpByIntPratica(long intPraticaId) throws SystemException {
@ -558,6 +572,7 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return dynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> getValidUntilClassPkByIntPratica(long intPraticaId, long classPk, String tipologia,
int start, int end) throws SystemException {
@ -615,9 +630,8 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
return docPratica;
}
/**
* Metodo nuovo ADT
*/
// Metodo nuovo ADT
@SuppressWarnings("unchecked")
@Override
public List<DocPratica> findByIntPratica_ClassPk_TipologiaNew(long intPraticaId, long classPk, String tipologia,
int start, int end) throws SystemException {

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

@ -53,7 +53,6 @@ public class DocPraticaServiceImpl extends DocPraticaServiceBaseImpl {
return docPraticaLocalService.addDocPratica(userId, className, classPk, intPraticaId, dlFileEntry, fileName,
version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari,
dettPraticaIdRimozione, dtDataRimozione, serviceContext);
}
@Override
@ -148,4 +147,4 @@ public class DocPraticaServiceImpl extends DocPraticaServiceBaseImpl {
return docPraticaLocalService.getValidUntilClassPkByIntPratica(intPraticaId, classPk, tipologia, start, end);
}
}
}

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

@ -161,11 +161,9 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", false));
dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId"));
@SuppressWarnings("unchecked")
List<FineLavori> fineLavoriList = dynamicQuery(dynamicQuery, 0, 1);
if (!fineLavoriList.isEmpty()) {
return fineLavoriList.get(0);
}
return null;
return fineLavoriList.isEmpty() ? null : fineLavoriList.get(0);
}
@Override
@ -175,11 +173,9 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.addOrder(OrderFactoryUtil.desc("fineLavoriId"));
@SuppressWarnings("unchecked")
List<FineLavori> fineLavoriList = dynamicQuery(dynamicQuery, 0, 1);
if (!fineLavoriList.isEmpty()) {
return fineLavoriList.get(0);
}
return null;
return fineLavoriList.isEmpty() ? null : fineLavoriList.get(0);
}
@Override
@ -412,6 +408,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
return fineLavoriPersistence.countByIntPraticaId_Parziale_Completata(intPraticaId, parziale, completata);
}
@SuppressWarnings("unchecked")
@Override
public List<FineLavori> findByIntPraticaId_Parziale_leFineLavoriId(long fineLavoriId, long intPraticaId,
boolean parziale, int start, int end, OrderByComparator orderByComparator) throws SystemException {
@ -431,10 +428,12 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
dynamicQuery.add(RestrictionsFactoryUtil.lt("fineLavoriId", fineLavoriId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("parziale", parziale));
@SuppressWarnings("unchecked")
List<FineLavori> results = dynamicQuery(dynamicQuery);
return results.isEmpty() ? 0 : results.size();
}
@SuppressWarnings("unchecked")
@Override
public List<FineLavori> findFineLavoriCompleteNotProtocollo(int start, int end) throws SystemException {
@ -462,6 +461,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<FineLavori> findFineLavoriCompleteNotGestite(int start, int end) throws SystemException {
@ -493,6 +493,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId")));
@SuppressWarnings("unchecked")
List<Long> ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery);
return ids;
}
@ -505,6 +506,7 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl {
dynamicQuery.add(RestrictionsFactoryUtil.eq("completata", true));
dynamicQuery.add(RestrictionsFactoryUtil.ilike("codiceFiscaleDelegatoCollaudo", codiceFiscaleDelegatoCollaudo));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("intPraticaId")));
@SuppressWarnings("unchecked")
List<Long> ids = fineLavoriPersistence.findWithDynamicQuery(dynamicQuery);
return ids;
}

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

@ -157,4 +157,4 @@ public class FineLavoriServiceImpl extends FineLavoriServiceBaseImpl {
return fineLavoriLocalService.countByCodiceFiscale_Completata(codiceFiscaleDelegato, completata);
}
}
}

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

@ -48,12 +48,14 @@ import com.liferay.portal.kernel.exception.SystemException;
public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowActionLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
*
* Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil}
* to access the history workflow action local service.
*/
@Override
@SuppressWarnings("unchecked")
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId, int sort) throws SystemException {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(HistoryWorkflowAction.class);
@ -69,5 +71,4 @@ public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowAction
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId) throws SystemException {
return historyWorkflowActionPersistence.findByIntPratica(intPraticaId);
}
}
}

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

@ -36,4 +36,4 @@ public class HistoryWorkflowActionServiceImpl extends HistoryWorkflowActionServi
* it.tref.liferay.portos.bo.service.HistoryWorkflowActionServiceUtil} to access the history workflow action remote
* service.
*/
}
}

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

@ -159,8 +159,8 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
@Override
@Indexable(type = IndexableType.REINDEX)
public IntPratica addIntPratica(long userId, String userName, String tipoPratica, long territorioId,
String tipoProcedura, String statoPratica, String numeroProgetto, boolean validata,
int esitoControllo, Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException {
String tipoProcedura, String statoPratica, String numeroProgetto, boolean validata, int esitoControllo,
Date dtPratica, ServiceContext serviceContext) throws PortalException, SystemException {
Date now = new Date();
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId);
@ -327,6 +327,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPraticaPersistence.fetchByPrimaryKey(intPraticaId);
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> findFascicoliNotProgetto(int start, int end) throws SystemException {
@ -469,6 +470,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intPratica = updateIntPratica(intPratica);
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> findByCompanyIdSoggettoProgetti(long companyId, long soggettoId) throws SystemException,
PortalException {
@ -498,6 +500,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> findByCompanyIdSoggettoArchivio(long companyId, long soggettoId) throws SystemException,
PortalException {
@ -540,6 +543,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> findByCompanyIdSoggettoAltriProgetti(long companyId, long soggettoId, int start, int end)
throws SystemException, PortalException {
@ -576,6 +580,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return dynamicQuery;
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> findByCanAddFineLavori(long companyId, String codiceFiscale, int start, int end)
throws SystemException, PortalException {
@ -618,6 +623,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPraticaFinder.canAddCollaudoCount(codiceFiscale);
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> search(List<Long> groupIds, int start, int end) throws SystemException {
@ -638,6 +644,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return (int) intPraticaPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<IntPratica> searchWithIntPraticaId(List<Long> groupIds, long intPraticaId, int start, int end)
throws SystemException {
@ -795,21 +802,20 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId()));
queryCP.addOrder(OrderFactoryUtil.desc("controlloPraticaId"));
@SuppressWarnings("unchecked")
List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP, QueryUtil.ALL_POS,
QueryUtil.ALL_POS);
if (appList != null && !appList.isEmpty()) {
for (ControlloPratica controlloPratica : appList) {
_log.info("disattivazione - ControlloPraticaId=" + controlloPratica.getControlloPraticaId());
try {
WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE,
WorkflowUtil.getWorkflowContext(controlloPratica));
WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(
controlloPratica.getCompanyId(), controlloPratica.getGroupId(),
ControlloPratica.class.getName(), controlloPratica.getPrimaryKey());
} catch (Exception e) {
_log.error("Errore in annullamento pratica - Impossibile disattivare workflow per controlloPraticaId="
+ controlloPratica.getControlloPraticaId());
}
for (ControlloPratica controlloPratica : appList) {
_log.info("disattivazione - ControlloPraticaId=" + controlloPratica.getControlloPraticaId());
try {
WorkflowHandlerRegistryUtil.updateStatus(WorkflowConstants.STATUS_INACTIVE,
WorkflowUtil.getWorkflowContext(controlloPratica));
WorkflowInstanceLinkLocalServiceUtil.deleteWorkflowInstanceLink(controlloPratica.getCompanyId(),
controlloPratica.getGroupId(), ControlloPratica.class.getName(),
controlloPratica.getPrimaryKey());
} catch (Exception e) {
_log.error("Errore in annullamento pratica - Impossibile disattivare workflow per controlloPraticaId="
+ controlloPratica.getControlloPraticaId());
}
}
} catch (Exception e) {
@ -871,8 +877,8 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Long[] intPraticaIds)
throws SystemException, PortalException {
public int countCaricoLavoroCF(long ispettoreId, String tipoPratica, Long[] intPraticaIds) throws SystemException,
PortalException {
DynamicQuery dynamicQuery = dynamicQuery();
if (Validator.isNotNull(ispettoreId)) {
@ -889,8 +895,7 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
}
@Override
public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica)
throws SystemException {
public int countCaricoLavoroIstruttore(long ispettoreId, String tipoPratica) throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery();
if (Validator.isNotNull(ispettoreId)) {
@ -1150,14 +1155,13 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
intIndexer.reindex(IntPratica.class.getName(), intPratica.getIntPraticaId());
DynamicQuery queryCP = DynamicQueryFactoryUtil.forClass(ControlloPratica.class);
queryCP.add(RestrictionsFactoryUtil.eq("intPraticaId", intPratica.getIntPraticaId()));
@SuppressWarnings("unchecked")
List<ControlloPratica> appList = ControlloPraticaLocalServiceUtil.dynamicQuery(queryCP,
QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (appList != null && !appList.isEmpty()) {
for (ControlloPratica controlloPratica : appList) {
controlloIndexer.delete(companyId, controlloPratica.getUuid());
controlloIndexer.reindex(ControlloPratica.class.getName(),
controlloPratica.getControlloPraticaId());
}
for (ControlloPratica controlloPratica : appList) {
controlloIndexer.delete(companyId, controlloPratica.getUuid());
controlloIndexer
.reindex(ControlloPratica.class.getName(), controlloPratica.getControlloPraticaId());
}
}
} catch (PortalException | SystemException e) {
@ -1185,11 +1189,9 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
@SuppressWarnings("unchecked")
List<IntPratica> lista = dynamicQuery(dq);
if (lista != null && !lista.isEmpty()) {
return lista.get(0);
}
return null;
return lista.isEmpty() ? null : lista.get(0);
}
@Override

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

@ -220,4 +220,4 @@ public class IntPraticaServiceImpl extends IntPraticaServiceBaseImpl {
}
return json.toString();
}
}
}

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

@ -263,6 +263,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return updatePagamento(pagamento);
}
@SuppressWarnings("unchecked")
@Override
public List<Pagamento> findByCommittente_Mezzo(String codiceFiscaleCommittente, String mezzo, int start, int end)
throws SystemException {
@ -281,6 +282,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return (int) pagamentoPersistence.countWithDynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Pagamento> findByCommittente_Mezzo_Utilizzata(String codiceFiscaleCommittente, String mezzo,
String utilizzata, int start, int end) throws SystemException {
@ -339,6 +341,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
OrderByComparatorFactoryUtil.create(PagamentoModelImpl.TABLE_NAME, "createDate", true));
}
@SuppressWarnings("unchecked")
@Override
public List<Pagamento> findInPending(Date date, int start, int end, OrderByComparator comparator)
throws SystemException {
@ -454,6 +457,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
return pagamentoPersistence.countByIntPratica(intPraticaId);
}
@SuppressWarnings("unchecked")
@Override
public List<Pagamento> findByIntPratica_Visible(long intPraticaId) throws SystemException {

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

@ -124,4 +124,4 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
}
return userId;
}
}
}

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

@ -213,6 +213,7 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return parereGeologoPersistence.countByGeologoId(geologoUserId);
}
@SuppressWarnings("unchecked")
@Override
public List<ParereGeologo> findNotParereByGeologoId(long geologoUserId, int start, int end) throws SystemException {
@ -222,6 +223,7 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return dynamicQuery(dynamicQuery, start, end);
}
@SuppressWarnings("unchecked")
@Override
public List<ParereGeologo> findWithParereByGeologoId(long geologoUserId, int start, int end) throws SystemException {
@ -248,4 +250,4 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
dynamicQuery.add(RestrictionsFactoryUtil.ne("parere", StringPool.BLANK));
return (int) parereGeologoPersistence.countWithDynamicQuery(dynamicQuery);
}
}
}

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

@ -114,4 +114,4 @@ public class ParereGeologoServiceImpl extends ParereGeologoServiceBaseImpl {
// TODO permessi
return parereGeologoLocalService.countByGeologoId(geologoUserId);
}
}
}

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

Caricamento…
Annulla
Salva