Sfoglia il codice sorgente

Rifattorizzazione accesso atti

master
Salvatore La Manna 3 anni fa
parent
commit
198e3909bd
  1. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
  2. 1
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component
  3. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml
  4. 38
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/NoSuchRichiestaAccessoAttiException.java
  5. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAtti.java
  6. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiClp.java
  7. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiModel.java
  8. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiSoap.java
  9. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiWrapper.java
  10. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/ClpSerializer.java
  11. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalService.java
  12. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceClp.java
  13. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceUtil.java
  14. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceWrapper.java
  15. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiService.java
  16. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiServiceClp.java
  17. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiServiceUtil.java
  18. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiServiceWrapper.java
  19. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/messaging/ClpMessageListener.java
  20. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiActionableDynamicQuery.java
  21. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistence.java
  22. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiUtil.java
  23. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/model/impl/RichiestaAccessoAttiBaseImpl.java
  24. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/model/impl/RichiestaAccessoAttiCacheModel.java
  25. 35
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/model/impl/RichiestaAccessoAttiImpl.java
  26. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/model/impl/RichiestaAccessoAttiModelImpl.java
  27. 383
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiBOPortlet.java
  28. 326
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiFEPortlet.java
  29. 46
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/CreazioneAccountPortosPortlet.java
  30. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceBaseImpl.java
  31. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceClpInvoker.java
  32. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiServiceBaseImpl.java
  33. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiServiceClpInvoker.java
  34. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/http/RichiestaAccessoAttiServiceSoap.java
  35. 253
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java
  36. 35
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiServiceImpl.java
  37. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java
  38. 26
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java
  39. 47
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java
  40. 98
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/EmailSenderUtil.java
  41. 4
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties
  42. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml
  43. 47
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties
  44. 45
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql
  45. 79
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  46. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties
  47. 26
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  48. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/ControlloPraticaIndexer.java
  49. 12
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/indexer/IntPraticaIndexer.java
  50. 34
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeBaseImpl.java
  51. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AllegatoManualeImpl.java
  52. 70
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/AsseverazioneImpl.java
  53. 25
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java
  54. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneImpl.java
  55. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComunicazioneImpl.java
  56. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ConfigurazioneImpl.java
  57. 25
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ControlloPraticaImpl.java
  58. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DelegaImpl.java
  59. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocAggiuntivaImpl.java
  60. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DocPraticaImpl.java
  61. 25
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java
  62. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/HistoryWorkflowActionImpl.java
  63. 35
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoImpl.java
  64. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ParereGeologoImpl.java
  65. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ProvinciaImpl.java
  66. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/SoggettoImpl.java
  67. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/StoricoSoggettoPraticaImpl.java
  68. 18
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/TerritorioImpl.java
  69. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/SoggettoModelListener.java
  70. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AllegatoManualeLocalServiceImpl.java
  71. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/AsseverazioneServiceImpl.java
  72. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
  73. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneServiceImpl.java
  74. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ConfigurazioneLocalServiceImpl.java
  75. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaServiceImpl.java
  76. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaServiceImpl.java
  77. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaServiceImpl.java
  78. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/FineLavoriServiceImpl.java
  79. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionServiceImpl.java
  80. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaServiceImpl.java
  81. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java
  82. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoServiceImpl.java
  83. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaLocalServiceImpl.java
  84. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ProvinciaServiceImpl.java
  85. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoServiceImpl.java
  86. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaLocalServiceImpl.java
  87. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/StoricoSoggettoPraticaServiceImpl.java
  88. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java
  89. 16
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioServiceImpl.java
  90. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  91. BIN
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/util-java.jar
  92. 2
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/DisponibilitaImpl.java
  93. 48
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java
  94. 57
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/PrenotazioneImpl.java
  95. 36
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/ProfessionistaImpl.java
  96. 4
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties
  97. 59
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/cookies/action/StartUpAction.java
  98. 1
      liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="src" path="docroot/WEB-INF/service"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>

1
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component

@ -2,6 +2,7 @@
<wb-module deploy-name="portos-accesso-atti-portlet"> <wb-module deploy-name="portos-accesso-atti-portlet">
<wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/> <wb-resource deploy-path="/" source-path="/docroot" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/src"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/docroot/WEB-INF/service"/>
<dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar"> <dependent-module archiveName="portos-bo-portlet-service.jar" deploy-path="/WEB-INF/lib" handle="module:/classpath/lib/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar">
<dependency-type>uses</dependency-type> <dependency-type>uses</dependency-type>
</dependent-module> </dependent-module>

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd"> <!DOCTYPE service-builder PUBLIC "-//Liferay//DTD Service Builder 6.1.0//EN" "http://www.liferay.com/dtd/liferay-service-builder_6_1_0.dtd">
<service-builder package-path="it.tref.liferay.portos.accesso.atti"> <service-builder package-path="it.tref.liferay.portos.accesso.atti">
<author>3F Consulting</author> <author>3F Consulting + Manifattura Web Group s.r.l.</author>
<namespace>portos_atti</namespace> <namespace>portos_atti</namespace>
<entity name="RichiestaAccessoAtti" local-service="true" remote-service="true"> <entity name="RichiestaAccessoAtti" local-service="true" remote-service="true">

38
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/NoSuchRichiestaAccessoAttiException.java

@ -0,0 +1,38 @@
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*/
package it.tref.liferay.portos.accesso.atti;
import com.liferay.portal.NoSuchModelException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
@SuppressWarnings("serial")
public class NoSuchRichiestaAccessoAttiException extends NoSuchModelException {
public NoSuchRichiestaAccessoAttiException() {
super();
}
public NoSuchRichiestaAccessoAttiException(String msg) {
super(msg);
}
public NoSuchRichiestaAccessoAttiException(String msg, Throwable cause) {
super(msg, cause);
}
public NoSuchRichiestaAccessoAttiException(Throwable cause) {
super(cause);
}
}

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAtti.java

@ -19,7 +19,7 @@ import com.liferay.portal.model.PersistedModel;
/** /**
* The extended model interface for the RichiestaAccessoAtti service. Represents a row in the &quot;portos_atti_RichiestaAccessoAtti&quot; database table, with each column mapped to a property of this class. * The extended model interface for the RichiestaAccessoAtti service. Represents a row in the &quot;portos_atti_RichiestaAccessoAtti&quot; database table, with each column mapped to a property of this class.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiModel * @see RichiestaAccessoAttiModel
* @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl * @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl
* @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl * @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiClp.java

@ -34,7 +34,7 @@ import java.util.HashMap;
import java.util.Map; import java.util.Map;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
public class RichiestaAccessoAttiClp extends BaseModelImpl<RichiestaAccessoAtti> public class RichiestaAccessoAttiClp extends BaseModelImpl<RichiestaAccessoAtti>
implements RichiestaAccessoAtti { implements RichiestaAccessoAtti {

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiModel.java

@ -34,7 +34,7 @@ import java.util.Date;
* This interface and its corresponding implementation {@link it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl}. * This interface and its corresponding implementation {@link it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl}.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAtti * @see RichiestaAccessoAtti
* @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl * @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl
* @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl * @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiSoap.java

@ -23,7 +23,7 @@ import java.util.List;
/** /**
* This class is used by SOAP remote services, specifically {@link it.tref.liferay.portos.accesso.atti.service.http.RichiestaAccessoAttiServiceSoap}. * This class is used by SOAP remote services, specifically {@link it.tref.liferay.portos.accesso.atti.service.http.RichiestaAccessoAttiServiceSoap}.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see it.tref.liferay.portos.accesso.atti.service.http.RichiestaAccessoAttiServiceSoap * @see it.tref.liferay.portos.accesso.atti.service.http.RichiestaAccessoAttiServiceSoap
* @generated * @generated
*/ */

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/model/RichiestaAccessoAttiWrapper.java

@ -26,7 +26,7 @@ import java.util.Map;
* This class is a wrapper for {@link RichiestaAccessoAtti}. * This class is a wrapper for {@link RichiestaAccessoAtti}.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAtti * @see RichiestaAccessoAtti
* @generated * @generated
*/ */

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/ClpSerializer.java

@ -36,7 +36,7 @@ import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
public class ClpSerializer { public class ClpSerializer {
public static String getServletContextName() { public static String getServletContextName() {

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalService.java

@ -30,7 +30,7 @@ import com.liferay.portal.service.PersistedModelLocalService;
* credentials because this service can only be accessed from within the same * credentials because this service can only be accessed from within the same
* VM. * VM.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiLocalServiceUtil * @see RichiestaAccessoAttiLocalServiceUtil
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl * @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl
* @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl * @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceClp.java

@ -17,7 +17,7 @@ package it.tref.liferay.portos.accesso.atti.service;
import com.liferay.portal.service.InvokableLocalService; import com.liferay.portal.service.InvokableLocalService;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated * @generated
*/ */
public class RichiestaAccessoAttiLocalServiceClp public class RichiestaAccessoAttiLocalServiceClp

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceUtil.java

@ -26,7 +26,7 @@ import com.liferay.portal.service.InvokableLocalService;
* based on the propagated JAAS credentials because this service can only be * based on the propagated JAAS credentials because this service can only be
* accessed from within the same VM. * accessed from within the same VM.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiLocalService * @see RichiestaAccessoAttiLocalService
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl * @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl
* @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl * @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiLocalServiceWrapper.java

@ -19,7 +19,7 @@ import com.liferay.portal.service.ServiceWrapper;
/** /**
* Provides a wrapper for {@link RichiestaAccessoAttiLocalService}. * Provides a wrapper for {@link RichiestaAccessoAttiLocalService}.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiLocalService * @see RichiestaAccessoAttiLocalService
* @generated * @generated
*/ */

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiService.java

@ -28,7 +28,7 @@ import com.liferay.portal.service.InvokableService;
* service are expected to have security checks based on the propagated JAAS * service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiServiceUtil * @see RichiestaAccessoAttiServiceUtil
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl * @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl
* @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl * @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiServiceClp.java

@ -17,7 +17,7 @@ package it.tref.liferay.portos.accesso.atti.service;
import com.liferay.portal.service.InvokableService; import com.liferay.portal.service.InvokableService;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated * @generated
*/ */
public class RichiestaAccessoAttiServiceClp public class RichiestaAccessoAttiServiceClp

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiServiceUtil.java

@ -26,7 +26,7 @@ import com.liferay.portal.service.InvokableService;
* checks based on the propagated JAAS credentials because this service can be * checks based on the propagated JAAS credentials because this service can be
* accessed remotely. * accessed remotely.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiService * @see RichiestaAccessoAttiService
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl * @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl
* @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl * @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/RichiestaAccessoAttiServiceWrapper.java

@ -19,7 +19,7 @@ import com.liferay.portal.service.ServiceWrapper;
/** /**
* Provides a wrapper for {@link RichiestaAccessoAttiService}. * Provides a wrapper for {@link RichiestaAccessoAttiService}.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiService * @see RichiestaAccessoAttiService
* @generated * @generated
*/ */

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/messaging/ClpMessageListener.java

@ -22,7 +22,7 @@ import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServ
import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil; import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
public class ClpMessageListener extends BaseMessageListener { public class ClpMessageListener extends BaseMessageListener {
public static String getServletContextName() { public static String getServletContextName() {

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiActionableDynamicQuery.java

@ -21,7 +21,7 @@ import it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti;
import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil; import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated * @generated
*/ */
public abstract class RichiestaAccessoAttiActionableDynamicQuery public abstract class RichiestaAccessoAttiActionableDynamicQuery

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistence.java

@ -25,7 +25,7 @@ import it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti;
* Caching information and settings can be found in <code>portal.properties</code> * Caching information and settings can be found in <code>portal.properties</code>
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiPersistenceImpl * @see RichiestaAccessoAttiPersistenceImpl
* @see RichiestaAccessoAttiUtil * @see RichiestaAccessoAttiUtil
* @generated * @generated

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiUtil.java

@ -32,7 +32,7 @@ import java.util.List;
* Caching information and settings can be found in <code>portal.properties</code> * Caching information and settings can be found in <code>portal.properties</code>
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiPersistence * @see RichiestaAccessoAttiPersistence
* @see RichiestaAccessoAttiPersistenceImpl * @see RichiestaAccessoAttiPersistenceImpl
* @generated * @generated

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

@ -26,7 +26,7 @@ import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServ
* This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link RichiestaAccessoAttiImpl}. * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link RichiestaAccessoAttiImpl}.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiImpl * @see RichiestaAccessoAttiImpl
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti * @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti
* @generated * @generated

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

@ -30,7 +30,7 @@ import java.util.Date;
/** /**
* The cache model class for representing RichiestaAccessoAtti in entity cache. * The cache model class for representing RichiestaAccessoAtti in entity cache.
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAtti * @see RichiestaAccessoAtti
* @generated * @generated
*/ */

35
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/model/impl/RichiestaAccessoAttiImpl.java

@ -1,34 +1,29 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.accesso.atti.model.impl; package it.tref.liferay.portos.accesso.atti.model.impl;
/** /**
* The extended model implementation for the RichiestaAccessoAtti service. Represents a row in the &quot;portos_atti_RichiestaAccessoAtti&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the RichiestaAccessoAtti service. Represents a row in the
* * &quot;portos_atti_RichiestaAccessoAtti&quot; database table, with each column mapped to a property of this class.
* <p> * <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.accesso.atti.model.RichiestaAccessoAtti} 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.accesso.atti.model.RichiestaAccessoAtti} interface.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
@SuppressWarnings("serial")
public class RichiestaAccessoAttiImpl extends RichiestaAccessoAttiBaseImpl { public class RichiestaAccessoAttiImpl extends RichiestaAccessoAttiBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a richiesta accesso atti model
* * instance should use the {@link it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti} interface instead.
* Never reference this class directly. All methods that expect a richiesta accesso atti model instance should use the {@link it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti} interface instead.
*/ */
public RichiestaAccessoAttiImpl() { public RichiestaAccessoAttiImpl() {}
}
} }

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

@ -50,7 +50,7 @@ import java.util.Map;
* This implementation and its corresponding interface {@link it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link RichiestaAccessoAttiImpl}. * This implementation and its corresponding interface {@link it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link RichiestaAccessoAttiImpl}.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiImpl * @see RichiestaAccessoAttiImpl
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti * @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiModel * @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiModel

383
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiBOPortlet.java

@ -52,89 +52,66 @@ import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portal.util.PortalUtil; import com.liferay.portal.util.PortalUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
/**
* Portlet implementation class AccessoAttiBOPortlet
*/
public class AccessoAttiBOPortlet extends MVCPortlet { public class AccessoAttiBOPortlet extends MVCPortlet {
public static final Log _log = LogFactoryUtil.getLog(AccessoAttiBOPortlet.class); public static final Log _log = LogFactoryUtil.getLog(AccessoAttiBOPortlet.class);
public void accettaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException{ public void accettaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException,
AddressException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId"); long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId");
String testoEmail = ParamUtil.getString(actionRequest, "testoEmail"); String testoEmail = ParamUtil.getString(actionRequest, "testoEmail");
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAtti = .fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId); if (richiestaAccessoAtti != null) {
if(richiestaAccessoAtti != null){
String accessToken = AccessoAttiAccessTokenUtil.generateAccessToken(richiestaAccessoAttiId, String accessToken = AccessoAttiAccessTokenUtil.generateAccessToken(richiestaAccessoAttiId,
richiestaAccessoAtti.getNumeroProgetto(), richiestaAccessoAtti.getUserId()); richiestaAccessoAtti.getNumeroProgetto(), richiestaAccessoAtti.getUserId());
richiestaAccessoAtti.setFunzionarioId(themeDisplay.getUserId()); richiestaAccessoAtti.setFunzionarioId(themeDisplay.getUserId());
richiestaAccessoAtti.setGestita(true); richiestaAccessoAtti.setGestita(true);
richiestaAccessoAtti.setAccettata(true); richiestaAccessoAtti.setAccettata(true);
richiestaAccessoAtti.setDtAccettazione(new Date()); richiestaAccessoAtti.setDtAccettazione(new Date());
richiestaAccessoAtti.setAccessToken(accessToken); richiestaAccessoAtti.setAccessToken(accessToken);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
try { try {
String protocollo = ProtocolloUtil.protocollaArrivoAccessoAtti(richiestaAccessoAtti.getGroupId(), String protocollo = ProtocolloUtil.protocollaArrivoAccessoAtti(richiestaAccessoAtti.getGroupId(),
richiestaAccessoAtti.getCompanyId(), richiestaAccessoAtti.getUserName(), richiestaAccessoAtti.getCompanyId(), richiestaAccessoAtti.getUserName(),
richiestaAccessoAtti.getRichiestaAccessoAttiId(), RichiestaAccessoAtti.class.getName()); richiestaAccessoAtti.getRichiestaAccessoAttiId(), RichiestaAccessoAtti.class.getName());
richiestaAccessoAtti.setProtocolloUscita(protocollo); richiestaAccessoAtti.setProtocolloUscita(protocollo);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
EmailSenderUtil.sendAcceptedEmail(richiestaAccessoAttiId, testoEmail); EmailSenderUtil.sendAcceptedEmail(richiestaAccessoAttiId, testoEmail);
} }
} }
public void rifiutaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException{ public void rifiutaRichiesta(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException,
AddressException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId"); long richiestaAccessoAttiId = ParamUtil.getLong(actionRequest, "richiestaAccessoAttiId");
String motivoRifiuto = ParamUtil.getString(actionRequest, "motivoRifiuto"); String motivoRifiuto = ParamUtil.getString(actionRequest, "motivoRifiuto");
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
RichiestaAccessoAtti richiestaAccessoAtti = if (richiestaAccessoAtti != null) {
RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
richiestaAccessoAtti.setFunzionarioId(themeDisplay.getUserId()); richiestaAccessoAtti.setFunzionarioId(themeDisplay.getUserId());
richiestaAccessoAtti.setGestita(true); richiestaAccessoAtti.setGestita(true);
richiestaAccessoAtti.setAccettata(false); richiestaAccessoAtti.setAccettata(false);
richiestaAccessoAtti.setDtAccettazione(new Date()); richiestaAccessoAtti.setDtAccettazione(new Date());
richiestaAccessoAtti.setAccessToken("-1"); richiestaAccessoAtti.setAccessToken("-1");
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
try { try {
String protocollo = ProtocolloUtil.protocollaArrivoAccessoAtti(richiestaAccessoAtti.getGroupId(), String protocollo = ProtocolloUtil.protocollaArrivoAccessoAtti(richiestaAccessoAtti.getGroupId(),
richiestaAccessoAtti.getCompanyId(), richiestaAccessoAtti.getUserName(), richiestaAccessoAtti.getCompanyId(), richiestaAccessoAtti.getUserName(),
richiestaAccessoAtti.getRichiestaAccessoAttiId(), RichiestaAccessoAtti.class.getName()); richiestaAccessoAtti.getRichiestaAccessoAttiId(), RichiestaAccessoAtti.class.getName());
richiestaAccessoAtti.setProtocolloUscita(protocollo); richiestaAccessoAtti.setProtocolloUscita(protocollo);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
EmailSenderUtil.sendDeniedEmail(richiestaAccessoAttiId, motivoRifiuto); EmailSenderUtil.sendDeniedEmail(richiestaAccessoAttiId, motivoRifiuto);
} }
} }
public void ricercaGestite(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { public void ricercaGestite(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
@ -143,65 +120,48 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
String protocollo = actionRequest.getParameter("protocollo"); String protocollo = actionRequest.getParameter("protocollo");
String dataDal = actionRequest.getParameter("dataDal"); String dataDal = actionRequest.getParameter("dataDal");
String dataAl = actionRequest.getParameter("dataAl"); String dataAl = actionRequest.getParameter("dataAl");
actionResponse.setRenderParameter("numeroProgetto", numeroProgetto); actionResponse.setRenderParameter("numeroProgetto", numeroProgetto);
actionResponse.setRenderParameter("protocollo", protocollo); actionResponse.setRenderParameter("protocollo", protocollo);
actionResponse.setRenderParameter("dataDal", dataDal); actionResponse.setRenderParameter("dataDal", dataDal);
actionResponse.setRenderParameter("dataAl", dataAl); actionResponse.setRenderParameter("dataAl", dataAl);
actionResponse.setRenderParameter("tabs1", "Richieste Concluse"); actionResponse.setRenderParameter("tabs1", "Richieste Concluse");
} }
@Override @Override
public void serveResource(ResourceRequest resourceRequest, public void serveResource(ResourceRequest resourceRequest, ResourceResponse resourceResponse) throws IOException,
ResourceResponse resourceResponse) throws IOException,
PortletException { PortletException {
String id = resourceRequest.getResourceID(); String id = resourceRequest.getResourceID();
if ("exportRicerca".equals(id)) {
if("exportRicerca".equals(id)){
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY);
Locale locale = themeDisplay.getLocale(); Locale locale = themeDisplay.getLocale();
User user = themeDisplay.getUser(); User user = themeDisplay.getUser();
String csv = StringPool.BLANK; String csv = StringPool.BLANK;
HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletRequest request = PortalUtil.getHttpServletRequest(resourceRequest);
HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse); HttpServletResponse response = PortalUtil.getHttpServletResponse(resourceResponse);
try { try {
csv = exportSearch(locale, resourceRequest, user); csv = exportSearch(locale, resourceRequest, user);
} catch (SystemException | ParseException | PortalException e) { } catch (SystemException | ParseException | PortalException e) {
_log.error(e,e); _log.error(e, e);
} }
ServletResponseUtil.sendFile(request, response, "export_ricerca_accesso_atti_" + new Date().getTime()
ServletResponseUtil.sendFile(request, response, "export_ricerca_accesso_atti_"+ new Date().getTime() + ".csv", csv.getBytes(StringPool.UTF8), + ".csv", csv.getBytes(StringPool.UTF8), ContentTypes.TEXT_CSV_UTF8);
ContentTypes.TEXT_CSV_UTF8);
} }
super.serveResource(resourceRequest, resourceResponse); super.serveResource(resourceRequest, resourceResponse);
} }
private String exportSearch(Locale locale, ResourceRequest resourceRequest, User user) throws SystemException, ParseException, PortalException { private String exportSearch(Locale locale, ResourceRequest resourceRequest, User user) throws SystemException,
ParseException, PortalException {
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest.getAttribute(WebKeys.THEME_DISPLAY);
HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(resourceRequest); HttpServletRequest httpRequest = PortalUtil.getHttpServletRequest(resourceRequest);
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
String numeroProgetto = ParamUtil.getString(httpRequest, "numeroProgetto", StringPool.BLANK); String numeroProgetto = ParamUtil.getString(httpRequest, "numeroProgetto", StringPool.BLANK);
String protocollo = ParamUtil.getString(httpRequest, "protocollo", StringPool.BLANK); String protocollo = ParamUtil.getString(httpRequest, "protocollo", StringPool.BLANK);
String dataDal = ParamUtil.getString(httpRequest, "dataDal", StringPool.BLANK); String dataDal = ParamUtil.getString(httpRequest, "dataDal", StringPool.BLANK);
String dataAl = ParamUtil.getString(httpRequest, "dataAl", StringPool.BLANK); String dataAl = ParamUtil.getString(httpRequest, "dataAl", StringPool.BLANK);
List<RichiestaAccessoAtti> lista = RichiestaAccessoAttiLocalServiceUtil.findCompletate(numeroProgetto,
List<RichiestaAccessoAtti> lista = protocollo, dataDal, dataAl, -1, -1);
RichiestaAccessoAttiLocalServiceUtil.findCompletate(numeroProgetto, protocollo, dataDal, dataAl, -1, -1);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "Utente Richiedente"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "Utente Richiedente")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "Data Gestione"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "Data Gestione")));
@ -222,98 +182,68 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "Gestita Da"))); sb.append(CSVUtil.encode(LanguageUtil.get(getPortletConfig(), locale, "Gestita Da")));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
for (RichiestaAccessoAtti atto : lista) { for (RichiestaAccessoAtti atto : lista) {
sb.append(CSVUtil.encode(UserLocalServiceUtil.getUser(atto.getUserId()).getFullName())); sb.append(CSVUtil.encode(UserLocalServiceUtil.getUser(atto.getUserId()).getFullName()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(sdf.format(atto.getDtAccettazione()))); sb.append(CSVUtil.encode(sdf.format(atto.getDtAccettazione())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(atto.getProtocolloEntrata())); sb.append(CSVUtil.encode(atto.getProtocolloEntrata()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(atto.getProtocolloUscita())); sb.append(CSVUtil.encode(atto.getProtocolloUscita()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(atto.getNumeroProgetto())); sb.append(CSVUtil.encode(atto.getNumeroProgetto()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(sdf.format(atto.getDtVidimazione()))); sb.append(CSVUtil.encode(sdf.format(atto.getDtVidimazione())));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(atto.getSanatoria() ? "SI" : "NO")); sb.append(CSVUtil.encode(atto.getSanatoria() ? "SI" : "NO"));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
if (atto.getIntPraticaId() != 0L) {
if(atto.getIntPraticaId() != 0L){
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(atto.getTerritorioId()); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(atto.getTerritorioId());
Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId()); Comune comune = ComuneLocalServiceUtil.getComune(territorio.getComuneId());
Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(), comune.getCodiceProvincia()); Provincia provincia = ProvinciaLocalServiceUtil.fetchByC_C(themeDisplay.getCompanyId(),
comune.getCodiceProvincia());
sb.append(CSVUtil.encode(provincia.getProvincia())); sb.append(CSVUtil.encode(provincia.getProvincia()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
} else { } else {
sb.append(CSVUtil.encode("")); sb.append(CSVUtil.encode(""));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
} }
sb.append(CSVUtil.encode(atto.getAccettata() ? "SI" : "NO")); sb.append(CSVUtil.encode(atto.getAccettata() ? "SI" : "NO"));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(CSVUtil.encode(UserLocalServiceUtil.getUser(atto.getFunzionarioId()).getFullName())); sb.append(CSVUtil.encode(UserLocalServiceUtil.getUser(atto.getFunzionarioId()).getFullName()));
sb.append(StringPool.SEMICOLON); sb.append(StringPool.SEMICOLON);
sb.append(StringPool.NEW_LINE); sb.append(StringPool.NEW_LINE);
} }
return sb.toString(); return sb.toString();
} }
public void aggiungiRichiestaBO(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, AddressException, ParseException{ public void aggiungiRichiestaBO(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException,
AddressException, ParseException {
long accessoAttiId = 0L; long accessoAttiId = 0L;
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataCheck = sdf.parse("01/01/2015"); Date dataCheck = sdf.parse("01/01/2015");
boolean isNoCNSUser = ParamUtil.getBoolean(actionRequest, "isNoCNSUser"); boolean isNoCNSUser = ParamUtil.getBoolean(actionRequest, "isNoCNSUser");
String codiceFiscale = ParamUtil.getString(actionRequest, "codiceFiscale"); String codiceFiscale = ParamUtil.getString(actionRequest, "codiceFiscale");
String emailRicontatto = ParamUtil.getString(actionRequest, "emailRicontatto"); String emailRicontatto = ParamUtil.getString(actionRequest, "emailRicontatto");
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
Date dataVidimazione = ParamUtil.getDate(actionRequest, "dataVidimazione", sdf); Date dataVidimazione = ParamUtil.getDate(actionRequest, "dataVidimazione", sdf);
String qualitaPersona = ParamUtil.getString(actionRequest, "qualitaPersona"); String qualitaPersona = ParamUtil.getString(actionRequest, "qualitaPersona");
String visione = ParamUtil.getString(actionRequest, "visione"); String visione = ParamUtil.getString(actionRequest, "visione");
String copiaDettaglio = ParamUtil.getString(actionRequest, "copiaDett"); String copiaDettaglio = ParamUtil.getString(actionRequest, "copiaDett");
String motivazione = ParamUtil.getString(actionRequest, "motivazione"); String motivazione = ParamUtil.getString(actionRequest, "motivazione");
boolean sanatoria = ParamUtil.getBoolean(actionRequest, "sanatoria"); boolean sanatoria = ParamUtil.getBoolean(actionRequest, "sanatoria");
if (numeroProgetto != null && !numeroProgetto.equalsIgnoreCase("")) {
if(numeroProgetto != null && !numeroProgetto.equalsIgnoreCase("")){ if (!dataVidimazione.before(dataCheck) && !sanatoria) {
if(!dataVidimazione.before(dataCheck) && !sanatoria){
IntPratica intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); IntPratica intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
if(intPratica != null){ if (intPratica != null) {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.createRichiestaAccessoAtti( .createRichiestaAccessoAtti(CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class
CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class.getName())); .getName()));
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId(); accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId();
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId()); richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId());
richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId()); richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId());
richiestaAccessoAtti.setGroupId(intPratica.getGroupId()); richiestaAccessoAtti.setGroupId(intPratica.getGroupId());
@ -324,194 +254,139 @@ public class AccessoAttiBOPortlet extends MVCPortlet {
richiestaAccessoAtti.setMotivazioneRichiesta(motivazione); richiestaAccessoAtti.setMotivazioneRichiesta(motivazione);
richiestaAccessoAtti.setNumeroProgetto(numeroProgetto); richiestaAccessoAtti.setNumeroProgetto(numeroProgetto);
richiestaAccessoAtti.setSanatoria(sanatoria); richiestaAccessoAtti.setSanatoria(sanatoria);
if (sanatoria) {
if(sanatoria){
Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf); Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf);
richiestaAccessoAtti.setDtSanatoria(dataSanatoria); richiestaAccessoAtti.setDtSanatoria(dataSanatoria);
} }
richiestaAccessoAtti.setTipologiaPersona(qualitaPersona); richiestaAccessoAtti.setTipologiaPersona(qualitaPersona);
if (visione.equalsIgnoreCase("copia")) {
if(visione.equalsIgnoreCase("copia")){
richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio); richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio);
} }
richiestaAccessoAtti.setTipologiaRichiesta(visione); richiestaAccessoAtti.setTipologiaRichiesta(visione);
User loggedUser = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(),
User loggedUser = codiceFiscale.toLowerCase());
UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(), codiceFiscale.toLowerCase()); if (loggedUser != null) {
if(loggedUser != null){
richiestaAccessoAtti.setUserId(loggedUser.getUserId()); richiestaAccessoAtti.setUserId(loggedUser.getUserId());
richiestaAccessoAtti.setUserName(loggedUser.getScreenName()); richiestaAccessoAtti.setUserName(loggedUser.getScreenName());
} else { } else {
richiestaAccessoAtti.setUserName(codiceFiscale.toLowerCase()); richiestaAccessoAtti.setUserName(codiceFiscale.toLowerCase());
} }
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
if (dataVidimazione.before(dataCheck) || sanatoria) {
if(dataVidimazione.before(dataCheck) || sanatoria){ if (uploadRequest.getSize("allegatoPagamento") != 0) {
if(uploadRequest.getSize("allegatoPagamento") != 0){
String sourceFileName = uploadRequest.getFileName("allegatoPagamento"); String sourceFileName = uploadRequest.getFileName("allegatoPagamento");
File fileApp = uploadRequest.getFile("allegatoPagamento"); File fileApp = uploadRequest.getFile("allegatoPagamento");
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti( themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, true); sourceFileName, fileApp, true);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId()); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento); richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
} }
} }
if (isNoCNSUser) {
if(isNoCNSUser){ if (uploadRequest.getSize("documentoIdentita") != 0) {
if(uploadRequest.getSize("documentoIdentita") != 0){
String sourceFileName = uploadRequest.getFileName("documentoIdentita"); String sourceFileName = uploadRequest.getFileName("documentoIdentita");
File fileApp = uploadRequest.getFile("documentoIdentita"); File fileApp = uploadRequest.getFile("documentoIdentita");
long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti( themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, false); sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId()); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento); richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
} }
} }
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(accessoAttiId); .fetchRichiestaAccessoAtti(accessoAttiId);
try { try {
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(richiesta.getRichiestaAccessoAttiId(), richiesta.getRichiestaAccessoAttiId(), richiesta.getIntPraticaId(),
richiesta.getIntPraticaId(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(), richiesta.getCompanyId(),
richiesta.getCompanyId(), richiesta.getUserName()); richiesta.getUserName());
richiesta.setProtocolloEntrata(protocollo); richiesta.setProtocolloEntrata(protocollo);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta);
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
EmailSenderUtil.sendAcceptedRequest(accessoAttiId); EmailSenderUtil.sendAcceptedRequest(accessoAttiId);
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); actionResponse.setRenderParameter("jspPage", "/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} else { } else {
SessionErrors.add(actionRequest, "atto-non-esistente"); SessionErrors.add(actionRequest, "atto-non-esistente");
} }
} else { } else {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.createRichiestaAccessoAtti( .createRichiestaAccessoAtti(CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class
CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class.getName())); .getName()));
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId();
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId());
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId(); richiestaAccessoAtti.setCreateDate(new Date());
richiestaAccessoAtti.setEmailRicontatto(emailRicontatto);
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId()); richiestaAccessoAtti.setDtVidimazione(dataVidimazione);
// richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId()); richiestaAccessoAtti.setMotivazioneRichiesta(motivazione);
// richiestaAccessoAtti.setGroupId(intPratica.getGroupId()); richiestaAccessoAtti.setNumeroProgetto(numeroProgetto);
// richiestaAccessoAtti.setTerritorioId(intPratica.getTerritorioId()); richiestaAccessoAtti.setSanatoria(sanatoria);
richiestaAccessoAtti.setCreateDate(new Date()); if (sanatoria) {
richiestaAccessoAtti.setEmailRicontatto(emailRicontatto); Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf);
richiestaAccessoAtti.setDtVidimazione(dataVidimazione); richiestaAccessoAtti.setDtSanatoria(dataSanatoria);
richiestaAccessoAtti.setMotivazioneRichiesta(motivazione); }
richiestaAccessoAtti.setNumeroProgetto(numeroProgetto); richiestaAccessoAtti.setTipologiaPersona(qualitaPersona);
richiestaAccessoAtti.setSanatoria(sanatoria); if (visione.equalsIgnoreCase("copia")) {
if(sanatoria){ richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio);
Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf); }
richiestaAccessoAtti.setDtSanatoria(dataSanatoria); richiestaAccessoAtti.setTipologiaRichiesta(visione);
} User loggedUser = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(),
richiestaAccessoAtti.setTipologiaPersona(qualitaPersona); codiceFiscale.toLowerCase());
if (loggedUser != null) {
if(visione.equalsIgnoreCase("copia")){ richiestaAccessoAtti.setUserId(loggedUser.getUserId());
richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio); richiestaAccessoAtti.setUserName(loggedUser.getScreenName());
} } else {
richiestaAccessoAtti.setUserName(codiceFiscale.toLowerCase());
richiestaAccessoAtti.setTipologiaRichiesta(visione); }
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
User loggedUser = UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(), codiceFiscale.toLowerCase()); if (dataVidimazione.before(dataCheck) || sanatoria) {
if(loggedUser != null){ if (uploadRequest.getSize("allegatoPagamento") != 0) {
richiestaAccessoAtti.setUserId(loggedUser.getUserId()); String sourceFileName = uploadRequest.getFileName("allegatoPagamento");
richiestaAccessoAtti.setUserName(loggedUser.getScreenName()); File fileApp = uploadRequest.getFile("allegatoPagamento");
} else { long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
richiestaAccessoAtti.setUserName(codiceFiscale.toLowerCase()); themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
} sourceFileName, fileApp, true);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento);
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
if(dataVidimazione.before(dataCheck) || sanatoria){
if(uploadRequest.getSize("allegatoPagamento") != 0){
String sourceFileName = uploadRequest.getFileName("allegatoPagamento");
File fileApp = uploadRequest.getFile("allegatoPagamento");
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, true);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
}
}
if(isNoCNSUser){
if(uploadRequest.getSize("documentoIdentita") != 0){
String sourceFileName = uploadRequest.getFileName("documentoIdentita");
File fileApp = uploadRequest.getFile("documentoIdentita");
long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
}
} }
}
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(accessoAttiId); if (isNoCNSUser) {
if (uploadRequest.getSize("documentoIdentita") != 0) {
try { String sourceFileName = uploadRequest.getFileName("documentoIdentita");
File fileApp = uploadRequest.getFile("documentoIdentita");
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(richiesta.getRichiestaAccessoAttiId(), long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
richiesta.getIntPraticaId(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(), themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
richiesta.getCompanyId(), richiesta.getUserName()); sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
richiesta.setProtocolloEntrata(protocollo); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta); richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
} catch (Exception e) {
_log.error(e);
} }
}
EmailSenderUtil.sendAcceptedRequest(accessoAttiId); RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); .fetchRichiestaAccessoAtti(accessoAttiId);
try {
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(
richiesta.getRichiestaAccessoAttiId(), richiesta.getIntPraticaId(), richiesta.getGroupId(),
RichiestaAccessoAtti.class.getName(), richiesta.getCompanyId(), richiesta.getUserName());
richiesta.setProtocolloEntrata(protocollo);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta);
} catch (Exception e) {
_log.error(e);
}
EmailSenderUtil.sendAcceptedRequest(accessoAttiId);
actionResponse.setRenderParameter("jspPage", "/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} }
} }
} }
} }

326
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiFEPortlet.java

@ -30,47 +30,34 @@ import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portal.util.PortalUtil; import com.liferay.portal.util.PortalUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
/**
* Portlet implementation class AccessoAttiFEPortlet
*/
public class AccessoAttiFEPortlet extends MVCPortlet { public class AccessoAttiFEPortlet extends MVCPortlet {
public static final Log _log = LogFactoryUtil.getLog(AccessoAttiFEPortlet.class); public static final Log _log = LogFactoryUtil.getLog(AccessoAttiFEPortlet.class);
public void inviaRichiestaAccessoAtti(ActionRequest actionRequest, ActionResponse actionResponse) throws ParseException, SystemException, AddressException{ public void inviaRichiestaAccessoAtti(ActionRequest actionRequest, ActionResponse actionResponse)
throws ParseException, SystemException, AddressException {
long accessoAttiId = 0L; long accessoAttiId = 0L;
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataCheck = sdf.parse("01/01/2015"); Date dataCheck = sdf.parse("01/01/2015");
boolean isNoCNSUser = ParamUtil.getBoolean(actionRequest, "isNoCNSUser"); boolean isNoCNSUser = ParamUtil.getBoolean(actionRequest, "isNoCNSUser");
String emailRicontatto = ParamUtil.getString(actionRequest, "emailRicontatto"); String emailRicontatto = ParamUtil.getString(actionRequest, "emailRicontatto");
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto"); String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
Date dataVidimazione = ParamUtil.getDate(actionRequest, "dataVidimazione", sdf); Date dataVidimazione = ParamUtil.getDate(actionRequest, "dataVidimazione", sdf);
String qualitaPersona = ParamUtil.getString(actionRequest, "qualitaPersona"); String qualitaPersona = ParamUtil.getString(actionRequest, "qualitaPersona");
String visione = ParamUtil.getString(actionRequest, "visione"); String visione = ParamUtil.getString(actionRequest, "visione");
String copiaDettaglio = ParamUtil.getString(actionRequest, "copiaDett"); String copiaDettaglio = ParamUtil.getString(actionRequest, "copiaDett");
String motivazione = ParamUtil.getString(actionRequest, "motivazione"); String motivazione = ParamUtil.getString(actionRequest, "motivazione");
boolean sanatoria = ParamUtil.getBoolean(actionRequest, "sanatoria"); boolean sanatoria = ParamUtil.getBoolean(actionRequest, "sanatoria");
if (numeroProgetto != null && !numeroProgetto.equalsIgnoreCase("")) {
if(numeroProgetto != null && !numeroProgetto.equalsIgnoreCase("")){ if (!dataVidimazione.before(dataCheck) && !sanatoria) {
if(!dataVidimazione.before(dataCheck) && !sanatoria){
IntPratica intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto); IntPratica intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
if(intPratica != null){ if (intPratica != null) {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.createRichiestaAccessoAtti( .createRichiestaAccessoAtti(CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class
CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class.getName())); .getName()));
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId(); accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId();
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId()); richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId());
richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId()); richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId());
richiestaAccessoAtti.setGroupId(intPratica.getGroupId()); richiestaAccessoAtti.setGroupId(intPratica.getGroupId());
@ -81,202 +68,144 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
richiestaAccessoAtti.setMotivazioneRichiesta(motivazione); richiestaAccessoAtti.setMotivazioneRichiesta(motivazione);
richiestaAccessoAtti.setNumeroProgetto(numeroProgetto); richiestaAccessoAtti.setNumeroProgetto(numeroProgetto);
richiestaAccessoAtti.setSanatoria(sanatoria); richiestaAccessoAtti.setSanatoria(sanatoria);
if (sanatoria) {
if(sanatoria){
Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf); Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf);
richiestaAccessoAtti.setDtSanatoria(dataSanatoria); richiestaAccessoAtti.setDtSanatoria(dataSanatoria);
} }
richiestaAccessoAtti.setTipologiaPersona(qualitaPersona); richiestaAccessoAtti.setTipologiaPersona(qualitaPersona);
if (visione.equalsIgnoreCase("copia")) {
if(visione.equalsIgnoreCase("copia")){
richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio); richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio);
} }
richiestaAccessoAtti.setTipologiaRichiesta(visione); richiestaAccessoAtti.setTipologiaRichiesta(visione);
richiestaAccessoAtti.setUserId(themeDisplay.getUserId()); richiestaAccessoAtti.setUserId(themeDisplay.getUserId());
richiestaAccessoAtti.setUserName(themeDisplay.getUser().getScreenName()); richiestaAccessoAtti.setUserName(themeDisplay.getUser().getScreenName());
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
if (dataVidimazione.before(dataCheck) || sanatoria) {
if(dataVidimazione.before(dataCheck) || sanatoria){ if (uploadRequest.getSize("allegatoPagamento") != 0) {
if(uploadRequest.getSize("allegatoPagamento") != 0){
String sourceFileName = uploadRequest.getFileName("allegatoPagamento"); String sourceFileName = uploadRequest.getFileName("allegatoPagamento");
File fileApp = uploadRequest.getFile("allegatoPagamento"); File fileApp = uploadRequest.getFile("allegatoPagamento");
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti( themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, true); sourceFileName, fileApp, true);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId()); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento); richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
} }
} }
if (isNoCNSUser) {
if(isNoCNSUser){ if (uploadRequest.getSize("documentoIdentita") != 0) {
if(uploadRequest.getSize("documentoIdentita") != 0){
String sourceFileName = uploadRequest.getFileName("documentoIdentita"); String sourceFileName = uploadRequest.getFileName("documentoIdentita");
File fileApp = uploadRequest.getFile("documentoIdentita"); File fileApp = uploadRequest.getFile("documentoIdentita");
long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti( themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, false); sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId()); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento); richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
} }
} }
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(accessoAttiId); .fetchRichiestaAccessoAtti(accessoAttiId);
try { try {
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(richiesta.getRichiestaAccessoAttiId(), richiesta.getRichiestaAccessoAttiId(), richiesta.getIntPraticaId(),
richiesta.getIntPraticaId(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(), richiesta.getCompanyId(),
richiesta.getCompanyId(), richiesta.getUserName()); richiesta.getUserName());
richiesta.setProtocolloEntrata(protocollo); richiesta.setProtocolloEntrata(protocollo);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta);
} catch (Exception e) { } catch (Exception e) {
_log.error(e); _log.error(e);
} }
EmailSenderUtil.sendAcceptedRequest(accessoAttiId); EmailSenderUtil.sendAcceptedRequest(accessoAttiId);
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); actionResponse.setRenderParameter("jspPage", "/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} else { } else {
SessionErrors.add(actionRequest, "atto-non-esistente"); SessionErrors.add(actionRequest, "atto-non-esistente");
} }
} else { } else {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.createRichiestaAccessoAtti( .createRichiestaAccessoAtti(CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class
CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class.getName())); .getName()));
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId();
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId());
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId(); richiestaAccessoAtti.setCreateDate(new Date());
richiestaAccessoAtti.setEmailRicontatto(emailRicontatto);
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId()); richiestaAccessoAtti.setDtVidimazione(dataVidimazione);
// richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId()); richiestaAccessoAtti.setMotivazioneRichiesta(motivazione);
// richiestaAccessoAtti.setGroupId(intPratica.getGroupId()); richiestaAccessoAtti.setNumeroProgetto(numeroProgetto);
// richiestaAccessoAtti.setTerritorioId(intPratica.getTerritorioId()); richiestaAccessoAtti.setSanatoria(sanatoria);
richiestaAccessoAtti.setCreateDate(new Date()); if (sanatoria) {
richiestaAccessoAtti.setEmailRicontatto(emailRicontatto); Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf);
richiestaAccessoAtti.setDtVidimazione(dataVidimazione); richiestaAccessoAtti.setDtSanatoria(dataSanatoria);
richiestaAccessoAtti.setMotivazioneRichiesta(motivazione); }
richiestaAccessoAtti.setNumeroProgetto(numeroProgetto); richiestaAccessoAtti.setTipologiaPersona(qualitaPersona);
richiestaAccessoAtti.setSanatoria(sanatoria); if (visione.equalsIgnoreCase("copia")) {
if(sanatoria){ richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio);
Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf); }
richiestaAccessoAtti.setDtSanatoria(dataSanatoria); richiestaAccessoAtti.setTipologiaRichiesta(visione);
} richiestaAccessoAtti.setUserId(themeDisplay.getUserId());
richiestaAccessoAtti.setTipologiaPersona(qualitaPersona); richiestaAccessoAtti.setUserName(themeDisplay.getUser().getScreenName());
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
if(visione.equalsIgnoreCase("copia")){ UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio); if (dataVidimazione.before(dataCheck) || sanatoria) {
} if (uploadRequest.getSize("allegatoPagamento") != 0) {
String sourceFileName = uploadRequest.getFileName("allegatoPagamento");
richiestaAccessoAtti.setTipologiaRichiesta(visione); File fileApp = uploadRequest.getFile("allegatoPagamento");
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
richiestaAccessoAtti.setUserId(themeDisplay.getUserId()); themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
richiestaAccessoAtti.setUserName(themeDisplay.getUser().getScreenName()); sourceFileName, fileApp, true);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento);
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest); RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
if(dataVidimazione.before(dataCheck) || sanatoria){
if(uploadRequest.getSize("allegatoPagamento") != 0){
String sourceFileName = uploadRequest.getFileName("allegatoPagamento");
File fileApp = uploadRequest.getFile("allegatoPagamento");
long fileEntryIdPagamento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, true);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdPagamento(fileEntryIdPagamento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
}
}
if(isNoCNSUser){
if(uploadRequest.getSize("documentoIdentita") != 0){
String sourceFileName = uploadRequest.getFileName("documentoIdentita");
File fileApp = uploadRequest.getFile("documentoIdentita");
long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(), sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
}
} }
}
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(accessoAttiId); if (isNoCNSUser) {
if (uploadRequest.getSize("documentoIdentita") != 0) {
try { String sourceFileName = uploadRequest.getFileName("documentoIdentita");
File fileApp = uploadRequest.getFile("documentoIdentita");
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(richiesta.getRichiestaAccessoAttiId(), long fileEntryIdDocumento = DocumentLibraryUtil.saveFileEntryAccessoAtti(
richiesta.getIntPraticaId(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(), themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
richiesta.getCompanyId(), richiesta.getUserName()); sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
richiesta.setProtocolloEntrata(protocollo); .fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta); richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
} catch (Exception e) {
_log.error(e);
} }
}
EmailSenderUtil.sendAcceptedRequest(accessoAttiId); RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil
actionResponse.setRenderParameter("jspPage","/html/accesso_atti_fe/richiesta-inviata-success.jsp"); .fetchRichiestaAccessoAtti(accessoAttiId);
try {
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(
richiesta.getRichiestaAccessoAttiId(), richiesta.getIntPraticaId(), richiesta.getGroupId(),
RichiestaAccessoAtti.class.getName(), richiesta.getCompanyId(), richiesta.getUserName());
richiesta.setProtocolloEntrata(protocollo);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiesta);
} catch (Exception e) {
_log.error(e);
}
EmailSenderUtil.sendAcceptedRequest(accessoAttiId);
actionResponse.setRenderParameter("jspPage", "/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} }
} }
} }
public void visualizzaAtto(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException { public void visualizzaAtto(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
actionResponse.setRenderParameter("tabs1", "Visualizza Atto"); actionResponse.setRenderParameter("tabs1", "Visualizza Atto");
actionRequest.setAttribute("tabs1", "Visualizza Atto"); actionRequest.setAttribute("tabs1", "Visualizza Atto");
String accessToken = ParamUtil.getString(actionRequest, "accessToken"); String accessToken = ParamUtil.getString(actionRequest, "accessToken");
RichiestaAccessoAtti atto = RichiestaAccessoAttiLocalServiceUtil.findByAccessToken(accessToken); RichiestaAccessoAtti atto = RichiestaAccessoAttiLocalServiceUtil.findByAccessToken(accessToken);
if(atto != null){ if (atto != null) {
if (atto.isAccettata()) {
if(atto.isAccettata()){
Calendar calApp = Calendar.getInstance(); Calendar calApp = Calendar.getInstance();
calApp.setTime(atto.getDtAccettazione()); calApp.setTime(atto.getDtAccettazione());
calApp.add(Calendar.DATE, 7); calApp.add(Calendar.DATE, 7);
Date checkDate = calApp.getTime(); Date checkDate = calApp.getTime();
if(new Date().before(checkDate) ){ if (new Date().before(checkDate)) {
actionResponse.setRenderParameter("accessoAttiId", "" + atto.getRichiestaAccessoAttiId());
actionResponse.setRenderParameter("accessoAttiId", ""+atto.getRichiestaAccessoAttiId());
} else { } else {
SessionErrors.add(actionRequest, "accesso-token-scaduto"); SessionErrors.add(actionRequest, "accesso-token-scaduto");
} }
@ -286,56 +215,5 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
} else { } else {
SessionErrors.add(actionRequest, "no-atto-trovato"); SessionErrors.add(actionRequest, "no-atto-trovato");
} }
} }
} }

46
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/CreazioneAccountPortosPortlet.java

@ -27,85 +27,69 @@ import com.liferay.util.bridges.mvc.MVCPortlet;
*/ */
public class CreazioneAccountPortosPortlet extends MVCPortlet { public class CreazioneAccountPortosPortlet extends MVCPortlet {
public void creaAccount(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException,
public void creaAccount(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, ParseException, PortalException{ ParseException, PortalException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY); ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
String username = ParamUtil.getString(actionRequest, "codiceFiscale"); String username = ParamUtil.getString(actionRequest, "codiceFiscale");
String password = ParamUtil.getString(actionRequest, "password"); String password = ParamUtil.getString(actionRequest, "password");
String email = ParamUtil.getString(actionRequest, "indirizzoEmail"); String email = ParamUtil.getString(actionRequest, "indirizzoEmail");
String nome = ParamUtil.getString(actionRequest, "nome"); String nome = ParamUtil.getString(actionRequest, "nome");
String cognome = ParamUtil.getString(actionRequest, "cognome"); String cognome = ParamUtil.getString(actionRequest, "cognome");
String dataNascita = ParamUtil.getString(actionRequest, "dataNascita"); String dataNascita = ParamUtil.getString(actionRequest, "dataNascita");
if (username != null) {
if(username != null){ User checkUser = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(),
User checkUser = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(), username.toLowerCase()); username.toLowerCase());
if(checkUser == null){ if (checkUser == null) {
Date dateOfBirthday = sdf.parse(dataNascita); Date dateOfBirthday = sdf.parse(dataNascita);
Calendar cal = Calendar.getInstance(); Calendar cal = Calendar.getInstance();
cal.setTime(dateOfBirthday); cal.setTime(dateOfBirthday);
int birthdayMonth = cal.get(Calendar.MONTH); int birthdayMonth = cal.get(Calendar.MONTH);
int birthdayDay = cal.get(Calendar.DAY_OF_MONTH);; int birthdayDay = cal.get(Calendar.DAY_OF_MONTH);
int birthdayYear = cal.get(Calendar.YEAR);; ;
int birthdayYear = cal.get(Calendar.YEAR);
;
long creatorUserId = 0; long creatorUserId = 0;
long facebookId = 0; long facebookId = 0;
int prefixId = 0; int prefixId = 0;
int suffixId = 0; int suffixId = 0;
long groupIds[] = new long[0]; long groupIds[] = new long[0];
long organizationIds[] = new long[0]; long organizationIds[] = new long[0];
long roleIds[] = new long[0]; long roleIds[] = new long[0];
long userGroupIds[] = new long[0]; long userGroupIds[] = new long[0];
boolean autoPassword = false; boolean autoPassword = false;
boolean autoScreenName = false; boolean autoScreenName = false;
boolean male = true; boolean male = true;
boolean sendEmail = true; boolean sendEmail = true;
String password1 = password; String password1 = password;
String password2 = password; String password2 = password;
String screenName = username; String screenName = username;
String openId = null; String openId = null;
String middleName = null; String middleName = null;
String jobTitle = null; String jobTitle = null;
Date now = new Date(); Date now = new Date();
Locale locale = themeDisplay.getLocale(); Locale locale = themeDisplay.getLocale();
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
User user = UserLocalServiceUtil.addUser(creatorUserId, themeDisplay.getCompanyId(), autoPassword,
User user = UserLocalServiceUtil.addUser(creatorUserId, themeDisplay.getCompanyId(), autoPassword, password1, password2, password1, password2, autoScreenName, screenName, email, facebookId, openId, locale, nome,
autoScreenName, screenName, email, facebookId, openId, locale, nome, middleName, cognome, prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds, roleIds, userGroupIds, sendEmail, serviceContext); middleName, cognome, prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
jobTitle, groupIds, organizationIds, roleIds, userGroupIds, sendEmail, serviceContext);
long userId = user.getUserId(); long userId = user.getUserId();
User userCreated = UserLocalServiceUtil.getUser(userId); User userCreated = UserLocalServiceUtil.getUser(userId);
userCreated.setLoginDate(now); userCreated.setLoginDate(now);
userCreated.setLoginIP("127.0.0.1"); userCreated.setLoginIP("127.0.0.1");
userCreated.setLastLoginDate(now); userCreated.setLastLoginDate(now);
userCreated.setModifiedDate(now); userCreated.setModifiedDate(now);
Role roleUserNoCNS = RoleLocalServiceUtil.getRole(themeDisplay.getCompanyId(), "UTENTE_NO_CNS"); Role roleUserNoCNS = RoleLocalServiceUtil.getRole(themeDisplay.getCompanyId(), "UTENTE_NO_CNS");
UserLocalServiceUtil.addRoleUser(roleUserNoCNS.getRoleId(), userId); UserLocalServiceUtil.addRoleUser(roleUserNoCNS.getRoleId(), userId);
UserLocalServiceUtil.updateAgreedToTermsOfUse(userId, true); UserLocalServiceUtil.updateAgreedToTermsOfUse(userId, true);
UserLocalServiceUtil.updateEmailAddressVerified(userId, true); UserLocalServiceUtil.updateEmailAddressVerified(userId, true);
UserLocalServiceUtil.updatePasswordReset(userId, false); UserLocalServiceUtil.updatePasswordReset(userId, false);
} else { } else {
SessionErrors.add(actionRequest, "error-user-exist"); SessionErrors.add(actionRequest, "error-user-exist");
} }
} }
actionResponse.setRenderParameter("jspPage", "/html/creazione_account/success.jsp");
actionResponse.setRenderParameter("jspPage","/html/creazione_account/success.jsp");
} }
} }

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceBaseImpl.java

@ -48,7 +48,7 @@ import javax.sql.DataSource;
* This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl}. * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl}.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl * @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiLocalServiceImpl
* @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil * @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil
* @generated * @generated

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiLocalServiceClpInvoker.java

@ -19,7 +19,7 @@ import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServ
import java.util.Arrays; import java.util.Arrays;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated * @generated
*/ */
public class RichiestaAccessoAttiLocalServiceClpInvoker { public class RichiestaAccessoAttiLocalServiceClpInvoker {

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiServiceBaseImpl.java

@ -35,7 +35,7 @@ import javax.sql.DataSource;
* This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl}. * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl}.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl * @see it.tref.liferay.portos.accesso.atti.service.impl.RichiestaAccessoAttiServiceImpl
* @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil * @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil
* @generated * @generated

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/base/RichiestaAccessoAttiServiceClpInvoker.java

@ -19,7 +19,7 @@ import it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUt
import java.util.Arrays; import java.util.Arrays;
/** /**
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated * @generated
*/ */
public class RichiestaAccessoAttiServiceClpInvoker { public class RichiestaAccessoAttiServiceClpInvoker {

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/http/RichiestaAccessoAttiServiceSoap.java

@ -48,7 +48,7 @@ package it.tref.liferay.portos.accesso.atti.service.http;
* The SOAP utility is only generated for remote services. * The SOAP utility is only generated for remote services.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiServiceHttp * @see RichiestaAccessoAttiServiceHttp
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiSoap * @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiSoap
* @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil * @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil

253
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiLocalServiceImpl.java

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.accesso.atti.service.impl; package it.tref.liferay.portos.accesso.atti.service.impl;
@ -26,222 +20,125 @@ import java.util.List;
import com.liferay.portal.kernel.dao.orm.Disjunction; import com.liferay.portal.kernel.dao.orm.Disjunction;
import com.liferay.portal.kernel.dao.orm.DynamicQuery; import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.Property;
import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil; import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Organization; import com.liferay.portal.model.Organization;
import com.liferay.portal.service.OrganizationLocalServiceUtil; import com.liferay.portal.service.OrganizationLocalServiceUtil;
/** /**
* The implementation of the richiesta accesso atti local service. * The implementation of the richiesta accesso atti local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalService} interface. * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* * their definitions into the {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalService}
* interface.
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl * @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl
* @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil * @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil
*/ */
public class RichiestaAccessoAttiLocalServiceImpl public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLocalServiceBaseImpl {
extends RichiestaAccessoAttiLocalServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* * it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil} to access the richiesta accesso
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil} to access the richiesta accesso atti local service. * atti local service.
*/ */
public List<RichiestaAccessoAtti> findByGestita(boolean gestita, int start, int end) throws SystemException{ private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
return richiestaAccessoAttiPersistence.findByGestita(gestita, start, end);
}
public List<RichiestaAccessoAtti> findCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl, int start, int end) throws SystemException, ParseException{
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", true));
if(!numeroProgetto.equals("")){ @Override
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto)); public List<RichiestaAccessoAtti> findByGestita(boolean gestita, int start, int end) throws SystemException {
}
if(!protocollo.equals("")){
Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo));
disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo));
dq.add(disjunction);
}
if(!dataDal.equals("") && !dataAl.equals("")){ return richiestaAccessoAttiPersistence.findByGestita(gestita, start, end);
}
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
calDal.set(Calendar.HOUR_OF_DAY, 00);
calDal.set(Calendar.MINUTE, 00);
dateDal = calDal.getTime();
Date dateAl = sdf.parse(dataAl);
Calendar calAl = Calendar.getInstance();
calAl.setTime(dateAl);
calAl.set(Calendar.HOUR_OF_DAY, 23);
calAl.set(Calendar.MINUTE, 59);
dateAl = calAl.getTime();
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, dateAl));
}
if(!dataDal.equals("") && dataAl.equals("")){
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
calDal.set(Calendar.HOUR_OF_DAY, 00);
calDal.set(Calendar.MINUTE, 00);
dateDal = calDal.getTime();
Date now = new Date();
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, now));
}
if(dataDal.equals("") && !dataAl.equals("")){
Date now = new Date("01/01/2018");
Date dateAl = sdf.parse(dataAl); @SuppressWarnings("unchecked")
Calendar calAl = Calendar.getInstance(); @Override
calAl.setTime(dateAl); public List<RichiestaAccessoAtti> findCompletate(String numeroProgetto, String protocollo, String dataDal,
calAl.set(Calendar.HOUR_OF_DAY, 23); String dataAl, int start, int end) throws SystemException {
calAl.set(Calendar.MINUTE, 59);
dateAl = calAl.getTime();
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione"); return dynamicQuery(dqCompletate(numeroProgetto, protocollo, dataDal, dataAl), start, end);
dq.add(createDateProperty.between(now, dateAl)); }
} @Override
public int countCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl)
throws SystemException {
return richiestaAccessoAttiLocalService.dynamicQuery(dq, start, end); return dynamicQuery(dqCompletate(numeroProgetto, protocollo, dataDal, dataAl)).size();
} }
public int countCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl) throws SystemException, ParseException{ private DynamicQuery dqCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl) {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery(); DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", true)); dq.add(RestrictionsFactoryUtil.eq("gestita", true));
if (Validator.isNotNull(numeroProgetto)) {
if(!numeroProgetto.equals("")){
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto)); dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
} }
if (Validator.isNotNull(protocollo)) {
if(!protocollo.equals("")){
Disjunction disjunction = RestrictionsFactoryUtil.disjunction(); Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo)); disjunction.add(PropertyFactoryUtil.forName("protocolloEntrata").eq(protocollo));
disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo)); disjunction.add(PropertyFactoryUtil.forName("protocolloUscita").eq(protocollo));
dq.add(disjunction); dq.add(disjunction);
} }
dq.add(PropertyFactoryUtil.forName("dtAccettazione").between(parseStartDate(dataDal), parseEndDate(dataAl)));
if(!dataDal.equals("") && !dataAl.equals("")){ return dq;
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
calDal.set(Calendar.HOUR_OF_DAY, 00);
calDal.set(Calendar.MINUTE, 00);
dateDal = calDal.getTime();
Date dateAl = sdf.parse(dataAl);
Calendar calAl = Calendar.getInstance();
calAl.setTime(dateAl);
calAl.set(Calendar.HOUR_OF_DAY, 23);
calAl.set(Calendar.MINUTE, 59);
dateAl = calAl.getTime();
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, dateAl));
}
if(!dataDal.equals("") && dataAl.equals("")){
Date dateDal = sdf.parse(dataDal);
Calendar calDal = Calendar.getInstance();
calDal.setTime(dateDal);
calDal.set(Calendar.HOUR_OF_DAY, 00);
calDal.set(Calendar.MINUTE, 00);
dateDal = calDal.getTime();
Date now = new Date();
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(dateDal, now));
}
if(dataDal.equals("") && !dataAl.equals("")){
Date now = new Date("01/01/2018");
Date dateAl = sdf.parse(dataAl);
Calendar calAl = Calendar.getInstance();
calAl.setTime(dateAl);
calAl.set(Calendar.HOUR_OF_DAY, 23);
calAl.set(Calendar.MINUTE, 59);
dateAl = calAl.getTime();
Property createDateProperty = PropertyFactoryUtil.forName("dtAccettazione");
dq.add(createDateProperty.between(now, dateAl));
}
List<RichiestaAccessoAtti> lista = richiestaAccessoAttiLocalService.dynamicQuery(dq);
return lista.size();
} }
public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException{ @Override
public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException {
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery(); DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("accessToken", accessToken)); dq.add(RestrictionsFactoryUtil.eq("accessToken", accessToken));
@SuppressWarnings("unchecked")
List<RichiestaAccessoAtti> lista = richiestaAccessoAttiLocalService.dynamicQuery(dq); List<RichiestaAccessoAtti> lista = dynamicQuery(dq);
if(lista != null && !lista.isEmpty()){ return lista == null || lista.isEmpty() ? null : lista.get(0);
return lista.get(0);
}
return null;
} }
public List<RichiestaAccessoAtti> findRichiesteByGroup(long userId, int start, int end) throws SystemException{ @SuppressWarnings("unchecked")
@Override
List<Long> listaLong = new ArrayList<Long>(); public List<RichiestaAccessoAtti> findRichiesteByGroup(long userId, int start, int end) throws SystemException {
List<Long> groupIds = new ArrayList<>();
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId); List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId);
if(organizationList != null && !organizationList.isEmpty()){ if (Validator.isNull(organizationList)) {
for (Organization organization : organizationList) { for (Organization organization : organizationList) {
listaLong.add(organization.getGroupId()); groupIds.add(organization.getGroupId());
} }
} }
DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", false));
if (!groupIds.isEmpty()) {
dq.add(RestrictionsFactoryUtil.in("groupId", groupIds));
}
return dynamicQuery(dq, start, end);
}
listaLong.add(0L); private static Date parseEndDate(String input) {
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery(); return parseDate(input, false);
dq.add(RestrictionsFactoryUtil.eq("gestita", false)); }
dq.add(RestrictionsFactoryUtil.in("groupId", listaLong));
return richiestaAccessoAttiLocalService.dynamicQuery(dq, start, end); private static Date parseStartDate(String input) {
return parseDate(input, true);
}
private static Date parseDate(String input, boolean isStart) {
Calendar calendar = Calendar.getInstance();
try {
calendar.setTime(sdf.parse(input));
} catch (ParseException e) {
calendar.setTime(isStart ? new Date(0) : new Date());
}
calendar.set(Calendar.HOUR_OF_DAY, isStart ? 0 : 23);
calendar.set(Calendar.MINUTE, isStart ? 0 : 59);
calendar.set(Calendar.SECOND, isStart ? 0 : 59);
return calendar.getTime();
} }
} }

35
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/impl/RichiestaAccessoAttiServiceImpl.java

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.accesso.atti.service.impl; package it.tref.liferay.portos.accesso.atti.service.impl;
@ -18,23 +12,22 @@ import it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServ
/** /**
* The implementation of the richiesta accesso atti remote service. * The implementation of the richiesta accesso atti remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiService} interface. * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* * their definitions into the {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiService} interface.
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl * @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl
* @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil * @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil
*/ */
public class RichiestaAccessoAttiServiceImpl public class RichiestaAccessoAttiServiceImpl extends RichiestaAccessoAttiServiceBaseImpl {
extends RichiestaAccessoAttiServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* * it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil} to access the richiesta accesso atti
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil} to access the richiesta accesso atti remote service. * remote service.
*/ */
} }

2
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java

@ -58,7 +58,7 @@ import java.util.List;
* Caching information and settings can be found in <code>portal.properties</code> * Caching information and settings can be found in <code>portal.properties</code>
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiPersistence * @see RichiestaAccessoAttiPersistence
* @see RichiestaAccessoAttiUtil * @see RichiestaAccessoAttiUtil
* @generated * @generated

26
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/AccessoAttiAccessTokenUtil.java

@ -11,31 +11,21 @@ public class AccessoAttiAccessTokenUtil {
private static final Log _log = LogFactoryUtil.getLog(AccessoAttiAccessTokenUtil.class); private static final Log _log = LogFactoryUtil.getLog(AccessoAttiAccessTokenUtil.class);
public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId){ public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId) {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
try { try {
String concatString = String.valueOf(richiestaAccessoAttiId) + StringPool.UNDERLINE + numeroProgetto
String concatString = String.valueOf(richiestaAccessoAttiId) + StringPool.UNDERLINE + + StringPool.UNDERLINE + richiedenteUserId;
numeroProgetto + StringPool.UNDERLINE + richiedenteUserId;
MessageDigest md = MessageDigest.getInstance("MD5"); MessageDigest md = MessageDigest.getInstance("MD5");
md.update(concatString.getBytes()); md.update(concatString.getBytes());
byte byteData[] = md.digest();
byte byteData[] = md.digest(); for (int i = 0; i < byteData.length; i++) {
sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));
for (int i = 0; i < byteData.length; i++) { }
sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));
}
} catch (NoSuchAlgorithmException e) { } catch (NoSuchAlgorithmException e) {
_log.error(e,e); _log.error(e, e);
} }
return sb.toString(); return sb.toString();
} }
} }

47
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/DocumentLibraryUtil.java

@ -11,6 +11,7 @@ import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.documentlibrary.model.DLFolder; import com.liferay.portlet.documentlibrary.model.DLFolder;
import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil; import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
@ -24,55 +25,43 @@ public class DocumentLibraryUtil {
public static final String PAGAMENTO_CODEC_FILENAME = "PAGAMENTO_"; public static final String PAGAMENTO_CODEC_FILENAME = "PAGAMENTO_";
public static final String DOCUMENTO_CODEC_FILENAME = "DOCUMENTO_"; public static final String DOCUMENTO_CODEC_FILENAME = "DOCUMENTO_";
public static long saveFileEntryAccessoAtti(long companyGroupId, long richiestaAccessoAttiId, String originFileName, public static long saveFileEntryAccessoAtti(long companyGroupId, long richiestaAccessoAttiId,
File file, boolean pagamento) { String originFileName, File file, boolean pagamento) {
long fileEntryId = 0L; long fileEntryId = 0L;
try { try {
DLFolder folder = getRichiestaAttiFolder(companyGroupId); DLFolder folder = getRichiestaAttiFolder(companyGroupId);
if(folder != null){ if (folder != null) {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
RichiestaAccessoAtti richiestaAccessoAtti = .fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId); if (richiestaAccessoAtti != null) {
if(richiestaAccessoAtti != null){
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(richiestaAccessoAtti.getCompanyId()); serviceContext.setCompanyId(richiestaAccessoAtti.getCompanyId());
serviceContext.setUserId(richiestaAccessoAtti.getUserId()); serviceContext.setUserId(richiestaAccessoAtti.getUserId());
String mineType = FileUtil.getExtension(originFileName); String mineType = FileUtil.getExtension(originFileName);
String prefixedFileName = StringPool.BLANK;
String prefixedFileName = ""; if (pagamento) {
if(pagamento){ prefixedFileName = PAGAMENTO_CODEC_FILENAME + richiestaAccessoAttiId + StringPool.PERIOD
prefixedFileName = PAGAMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType; + mineType;
} else { } else {
prefixedFileName = DOCUMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType; prefixedFileName = DOCUMENTO_CODEC_FILENAME + richiestaAccessoAttiId + StringPool.PERIOD
+ mineType;
} }
FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(richiestaAccessoAtti.getUserId(),
FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry( folder.getRepositoryId(), folder.getFolderId(), prefixedFileName, mineType,
richiestaAccessoAtti.getUserId(), folder.getRepositoryId(), folder.getFolderId(), prefixedFileName, StringPool.BLANK, StringPool.BLANK, file, serviceContext);
prefixedFileName, mineType, prefixedFileName, "", "", file, serviceContext);
fileEntryId = fileEntry.getFileEntryId(); fileEntryId = fileEntry.getFileEntryId();
} }
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error(e,e); _log.error(e, e);
} }
return fileEntryId; return fileEntryId;
} }
private static DLFolder getRichiestaAttiFolder(long companyGroupId) throws PortalException, SystemException{ private static DLFolder getRichiestaAttiFolder(long companyGroupId) throws PortalException, SystemException {
DLFolder folder = DLFolderLocalServiceUtil.getFolder(companyGroupId, 0L, RICHIESTA_ATTI_FOLDER_NAME); DLFolder folder = DLFolderLocalServiceUtil.getFolder(companyGroupId, 0L, RICHIESTA_ATTI_FOLDER_NAME);
return folder; return folder;
} }
} }

98
liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/uti/EmailSenderUtil.java

@ -12,175 +12,119 @@ import com.liferay.portal.kernel.mail.MailMessage;
public class EmailSenderUtil { public class EmailSenderUtil {
// private static final Log _log = LogFactoryUtil.getLog(EmailSenderUtil.class); public static void sendAcceptedEmail(long richiestaAccessoAttiId, String testoAggiuntivo) throws SystemException,
AddressException {
public static void sendAcceptedEmail(long richiestaAccessoAttiId, String testoAggiuntivo) throws SystemException, AddressException{
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto()); InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress); mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress); mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Notifica Accettazione Richiesta Accesso Atti"); mailMessage.setSubject("Notifica Accettazione Richiesta Accesso Atti");
mailMessage.setBody(creaCorpoMailRichiestaAccettata(richiestaAccessoAtti,testoAggiuntivo)); mailMessage.setBody(creaCorpoMailRichiestaAccettata(richiestaAccessoAtti, testoAggiuntivo));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/*
* Invio email
*/
MailServiceUtil.sendEmail(mailMessage); MailServiceUtil.sendEmail(mailMessage);
} }
} }
public static void sendDeniedEmail(long richiestaAccessoAttiId, String motivoRifiuto) throws SystemException, AddressException{ public static void sendDeniedEmail(long richiestaAccessoAttiId, String motivoRifiuto) throws SystemException,
AddressException {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto()); InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress); mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress); mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Notifica Rifiuto Richiesta Accesso Atti"); mailMessage.setSubject("Notifica Rifiuto Richiesta Accesso Atti");
mailMessage.setBody(creaCorpoMailRichiestaRifiutata(richiestaAccessoAtti, motivoRifiuto)); mailMessage.setBody(creaCorpoMailRichiestaRifiutata(richiestaAccessoAtti, motivoRifiuto));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/*
* Invio email
*/
MailServiceUtil.sendEmail(mailMessage); MailServiceUtil.sendEmail(mailMessage);
} }
} }
public static void sendAcceptedRequest(long richiestaAccessoAttiId) throws SystemException, AddressException{ public static void sendAcceptedRequest(long richiestaAccessoAttiId) throws SystemException, AddressException {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto()); InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress); mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress); mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Notifica Presa In Carico Richiesta"); mailMessage.setSubject("Notifica Presa In Carico Richiesta");
mailMessage.setBody(creaCorpoMailRichiestaInCarico(richiestaAccessoAtti)); mailMessage.setBody(creaCorpoMailRichiestaInCarico(richiestaAccessoAtti));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/*
* Invio email
*/
MailServiceUtil.sendEmail(mailMessage); MailServiceUtil.sendEmail(mailMessage);
} }
} }
private static String creaCorpoMailRichiestaInCarico(RichiestaAccessoAtti richiestaAccessoAtti){ private static String creaCorpoMailRichiestaInCarico(RichiestaAccessoAtti richiestaAccessoAtti) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/*
* Gestione header
*/
sb.append("<html><head><title>Notifica Presa In Carico Richiesta</title></head><body>"); sb.append("<html><head><title>Notifica Presa In Carico Richiesta</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Salve ,"); sb.append("Salve ,");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("con la seguente email le comunichiamo che la sua richiesta n. "); sb.append("con la seguente email le comunichiamo che la sua richiesta n. ");
sb.append(richiestaAccessoAtti.getProtocolloEntrata()); sb.append(richiestaAccessoAtti.getProtocolloEntrata());
sb.append(" di accedere all'atto numero "); sb.append(" di accedere all'atto numero ");
sb.append(richiestaAccessoAtti.getNumeroProgetto()); sb.append(richiestaAccessoAtti.getNumeroProgetto());
sb.append(" è stata presa in carico dai nostri funzionari. Riceverà successivamente una mail nella quale le verrà indicato l'esito della sua richiesta."); sb.append(" è stata presa in carico dai nostri funzionari. Riceverà successivamente una mail nella quale le verrà indicato l'esito della sua richiesta.");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<br/>"); sb.append("<br/>");
return sb.toString(); return sb.toString();
} }
private static String creaCorpoMailRichiestaAccettata(RichiestaAccessoAtti richiestaAccessoAtti, String testoExtra){ private static String creaCorpoMailRichiestaAccettata(RichiestaAccessoAtti richiestaAccessoAtti, String testoExtra) {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/*
* Gestione header
*/
sb.append("<html><head><title>Notifica Accettazione Richiesta Accesso Atti</title></head><body>"); sb.append("<html><head><title>Notifica Accettazione Richiesta Accesso Atti</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Salve ,"); sb.append("Salve ,");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("con la seguente email le comunichiamo che la sua richiesta n. "); sb.append("con la seguente email le comunichiamo che la sua richiesta n. ");
sb.append(richiestaAccessoAtti.getProtocolloUscita()); sb.append(richiestaAccessoAtti.getProtocolloUscita());
sb.append(" di accedere all'atto numero "); sb.append(" di accedere all'atto numero ");
sb.append(richiestaAccessoAtti.getNumeroProgetto()); sb.append(richiestaAccessoAtti.getNumeroProgetto());
sb.append(" è stata accettata."); sb.append(" è stata accettata.");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Il suo codice di accesso al fascicolo è il seguente: <strong>"); sb.append("Il suo codice di accesso al fascicolo è il seguente: <strong>");
sb.append(richiestaAccessoAtti.getAccessToken()); sb.append(richiestaAccessoAtti.getAccessToken());
sb.append("</strong>"); sb.append("</strong>");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append(testoExtra); sb.append(testoExtra);
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Le ricordiamo che l'accesso avrà una validità di 7 giorni."); sb.append("Le ricordiamo che l'accesso avrà una validità di 7 giorni.");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
return sb.toString(); return sb.toString();
} }
public static void sendDeniedEmail(){ private static String creaCorpoMailRichiestaRifiutata(RichiestaAccessoAtti richiestaAccessoAtti,
String motivoRifiuto) {
}
private static String creaCorpoMailRichiestaRifiutata(RichiestaAccessoAtti richiestaAccessoAtti, String motivoRifiuto){
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/*
* Gestione header
*/
sb.append("<html><head><title>Notifica Rifiuto Richiesta Accesso Atti</title></head><body>"); sb.append("<html><head><title>Notifica Rifiuto Richiesta Accesso Atti</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Salve ,"); sb.append("Salve ,");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("con la seguente email le comunichiamo che la sua richiesta n. "); sb.append("con la seguente email le comunichiamo che la sua richiesta n. ");
sb.append(richiestaAccessoAtti.getProtocolloUscita()); sb.append(richiestaAccessoAtti.getProtocolloUscita());
@ -189,10 +133,6 @@ public class EmailSenderUtil {
sb.append(" è stata rifiutata per la seguente motivazione: "); sb.append(" è stata rifiutata per la seguente motivazione: ");
sb.append(motivoRifiuto); sb.append(motivoRifiuto);
sb.append("<br/>"); sb.append("<br/>");
return sb.toString(); return sb.toString();
} }
} }

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_atti build.namespace=portos_atti
build.number=26 build.number=28
build.date=1618410701755 build.date=1631536170835
build.auto.upgrade=true build.auto.upgrade=true
## ##

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml

@ -18,7 +18,6 @@
</category> </category>
<category name="category.hidden"> <category name="category.hidden">
<portlet id="9"></portlet> <portlet id="9"></portlet>
<portlet id="10"></portlet>
<portlet id="12"></portlet> <portlet id="12"></portlet>
<portlet id="portos-administration"></portlet> <portlet id="portos-administration"></portlet>
</category> </category>

47
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.properties

@ -35,7 +35,6 @@ IX_A8485C51=portos_bo_Avviso.Protocollo
IX_CF0052F8=portos_bo_Avviso.UUID_G IX_CF0052F8=portos_bo_Avviso.UUID_G
IX_6FB931F2=portos_bo_Avviso.Uuid IX_6FB931F2=portos_bo_Avviso.Uuid
IX_D6B686F6=portos_bo_Avviso.Uuid_C IX_D6B686F6=portos_bo_Avviso.Uuid_C
IX_C5DCD1F4=portos_bo_Avviso.oldAvvisoId
IX_FB1AC8BA=portos_bo_Collaudo.C_G_Protocollo IX_FB1AC8BA=portos_bo_Collaudo.C_G_Protocollo
IX_A9D23B40=portos_bo_Collaudo.CodiceFiscale_Completata IX_A9D23B40=portos_bo_Collaudo.CodiceFiscale_Completata
@ -43,7 +42,6 @@ IX_F1DE015B=portos_bo_Collaudo.IntPraticaId
IX_DBB744B8=portos_bo_Collaudo.IntPraticaId_CodiceFiscale IX_DBB744B8=portos_bo_Collaudo.IntPraticaId_CodiceFiscale
IX_C5A53931=portos_bo_Collaudo.IntPraticaId_Completata IX_C5A53931=portos_bo_Collaudo.IntPraticaId_Completata
IX_28168019=portos_bo_Collaudo.IntPraticaId_Parziale IX_28168019=portos_bo_Collaudo.IntPraticaId_Parziale
IX_729BECA2=portos_bo_Collaudo.OldDettPraticaId
IX_9BEECB8=portos_bo_Collaudo.Protocollo IX_9BEECB8=portos_bo_Collaudo.Protocollo
IX_785A57DF=portos_bo_Collaudo.UUID_G IX_785A57DF=portos_bo_Collaudo.UUID_G
IX_D4A5BD2B=portos_bo_Collaudo.Uuid IX_D4A5BD2B=portos_bo_Collaudo.Uuid
@ -99,8 +97,6 @@ IX_49B6CCD0=portos_bo_DettPratica.C_G_Protocollo
IX_20C9FEF1=portos_bo_DettPratica.IntPraticaId IX_20C9FEF1=portos_bo_DettPratica.IntPraticaId
IX_1965DA50=portos_bo_DettPratica.IntPraticaId_TipoIntegrazione IX_1965DA50=portos_bo_DettPratica.IntPraticaId_TipoIntegrazione
IX_E9890939=portos_bo_DettPratica.IntPraticaId_TipoIntegrazione_Completa IX_E9890939=portos_bo_DettPratica.IntPraticaId_TipoIntegrazione_Completa
IX_29832F38=portos_bo_DettPratica.OldDettPratica
IX_29832F38=portos_bo_DettPratica.OldDettPraticaId
IX_C59957CE=portos_bo_DettPratica.Protocollo IX_C59957CE=portos_bo_DettPratica.Protocollo
IX_9C3D47F5=portos_bo_DettPratica.UUID_G IX_9C3D47F5=portos_bo_DettPratica.UUID_G
IX_4EE3C55=portos_bo_DettPratica.Uuid IX_4EE3C55=portos_bo_DettPratica.Uuid
@ -112,7 +108,6 @@ IX_F5B846EA=portos_bo_DocAggiuntiva.IntPratica_FeVisible
IX_F60C5C1D=portos_bo_DocAggiuntiva.UUID_G IX_F60C5C1D=portos_bo_DocAggiuntiva.UUID_G
IX_43985B2D=portos_bo_DocAggiuntiva.Uuid IX_43985B2D=portos_bo_DocAggiuntiva.Uuid
IX_6AE4DADB=portos_bo_DocAggiuntiva.Uuid_C IX_6AE4DADB=portos_bo_DocAggiuntiva.Uuid_C
IX_38675D05=portos_bo_DocAggiuntiva.oldFileEntryId
IX_AD796CAB=portos_bo_DocPratica.ClassPk IX_AD796CAB=portos_bo_DocPratica.ClassPk
IX_9541D091=portos_bo_DocPratica.ClassPk_Status IX_9541D091=portos_bo_DocPratica.ClassPk_Status
@ -122,7 +117,6 @@ IX_D080B781=portos_bo_DocPratica.DlFileEntry
IX_FF6F9FA7=portos_bo_DocPratica.DlFileEntry_Version IX_FF6F9FA7=portos_bo_DocPratica.DlFileEntry_Version
IX_B2F1210A=portos_bo_DocPratica.IntPratica IX_B2F1210A=portos_bo_DocPratica.IntPratica
IX_92384F0E=portos_bo_DocPratica.IntPratica_Tipologia IX_92384F0E=portos_bo_DocPratica.IntPratica_Tipologia
IX_ACD23DB4=portos_bo_DocPratica.OldDocPratica
IX_85C3693E=portos_bo_DocPratica.Status IX_85C3693E=portos_bo_DocPratica.Status
IX_AEBE9E5A=portos_bo_DocPratica.Status_InTipologia IX_AEBE9E5A=portos_bo_DocPratica.Status_InTipologia
IX_412447CE=portos_bo_DocPratica.UUID_G IX_412447CE=portos_bo_DocPratica.UUID_G
@ -136,7 +130,6 @@ IX_EB5AE4E4=portos_bo_FineLavori.IntPraticaId_CodiceFiscale
IX_F683FC85=portos_bo_FineLavori.IntPraticaId_Completata IX_F683FC85=portos_bo_FineLavori.IntPraticaId_Completata
IX_82B6086D=portos_bo_FineLavori.IntPraticaId_Parziale IX_82B6086D=portos_bo_FineLavori.IntPraticaId_Parziale
IX_2CE13543=portos_bo_FineLavori.IntPraticaId_Parziale_Completata IX_2CE13543=portos_bo_FineLavori.IntPraticaId_Parziale_Completata
IX_FC4D43F6=portos_bo_FineLavori.OldDettPraticaId
IX_ABC9530C=portos_bo_FineLavori.Protocollo IX_ABC9530C=portos_bo_FineLavori.Protocollo
IX_A7617433=portos_bo_FineLavori.UUID_G IX_A7617433=portos_bo_FineLavori.UUID_G
IX_1DE1B257=portos_bo_FineLavori.Uuid IX_1DE1B257=portos_bo_FineLavori.Uuid
@ -145,21 +138,8 @@ IX_1B544571=portos_bo_FineLavori.Uuid_C
IX_588E9EC9=portos_bo_HistoryWorkflowAction.IntPratica IX_588E9EC9=portos_bo_HistoryWorkflowAction.IntPratica
IX_BAD23F73=portos_bo_HistoryWorkflowAction.IntPraticaAndDettPratica IX_BAD23F73=portos_bo_HistoryWorkflowAction.IntPraticaAndDettPratica
IX_8974E579=portos_bo_IUV.Pagamento
IX_98874B2A=portos_bo_IUV.TipoPagamento
IX_491C2AE8=portos_bo_IUV.TipoPagamento_CreateDate
IX_A0E465CE=portos_bo_IUV.UUID_G
IX_1D6A765C=portos_bo_IUV.Uuid
IX_BFE13C4C=portos_bo_IUV.Uuid_C
IX_41FDB69F=portos_bo_InfoFascicolo.IntPratica
IX_3F61CC23=portos_bo_InfoFascicolo.UUID_G
IX_3FD1AC67=portos_bo_InfoFascicolo.Uuid
IX_B49E6161=portos_bo_InfoFascicolo.Uuid_C
IX_9929E083=portos_bo_IntPratica.C_Group IX_9929E083=portos_bo_IntPratica.C_Group
IX_E75F8D41=portos_bo_IntPratica.C_UserId IX_E75F8D41=portos_bo_IntPratica.C_UserId
IX_5690AE94=portos_bo_IntPratica.OldIntPraticaId
IX_779B836B=portos_bo_IntPratica.P IX_779B836B=portos_bo_IntPratica.P
IX_4736A755=portos_bo_IntPratica.TerritorioId IX_4736A755=portos_bo_IntPratica.TerritorioId
IX_DB56E0F7=portos_bo_IntPratica.UUID_G IX_DB56E0F7=portos_bo_IntPratica.UUID_G
@ -172,25 +152,19 @@ IX_4002AF66=portos_bo_Pagamento.IntPratica
IX_3BCF688E=portos_bo_Pagamento.Mezzo_Utilizzata IX_3BCF688E=portos_bo_Pagamento.Mezzo_Utilizzata
IX_434F524C=portos_bo_Pagamento.Mezzo_Utilizzata_CreateDate IX_434F524C=portos_bo_Pagamento.Mezzo_Utilizzata_CreateDate
IX_BE4330DB=portos_bo_Pagamento.Mezzo_Utilizzata_EmailPending_CreateDate IX_BE4330DB=portos_bo_Pagamento.Mezzo_Utilizzata_EmailPending_CreateDate
IX_B598AAE2=portos_bo_Pagamento.OldPagamentoId
IX_D00BAF2A=portos_bo_Pagamento.UUID_G IX_D00BAF2A=portos_bo_Pagamento.UUID_G
IX_8815F580=portos_bo_Pagamento.Uuid IX_8815F580=portos_bo_Pagamento.Uuid
IX_C25B9EA8=portos_bo_Pagamento.Uuid_C IX_C25B9EA8=portos_bo_Pagamento.Uuid_C
IX_2E6B85CA=portos_bo_ParereGeo.C_GroupId IX_2E6B85CA=portos_bo_ParereGeo.C_GroupId
IX_E10A64CA=portos_bo_ParereGeo.GeologoId
IX_5D9EAD5E=portos_bo_ParereGeo.GeologoId_DtCompilazione_DtAnnullamento
IX_5D9EAD5E=portos_bo_ParereGeo.GeologoUserId_DtCompilazione_DtAnnullamento IX_5D9EAD5E=portos_bo_ParereGeo.GeologoUserId_DtCompilazione_DtAnnullamento
IX_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId IX_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId
IX_66765F8E=portos_bo_ParereGeo.IntPraticaId_DtCompilazione_DtAnnullamento IX_66765F8E=portos_bo_ParereGeo.IntPraticaId_DtCompilazione_DtAnnullamento
IX_50EF6FD8=portos_bo_ParereGeo.IntPraticaId_GeologoId
IX_5906FFC5=portos_bo_ParereGeo.IntPraticaId_Parere
IX_635441BE=portos_bo_ParereGeo.UUID_G IX_635441BE=portos_bo_ParereGeo.UUID_G
IX_24A66C6C=portos_bo_ParereGeo.Uuid IX_24A66C6C=portos_bo_ParereGeo.Uuid
IX_A5C9DC3C=portos_bo_ParereGeo.Uuid_C IX_A5C9DC3C=portos_bo_ParereGeo.Uuid_C
IX_360E605D=portos_bo_Provincia.C_C IX_360E605D=portos_bo_Provincia.C_C
IX_9F8E6530=portos_bo_Provincia.C_P
IX_BDDB41C9=portos_bo_Provincia.C_S IX_BDDB41C9=portos_bo_Provincia.C_S
IX_A81834CD=portos_bo_Provincia.CompanyId IX_A81834CD=portos_bo_Provincia.CompanyId
@ -214,28 +188,8 @@ IX_AF4341E6=portos_bo_Soggetto.UserId_CodiceFiscale
IX_85A5F8F8=portos_bo_Soggetto.UserId_CodiceFiscale_TipologiaSoggetto IX_85A5F8F8=portos_bo_Soggetto.UserId_CodiceFiscale_TipologiaSoggetto
IX_B54B3A90=portos_bo_Soggetto.Uuid IX_B54B3A90=portos_bo_Soggetto.Uuid
IX_EB38F98=portos_bo_Soggetto.Uuid_C IX_EB38F98=portos_bo_Soggetto.Uuid_C
IX_9ED63274=portos_bo_Soggetto.oldSoggettoId
IX_E29C9013=portos_bo_Sorteggio.Anno_Mese_Settimana
IX_C446DA4F=portos_bo_Sorteggio.C_DettPratica
IX_237B57DD=portos_bo_Sorteggio.C_GroupId
IX_E6D6223F=portos_bo_Sorteggio.GroupId_Anno_Mese_Settimana
IX_1946734D=portos_bo_Sorteggio.IntPraticaId
IX_B4103770=portos_bo_Sorteggio.OldSorteggioId
IX_676E1551=portos_bo_Sorteggio.UUID_G
IX_CE0BB779=portos_bo_Sorteggio.Uuid
IX_ABD170F=portos_bo_Sorteggio.Uuid_C
IX_8B107361=portos_bo_StoricoSoggettoPratica.C_IntPratica IX_8B107361=portos_bo_StoricoSoggettoPratica.C_IntPratica
IX_2A481D94=portos_bo_StoricoSoggettoPratica.OldStoricoSoggettoPraticaId
IX_4EC2508A=portos_bo_Tempistica.C_IntPratica_Tipo_Completo
IX_ECF3C141=portos_bo_Tempistica.IntPratica
IX_9B1DAEA9=portos_bo_Tempistica.IntPratica_Tipo
IX_F0E498D4=portos_bo_Tempistica.OldTempisticaId
IX_4FFB645=portos_bo_Tempistica.UUID_G
IX_54177405=portos_bo_Tempistica.Uuid
IX_8A6A4B03=portos_bo_Tempistica.Uuid_C
IX_57551365=portos_bo_Territorio.C IX_57551365=portos_bo_Territorio.C
IX_19DC4644=portos_bo_Territorio.C_G_Z_F_D IX_19DC4644=portos_bo_Territorio.C_G_Z_F_D
@ -243,5 +197,4 @@ IX_8F2F62E5=portos_bo_Territorio.C_Group
IX_F7A0C0DD=portos_bo_Territorio.ComuneId IX_F7A0C0DD=portos_bo_Territorio.ComuneId
IX_25AB073A=portos_bo_Territorio.Fascia IX_25AB073A=portos_bo_Territorio.Fascia
IX_55652F27=portos_bo_Territorio.Group IX_55652F27=portos_bo_Territorio.Group
IX_1193CE54=portos_bo_Territorio.OldTerritorioId
IX_BDF7C43F=portos_bo_Territorio.Zona IX_BDF7C43F=portos_bo_Territorio.Zona

45
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/indexes.sql

@ -28,7 +28,6 @@ create index IX_35025CCD on portos_bo_Avviso (controlloPraticaId, tipoDocumento)
create index IX_13C9EEB4 on portos_bo_Avviso (intPraticaId); create index IX_13C9EEB4 on portos_bo_Avviso (intPraticaId);
create index IX_B1C0C700 on portos_bo_Avviso (intPraticaId, inviato); create index IX_B1C0C700 on portos_bo_Avviso (intPraticaId, inviato);
create index IX_ABE20D5C on portos_bo_Avviso (intPraticaId, tipoDocumento); create index IX_ABE20D5C on portos_bo_Avviso (intPraticaId, tipoDocumento);
create index IX_C5DCD1F4 on portos_bo_Avviso (oldAvvisoId);
create index IX_A8485C51 on portos_bo_Avviso (protocollo); create index IX_A8485C51 on portos_bo_Avviso (protocollo);
create index IX_6FB931F2 on portos_bo_Avviso (uuid_); create index IX_6FB931F2 on portos_bo_Avviso (uuid_);
create index IX_D6B686F6 on portos_bo_Avviso (uuid_, companyId); create index IX_D6B686F6 on portos_bo_Avviso (uuid_, companyId);
@ -40,7 +39,6 @@ create index IX_F1DE015B on portos_bo_Collaudo (intPraticaId);
create index IX_DBB744B8 on portos_bo_Collaudo (intPraticaId, codiceFiscaleDelegato); create index IX_DBB744B8 on portos_bo_Collaudo (intPraticaId, codiceFiscaleDelegato);
create index IX_C5A53931 on portos_bo_Collaudo (intPraticaId, completata); create index IX_C5A53931 on portos_bo_Collaudo (intPraticaId, completata);
create index IX_28168019 on portos_bo_Collaudo (intPraticaId, parziale); create index IX_28168019 on portos_bo_Collaudo (intPraticaId, parziale);
create index IX_729BECA2 on portos_bo_Collaudo (oldDettPraticaId);
create index IX_9BEECB8 on portos_bo_Collaudo (protocollo); create index IX_9BEECB8 on portos_bo_Collaudo (protocollo);
create index IX_D4A5BD2B on portos_bo_Collaudo (uuid_); create index IX_D4A5BD2B on portos_bo_Collaudo (uuid_);
create index IX_91A2EE1D on portos_bo_Collaudo (uuid_, companyId); create index IX_91A2EE1D on portos_bo_Collaudo (uuid_, companyId);
@ -95,7 +93,6 @@ create index IX_49B6CCD0 on portos_bo_DettPratica (companyId, groupId, protocoll
create index IX_20C9FEF1 on portos_bo_DettPratica (intPraticaId); create index IX_20C9FEF1 on portos_bo_DettPratica (intPraticaId);
create index IX_1965DA50 on portos_bo_DettPratica (intPraticaId, tipoIntegrazione); create index IX_1965DA50 on portos_bo_DettPratica (intPraticaId, tipoIntegrazione);
create index IX_E9890939 on portos_bo_DettPratica (intPraticaId, tipoIntegrazione, completa); create index IX_E9890939 on portos_bo_DettPratica (intPraticaId, tipoIntegrazione, completa);
create index IX_29832F38 on portos_bo_DettPratica (oldDettPraticaId);
create index IX_C59957CE on portos_bo_DettPratica (protocollo); create index IX_C59957CE on portos_bo_DettPratica (protocollo);
create index IX_4EE3C55 on portos_bo_DettPratica (uuid_); create index IX_4EE3C55 on portos_bo_DettPratica (uuid_);
create index IX_488A30B3 on portos_bo_DettPratica (uuid_, companyId); create index IX_488A30B3 on portos_bo_DettPratica (uuid_, companyId);
@ -104,7 +101,6 @@ create unique index IX_9C3D47F5 on portos_bo_DettPratica (uuid_, groupId);
create index IX_98F511D5 on portos_bo_DocAggiuntiva (dettPraticaId); create index IX_98F511D5 on portos_bo_DocAggiuntiva (dettPraticaId);
create index IX_F81FFD19 on portos_bo_DocAggiuntiva (intPraticaId); create index IX_F81FFD19 on portos_bo_DocAggiuntiva (intPraticaId);
create index IX_F5B846EA on portos_bo_DocAggiuntiva (intPraticaId, feVisible); create index IX_F5B846EA on portos_bo_DocAggiuntiva (intPraticaId, feVisible);
create index IX_38675D05 on portos_bo_DocAggiuntiva (oldFileEntryId);
create index IX_43985B2D on portos_bo_DocAggiuntiva (uuid_); create index IX_43985B2D on portos_bo_DocAggiuntiva (uuid_);
create index IX_6AE4DADB on portos_bo_DocAggiuntiva (uuid_, companyId); create index IX_6AE4DADB on portos_bo_DocAggiuntiva (uuid_, companyId);
create unique index IX_F60C5C1D on portos_bo_DocAggiuntiva (uuid_, groupId); create unique index IX_F60C5C1D on portos_bo_DocAggiuntiva (uuid_, groupId);
@ -117,7 +113,6 @@ create index IX_D080B781 on portos_bo_DocPratica (dlFileEntryId);
create index IX_FF6F9FA7 on portos_bo_DocPratica (dlFileEntryId, version); create index IX_FF6F9FA7 on portos_bo_DocPratica (dlFileEntryId, version);
create index IX_B2F1210A on portos_bo_DocPratica (intPraticaId); create index IX_B2F1210A on portos_bo_DocPratica (intPraticaId);
create index IX_92384F0E on portos_bo_DocPratica (intPraticaId, tipologia); create index IX_92384F0E on portos_bo_DocPratica (intPraticaId, tipologia);
create index IX_ACD23DB4 on portos_bo_DocPratica (oldDocPraticaId);
create index IX_85C3693E on portos_bo_DocPratica (status); create index IX_85C3693E on portos_bo_DocPratica (status);
create index IX_AEBE9E5A on portos_bo_DocPratica (status, tipologia); create index IX_AEBE9E5A on portos_bo_DocPratica (status, tipologia);
create index IX_1564545C on portos_bo_DocPratica (uuid_); create index IX_1564545C on portos_bo_DocPratica (uuid_);
@ -131,7 +126,6 @@ create index IX_EB5AE4E4 on portos_bo_FineLavori (intPraticaId, codiceFiscaleDel
create index IX_F683FC85 on portos_bo_FineLavori (intPraticaId, completata); create index IX_F683FC85 on portos_bo_FineLavori (intPraticaId, completata);
create index IX_82B6086D on portos_bo_FineLavori (intPraticaId, parziale); create index IX_82B6086D on portos_bo_FineLavori (intPraticaId, parziale);
create index IX_2CE13543 on portos_bo_FineLavori (intPraticaId, parziale, completata); create index IX_2CE13543 on portos_bo_FineLavori (intPraticaId, parziale, completata);
create index IX_FC4D43F6 on portos_bo_FineLavori (oldDettPraticaId);
create index IX_ABC9530C on portos_bo_FineLavori (protocollo); create index IX_ABC9530C on portos_bo_FineLavori (protocollo);
create index IX_1DE1B257 on portos_bo_FineLavori (uuid_); create index IX_1DE1B257 on portos_bo_FineLavori (uuid_);
create index IX_1B544571 on portos_bo_FineLavori (uuid_, companyId); create index IX_1B544571 on portos_bo_FineLavori (uuid_, companyId);
@ -140,21 +134,8 @@ create unique index IX_A7617433 on portos_bo_FineLavori (uuid_, groupId);
create index IX_588E9EC9 on portos_bo_HistoryWorkflowAction (intPraticaId); create index IX_588E9EC9 on portos_bo_HistoryWorkflowAction (intPraticaId);
create index IX_BAD23F73 on portos_bo_HistoryWorkflowAction (intPraticaId, dettPraticaId); create index IX_BAD23F73 on portos_bo_HistoryWorkflowAction (intPraticaId, dettPraticaId);
create index IX_8974E579 on portos_bo_IUV (pagamentoId);
create index IX_98874B2A on portos_bo_IUV (tipoPagamento);
create index IX_491C2AE8 on portos_bo_IUV (tipoPagamento, createDate);
create index IX_1D6A765C on portos_bo_IUV (uuid_);
create index IX_BFE13C4C on portos_bo_IUV (uuid_, companyId);
create unique index IX_A0E465CE on portos_bo_IUV (uuid_, groupId);
create index IX_41FDB69F on portos_bo_InfoFascicolo (intPraticaId);
create index IX_3FD1AC67 on portos_bo_InfoFascicolo (uuid_);
create index IX_B49E6161 on portos_bo_InfoFascicolo (uuid_, companyId);
create unique index IX_3F61CC23 on portos_bo_InfoFascicolo (uuid_, groupId);
create index IX_9929E083 on portos_bo_IntPratica (companyId, groupId); create index IX_9929E083 on portos_bo_IntPratica (companyId, groupId);
create index IX_E75F8D41 on portos_bo_IntPratica (companyId, userId); create index IX_E75F8D41 on portos_bo_IntPratica (companyId, userId);
create index IX_5690AE94 on portos_bo_IntPratica (oldIntPraticaId);
create index IX_779B836B on portos_bo_IntPratica (status, dtPratica); create index IX_779B836B on portos_bo_IntPratica (status, dtPratica);
create index IX_4736A755 on portos_bo_IntPratica (territorioId); create index IX_4736A755 on portos_bo_IntPratica (territorioId);
create index IX_B06E1913 on portos_bo_IntPratica (uuid_); create index IX_B06E1913 on portos_bo_IntPratica (uuid_);
@ -167,25 +148,20 @@ create index IX_4002AF66 on portos_bo_Pagamento (intPraticaId);
create index IX_3BCF688E on portos_bo_Pagamento (mezzo, utilizzata); create index IX_3BCF688E on portos_bo_Pagamento (mezzo, utilizzata);
create index IX_434F524C on portos_bo_Pagamento (mezzo, utilizzata, createDate); create index IX_434F524C on portos_bo_Pagamento (mezzo, utilizzata, createDate);
create index IX_BE4330DB on portos_bo_Pagamento (mezzo, utilizzata, emailPending, createDate); create index IX_BE4330DB on portos_bo_Pagamento (mezzo, utilizzata, emailPending, createDate);
create index IX_B598AAE2 on portos_bo_Pagamento (oldPagamentoId);
create index IX_8815F580 on portos_bo_Pagamento (uuid_); create index IX_8815F580 on portos_bo_Pagamento (uuid_);
create index IX_C25B9EA8 on portos_bo_Pagamento (uuid_, companyId); create index IX_C25B9EA8 on portos_bo_Pagamento (uuid_, companyId);
create unique index IX_D00BAF2A on portos_bo_Pagamento (uuid_, groupId); create unique index IX_D00BAF2A on portos_bo_Pagamento (uuid_, groupId);
create index IX_2E6B85CA on portos_bo_ParereGeo (companyId, groupId); create index IX_2E6B85CA on portos_bo_ParereGeo (companyId, groupId);
create index IX_E10A64CA on portos_bo_ParereGeo (geologoUserId);
create index IX_5D9EAD5E on portos_bo_ParereGeo (geologoUserId, dtCompilazione, dtAnnullamento); create index IX_5D9EAD5E on portos_bo_ParereGeo (geologoUserId, dtCompilazione, dtAnnullamento);
create index IX_EFB6D6FA on portos_bo_ParereGeo (intPraticaId); create index IX_EFB6D6FA on portos_bo_ParereGeo (intPraticaId);
create index IX_66765F8E on portos_bo_ParereGeo (intPraticaId, dtCompilazione, dtAnnullamento); create index IX_66765F8E on portos_bo_ParereGeo (intPraticaId, dtCompilazione, dtAnnullamento);
create index IX_50EF6FD8 on portos_bo_ParereGeo (intPraticaId, geologoUserId);
create index IX_5906FFC5 on portos_bo_ParereGeo (intPraticaId, parere);
create index IX_24A66C6C on portos_bo_ParereGeo (uuid_); create index IX_24A66C6C on portos_bo_ParereGeo (uuid_);
create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId); create index IX_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId);
create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId); create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId);
create index IX_A81834CD on portos_bo_Provincia (companyId); create index IX_A81834CD on portos_bo_Provincia (companyId);
create unique index IX_360E605D on portos_bo_Provincia (companyId, codiceProvincia); create unique index IX_360E605D on portos_bo_Provincia (companyId, codiceProvincia);
create unique index IX_9F8E6530 on portos_bo_Provincia (companyId, provincia);
create unique index IX_BDDB41C9 on portos_bo_Provincia (companyId, sigla); create unique index IX_BDDB41C9 on portos_bo_Provincia (companyId, sigla);
create index IX_2BCFDE38 on portos_bo_Soggetto (dettPraticaId); create index IX_2BCFDE38 on portos_bo_Soggetto (dettPraticaId);
@ -202,7 +178,6 @@ create index IX_7342AC88 on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto)
create index IX_58C81C9B on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, aggiuntivo, rimosso); create index IX_58C81C9B on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, aggiuntivo, rimosso);
create index IX_4CB6678E on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, dettPraticaIdRimozione); create index IX_4CB6678E on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, dettPraticaIdRimozione);
create index IX_1CC28F7E on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, rimosso); create index IX_1CC28F7E on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, rimosso);
create index IX_9ED63274 on portos_bo_Soggetto (oldSoggettoId);
create index IX_843862DE on portos_bo_Soggetto (userId); create index IX_843862DE on portos_bo_Soggetto (userId);
create index IX_AF4341E6 on portos_bo_Soggetto (userId, codiceFiscale); create index IX_AF4341E6 on portos_bo_Soggetto (userId, codiceFiscale);
create index IX_85A5F8F8 on portos_bo_Soggetto (userId, codiceFiscale, tipologiaSoggetto); create index IX_85A5F8F8 on portos_bo_Soggetto (userId, codiceFiscale, tipologiaSoggetto);
@ -210,26 +185,7 @@ create index IX_B54B3A90 on portos_bo_Soggetto (uuid_);
create index IX_EB38F98 on portos_bo_Soggetto (uuid_, companyId); create index IX_EB38F98 on portos_bo_Soggetto (uuid_, companyId);
create unique index IX_BE8B1C1A on portos_bo_Soggetto (uuid_, groupId); create unique index IX_BE8B1C1A on portos_bo_Soggetto (uuid_, groupId);
create index IX_E29C9013 on portos_bo_Sorteggio (anno, mese, settimana);
create index IX_C446DA4F on portos_bo_Sorteggio (companyId, dettPraticaId);
create index IX_237B57DD on portos_bo_Sorteggio (companyId, groupId);
create index IX_E6D6223F on portos_bo_Sorteggio (groupId, anno, mese, settimana);
create index IX_1946734D on portos_bo_Sorteggio (intPraticaId);
create index IX_B4103770 on portos_bo_Sorteggio (oldSorteggioId);
create index IX_CE0BB779 on portos_bo_Sorteggio (uuid_);
create index IX_ABD170F on portos_bo_Sorteggio (uuid_, companyId);
create unique index IX_676E1551 on portos_bo_Sorteggio (uuid_, groupId);
create index IX_8B107361 on portos_bo_StoricoSoggettoPratica (companyId, intPraticaId); create index IX_8B107361 on portos_bo_StoricoSoggettoPratica (companyId, intPraticaId);
create index IX_2A481D94 on portos_bo_StoricoSoggettoPratica (oldStoricoSoggettoPraticaId);
create index IX_4EC2508A on portos_bo_Tempistica (companyId, intPraticaId, tipo, completo);
create index IX_ECF3C141 on portos_bo_Tempistica (intPraticaId);
create index IX_9B1DAEA9 on portos_bo_Tempistica (intPraticaId, tipo);
create index IX_F0E498D4 on portos_bo_Tempistica (oldTempisticaId);
create index IX_54177405 on portos_bo_Tempistica (uuid_);
create index IX_8A6A4B03 on portos_bo_Tempistica (uuid_, companyId);
create unique index IX_4FFB645 on portos_bo_Tempistica (uuid_, groupId);
create index IX_57551365 on portos_bo_Territorio (companyId); create index IX_57551365 on portos_bo_Territorio (companyId);
create index IX_8F2F62E5 on portos_bo_Territorio (companyId, groupId); create index IX_8F2F62E5 on portos_bo_Territorio (companyId, groupId);
@ -237,5 +193,4 @@ create index IX_F7A0C0DD on portos_bo_Territorio (comuneId);
create unique index IX_19DC4644 on portos_bo_Territorio (comuneId, groupId, zona, fascia, dtIni); create unique index IX_19DC4644 on portos_bo_Territorio (comuneId, groupId, zona, fascia, dtIni);
create index IX_25AB073A on portos_bo_Territorio (fascia); create index IX_25AB073A on portos_bo_Territorio (fascia);
create index IX_55652F27 on portos_bo_Territorio (groupId); create index IX_55652F27 on portos_bo_Territorio (groupId);
create index IX_1193CE54 on portos_bo_Territorio (oldTerritorioId);
create index IX_BDF7C43F on portos_bo_Territorio (zona); create index IX_BDF7C43F on portos_bo_Territorio (zona);

79
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql

@ -520,34 +520,6 @@ create table portos_bo_HistoryWorkflowAction (
attivato BOOLEAN attivato BOOLEAN
); );
create table portos_bo_IUV (
uuid_ VARCHAR(75) null,
iuvId LONG not null primary key,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null,
groupId LONG,
pagamentoId LONG,
codice VARCHAR(75) null,
tipoPagamento VARCHAR(75) null
);
create table portos_bo_InfoFascicolo (
uuid_ VARCHAR(75) null,
infoFascicoloId LONG not null primary key,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null,
groupId LONG,
intPraticaId LONG,
numeroProgetto VARCHAR(75) null,
alreadyImported BOOLEAN
);
create table portos_bo_IntPratica ( create table portos_bo_IntPratica (
uuid_ VARCHAR(75) null, uuid_ VARCHAR(75) null,
intPraticaId LONG not null primary key, intPraticaId LONG not null primary key,
@ -715,39 +687,6 @@ create table portos_bo_Soggetto (
fileVariazioneId LONG fileVariazioneId LONG
); );
create table portos_bo_Sorteggio (
uuid_ VARCHAR(75) null,
sorteggioId LONG not null primary key,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null,
groupId LONG,
status INTEGER,
statusByUserId LONG,
statusByUserName VARCHAR(75) null,
statusDate DATE null,
intPraticaId LONG,
dettPraticaId LONG,
note STRING null,
anno VARCHAR(4) null,
mese VARCHAR(2) null,
settimana INTEGER,
dtSorteggio DATE null,
stato VARCHAR(10) null,
dettagli STRING null,
numeroEstrazione LONG,
pratica STRING null,
committente STRING null,
comune VARCHAR(75) null,
provincia VARCHAR(75) null,
tecnico VARCHAR(75) null,
mesePrecedente VARCHAR(75) null,
esterna BOOLEAN,
praticaEsternaId LONG
);
create table portos_bo_StoricoSoggettoPratica ( create table portos_bo_StoricoSoggettoPratica (
storicoSoggettoPraticaId LONG not null primary key, storicoSoggettoPraticaId LONG not null primary key,
companyId LONG, companyId LONG,
@ -762,24 +701,6 @@ create table portos_bo_StoricoSoggettoPratica (
codiceFiscale VARCHAR(75) null codiceFiscale VARCHAR(75) null
); );
create table portos_bo_Tempistica (
uuid_ VARCHAR(75) null,
tempisticaId LONG not null primary key,
companyId LONG,
userId LONG,
userName VARCHAR(75) null,
createDate DATE null,
modifiedDate DATE null,
groupId LONG,
intPraticaId LONG,
dettPraticaId LONG,
tipo VARCHAR(75) null,
start_ LONG,
stop LONG,
wait LONG,
completo BOOLEAN
);
create table portos_bo_Territorio ( create table portos_bo_Territorio (
territorioId LONG not null primary key, territorioId LONG not null primary key,
companyId LONG, companyId LONG,

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Language.properties

@ -1,7 +1,5 @@
cat_riepilogo= Fascicolo cat_riepilogo= Fascicolo
cat_integrazioni= Integrazioni cat_integrazioni= Integrazioni
cat_fine_lavori= Fine Lavori
cat_collaudi= Collaudi
cat_comunicazioni= Comunicazioni cat_comunicazioni= Comunicazioni
cat_varianti= Varianti cat_varianti= Varianti
page_riepilogo = Riepilogo page_riepilogo = Riepilogo
@ -112,7 +110,6 @@ conf.geniocivile.scheduler.versioning = Schedulazione Versionamento
conf.geniocivile.scheduler.generadocumento = Schedulazione Generazione Documenti conf.geniocivile.scheduler.generadocumento = Schedulazione Generazione Documenti
conf.geniocivile.scheduler.firmadocumento = Schedulazione Firma Documenti conf.geniocivile.scheduler.firmadocumento = Schedulazione Firma Documenti
conf.geniocivile.scheduler.inviodocumento = Schedulazione Invio Documenti conf.geniocivile.scheduler.inviodocumento = Schedulazione Invio Documenti
conf.geniocivile.scheduler.inviodocumentodax = Schedulazione Invio Documenti Dax
#Configurazione labels #Configurazione labels
conf.geniocivile.scheduler.iris.importobollo = Importo Bollo conf.geniocivile.scheduler.iris.importobollo = Importo Bollo

26
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -678,11 +678,11 @@ de-inf-altro = Altro
de-inf-altro-desc = Altra Infrastruttura Descrizione de-inf-altro-desc = Altra Infrastruttura Descrizione
##SEZIONE GEOLOGICA ##SEZIONE GEOLOGICA
geo-nota = <div>Avviso</div>La possibilità di selezionare il campo “Non applicabile” scaturisce dall’attuale non corrispondenza \ geo-nota = <div>Avviso</div>La possibilità di selezionare il campo “Non applicabile” scaturisce dall’attuale non \
all’interno della vigente normativa della Regione Siciliana delle modalità di numerazione riportate nei campi \ corrispondenza all’interno della vigente normativa della Regione Siciliana delle modalità di numerazione \
numerati, pertanto la mancata applicazione non costituisce nessuna valutazione di merito da parte del \ riportate nei campi numerati, pertanto la mancata applicazione non costituisce nessuna valutazione di merito da \
professionista. Si precisa in tal senso che i campi qui richiamati riguardano un primo inquadramento di \ parte del professionista. Si precisa in tal senso che i campi qui richiamati riguardano un primo inquadramento di \
carattere generale del sito oggetto di valutazione. carattere generale del sito oggetto di valutazione.
geo = DATI GEOLOGICI geo = DATI GEOLOGICI
geo-dt-relazione = Data Relazione Geologica geo-dt-relazione = Data Relazione Geologica
@ -805,13 +805,17 @@ geo-presenza-prescrizioni-No = No
geo-note-prescrizioni = Note relative al progetto e/o alle Prescrizioni geo-note-prescrizioni = Note relative al progetto e/o alle Prescrizioni
geo-evidenze-geologiche = Nella Relazione geologica sono emerse <strong>evidenze geologiche</strong> che comportano significative <strong>differenze cartografiche</strong> sia rispetto alle cartografie geologiche regionali che a quelle di supporto agli SU geo-evidenze-geologiche = Nella Relazione geologica sono emerse <strong>evidenze geologiche</strong> che comportano \
significative <strong>differenze cartografiche</strong> sia rispetto alle cartografie geologiche regionali che a \
quelle di supporto agli SU
geo-evidenze-geologiche-Si = Si geo-evidenze-geologiche-Si = Si
geo-evidenze-geologiche-No = No geo-evidenze-geologiche-No = No
geo-evidenze-geologiche-short = Evidenze Geologiche geo-evidenze-geologiche-short = Evidenze Geologiche
geo-evidenze-geomorfiche = Nella Relazione geologica sono emerse <strong>evidenze geomorfologiche</strong> che comportano significative <strong>differenze cartografiche</strong> (anche stato di attività o perimetri) sia rispetto alle cartografie geologiche regionali che al PAI che alle cartografie di supporto agli SU) geo-evidenze-geomorfiche = Nella Relazione geologica sono emerse <strong>evidenze geomorfologiche</strong> che \
comportano significative <strong>differenze cartografiche</strong> (anche stato di attività o perimetri) sia \
rispetto alle cartografie geologiche regionali che al PAI che alle cartografie di supporto agli SU)
geo-evidenze-geomorfiche-Si = Si geo-evidenze-geomorfiche-Si = Si
geo-evidenze-geomorfiche-No = No geo-evidenze-geomorfiche-No = No
@ -825,9 +829,11 @@ fl-acciaio = Acciaio (D.M. 14.01.2008 - punto 11.3.2. 10.4)
fl-altro = Altro fl-altro = Altro
#fl-responsabilita = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai sensi del D.M. 14/01/2008, punto 8.4.3, il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilita', che non si procedera' ad effettuare il collaudo statico. #fl-responsabilita = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai sensi del D.M. 14/01/2008, punto 8.4.3, il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilita', che non si procedera' ad effettuare il collaudo statico.
#bug id #1 #bug id #1
fl-responsabilita = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai sensi del D.M. 17/01/2018, punto 8.4, il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, che non si procederà ad effettuare il collaudo statico. fl-responsabilita = Trattandosi di opere di riparazione o intervento locale eseguibile su un edificio esistente ai \
sensi del D.M. 17/01/2018, punto 8.4, il sottoscritto Direttore dei Lavori dichiara, sotto la sua responsabilità, \
fl-ulteriore-documentazione = Si allega ulteriore documentazioneutile alla dichiarazione di conformità delle opere realizzate. che non si procederà ad effettuare il collaudo statico.
fl-ulteriore-documentazione = Si allega ulteriore documentazioneutile alla dichiarazione di conformità delle opere \
realizzate.
##RICERCA PRATICHE ##RICERCA PRATICHE
ricercapratiche.numeroProgetto = Numero Progetto ricercapratiche.numeroProgetto = Numero Progetto

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

@ -123,21 +123,17 @@ public class ControlloPraticaIndexer extends BaseIndexer {
} else { } else {
document.addKeyword(PortosIndexField.STATUS_DATE, 0); document.addKeyword(PortosIndexField.STATUS_DATE, 0);
} }
List<ParereGeologo> listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId( List<ParereGeologo> listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(
controlloPraticaFromDB.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); controlloPraticaFromDB.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<Long> idGeologi = new ArrayList<Long>(); List<Long> idGeologi = new ArrayList<Long>();
for(ParereGeologo geo : listaParereGeologo){ for(ParereGeologo geo : listaParereGeologo){
idGeologi.add(geo.getGeologoUserId()); idGeologi.add(geo.getGeologoUserId());
} }
if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) { if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 1L); document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 1L);
} else { } else {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 0L); document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 0L);
} }
document.addNumber(PortosIndexField.GEOLOGI, idGeologi.toArray(new Long[0])); document.addNumber(PortosIndexField.GEOLOGI, idGeologi.toArray(new Long[0]));
document.addKeyword(PortosIndexField.DATA_INIZIO_PROCEDIMENTO, document.addKeyword(PortosIndexField.DATA_INIZIO_PROCEDIMENTO,
DATE_FORMAT.format(controlloPraticaFromDB.getCreateDate())); DATE_FORMAT.format(controlloPraticaFromDB.getCreateDate()));
@ -160,7 +156,6 @@ public class ControlloPraticaIndexer extends BaseIndexer {
}else{ }else{
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L); document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L);
} }
if (intPratica.getUserId() != 0L) { if (intPratica.getUserId() != 0L) {
User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId()); User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId());
if (Validator.isNotNull(proprietarioDigitale)) { if (Validator.isNotNull(proprietarioDigitale)) {

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

@ -154,7 +154,6 @@ public class IntPraticaIndexer extends BaseIndexer {
document.addText(PortosIndexField.LOCALITA, lastDettPratica.getLocalita()); document.addText(PortosIndexField.LOCALITA, lastDettPratica.getLocalita());
} }
} }
document.addKeyword("controlloObbligatorio", intPraticaFromDB.isControlloObbligatorio()); document.addKeyword("controlloObbligatorio", intPraticaFromDB.isControlloObbligatorio());
// Gestione pratica aperta/chiusa fine lavori // Gestione pratica aperta/chiusa fine lavori
if (intPraticaFromDB.getCollaudoTotale()) { if (intPraticaFromDB.getCollaudoTotale()) {
@ -193,18 +192,17 @@ public class IntPraticaIndexer extends BaseIndexer {
document.addKeyword(PortosIndexField.ISTRUTTORE_USERNAME, document.addKeyword(PortosIndexField.ISTRUTTORE_USERNAME,
UserLocalServiceUtil.getUser(intPraticaFromDB.getStatusByUserId()).getScreenName() UserLocalServiceUtil.getUser(intPraticaFromDB.getStatusByUserId()).getScreenName()
.toUpperCase()); .toUpperCase());
} }
if (intPratica.getStatusByUserId() != 0L) { if (intPratica.getStatusByUserId() != 0L) {
User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId()); User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if (userIstruttore != null) { if (userIstruttore != null) {
document.addText(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore.getFullName()); document.addText(PortosIndexField.ISTRUTTORE_FULL_NAME, userIstruttore.getFullName());
} }
if(intPratica.getStatoPratica().equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE)) if (intPratica.getStatoPratica().equals(StatoPraticaConstants.SOTTOPOSTA_A_PARERE))
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 1L); document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 1L);
else else
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L); document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L);
}else{ } else {
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L); document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L);
} }
@ -259,20 +257,16 @@ public class IntPraticaIndexer extends BaseIndexer {
// Gestione Parere Geologo // Gestione Parere Geologo
List<ParereGeologo> listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId( List<ParereGeologo> listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(
intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<Long> idGeologi = new ArrayList<Long>(); List<Long> idGeologi = new ArrayList<Long>();
for(ParereGeologo geo : listaParereGeologo){ for (ParereGeologo geo : listaParereGeologo) {
idGeologi.add(geo.getGeologoUserId()); idGeologi.add(geo.getGeologoUserId());
} }
document.addNumber(PortosIndexField.GEOLOGI, idGeologi.toArray(new Long[0])); document.addNumber(PortosIndexField.GEOLOGI, idGeologi.toArray(new Long[0]));
if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) { if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 1L); document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 1L);
} else { } else {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 0L); document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 0L);
} }
// Gestione pratica sospesa // Gestione pratica sospesa
document.addKeyword(PortosIndexField.STATUS_SOSPESA, intPraticaFromDB.isSospesa()); document.addKeyword(PortosIndexField.STATUS_SOSPESA, intPraticaFromDB.isSospesa());
// Gestione Diverse tipologie di IntPratica MIEI PROGETTI && ARCHIVIO PROGETTI // Gestione Diverse tipologie di IntPratica MIEI PROGETTI && ARCHIVIO PROGETTI

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

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -20,10 +14,11 @@ import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil; import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil;
/** /**
* The extended model base implementation for the AllegatoManuale service. Represents a row in the &quot;portos_bo_AllegatoManuale&quot; database table, with each column mapped to a property of this class. * The extended model base implementation for the AllegatoManuale service. Represents a row in the
* * &quot;portos_bo_AllegatoManuale&quot; database table, with each column mapped to a property of this class.
* <p> * <p>
* This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link AllegatoManualeImpl}. * This class exists only as a container for the default extended model level methods generated by ServiceBuilder.
* Helper methods and all application logic should be put in {@link AllegatoManualeImpl}.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l.
@ -31,19 +26,16 @@ import it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil;
* @see it.tref.liferay.portos.bo.model.AllegatoManuale * @see it.tref.liferay.portos.bo.model.AllegatoManuale
* @generated * @generated
*/ */
public abstract class AllegatoManualeBaseImpl extends AllegatoManualeModelImpl public abstract class AllegatoManualeBaseImpl extends AllegatoManualeModelImpl implements AllegatoManuale {
implements AllegatoManuale {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never modify or reference this class directly. All methods that expect a allegato manuale
* * model instance should use the {@link AllegatoManuale} interface instead.
* Never modify or reference this class directly. All methods that expect a allegato manuale model instance should use the {@link AllegatoManuale} interface instead.
*/ */
@Override @Override
public void persist() throws SystemException { public void persist() throws SystemException {
if (this.isNew()) { if (this.isNew()) {
AllegatoManualeLocalServiceUtil.addAllegatoManuale(this); AllegatoManualeLocalServiceUtil.addAllegatoManuale(this);
} } else {
else {
AllegatoManualeLocalServiceUtil.updateAllegatoManuale(this); AllegatoManualeLocalServiceUtil.updateAllegatoManuale(this);
} }
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -15,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the AllegatoManuale service. Represents a row in the * The extended model implementation for the AllegatoManuale service. Represents a row in the
* &quot;portos_bo_AllegatoManuale&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_AllegatoManuale&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.AllegatoManuale} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface.
@ -29,6 +24,5 @@ public class AllegatoManualeImpl extends AllegatoManualeBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a allegato manuale model * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a allegato manuale model
* instance should use the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface instead. * instance should use the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface instead.
*/ */
public AllegatoManualeImpl() { public AllegatoManualeImpl() {}
}
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -29,7 +25,6 @@ import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the Asseverazione service. Represents a row in the * The extended model implementation for the Asseverazione service. Represents a row in the
* &quot;portos_bo_Asseverazione&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_Asseverazione&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.Asseverazione} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface.
@ -43,8 +38,7 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a asseverazione model instance * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a asseverazione model instance
* should use the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface instead. * should use the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface instead.
*/ */
public AsseverazioneImpl() { public AsseverazioneImpl() {}
}
@Override @Override
public Map<String, Serializable> getDichiarazioniMap() { public Map<String, Serializable> getDichiarazioniMap() {
@ -62,32 +56,32 @@ public class AsseverazioneImpl extends AsseverazioneBaseImpl {
String modello = StringPool.BLANK; String modello = StringPool.BLANK;
switch (this.getTipologia()) { switch (this.getTipologia()) {
case TipoSoggettoUtil.COLLAUDATORE: case TipoSoggettoUtil.COLLAUDATORE:
modello = "AS-COL"; modello = "AS-COL";
break; break;
case TipoSoggettoUtil.COMMITTENTE: case TipoSoggettoUtil.COMMITTENTE:
modello = "AS-COM"; modello = "AS-COM";
break; break;
case TipoSoggettoUtil.DIRETTORE_LAVORI: case TipoSoggettoUtil.DIRETTORE_LAVORI:
modello = "AS-DIR"; modello = "AS-DIR";
break; break;
case TipoSoggettoUtil.DITTA: case TipoSoggettoUtil.DITTA:
modello = "AS-COS"; modello = "AS-COS";
break; break;
case TipoSoggettoUtil.GEOLOGO: case TipoSoggettoUtil.GEOLOGO:
modello = "AS-GEO"; modello = "AS-GEO";
break; break;
case TipoSoggettoUtil.PROGETTISTA: case TipoSoggettoUtil.PROGETTISTA:
Soggetto soggetto = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto( Soggetto soggetto = SoggettoLocalServiceUtil.getValidByIntPratica_CodiceFiscale_TipologiaSoggetto(
this.getIntPraticaId(), this.getCodiceFiscale(), this.getTipologia()); this.getIntPraticaId(), this.getCodiceFiscale(), this.getTipologia());
if (soggetto.getAmbitoProfessione().equals("architettonico")) { if (soggetto.getAmbitoProfessione().equals("architettonico")) {
modello = "AS-PRA"; modello = "AS-PRA";
} else { } else {
modello = "AS-PRC"; modello = "AS-PRC";
} }
break; break;
case TipoSoggettoUtil.ARCHEOLOGO: case TipoSoggettoUtil.ARCHEOLOGO:
modello = "AS-ARC"; modello = "AS-ARC";
} }
return modello; return modello;
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -30,7 +26,6 @@ import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the Collaudo service. Represents a row in the &quot;portos_bo_Collaudo&quot; * The extended model implementation for the Collaudo service. Represents a row in the &quot;portos_bo_Collaudo&quot;
* database table, with each column mapped to a property of this class. * database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.Collaudo} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Collaudo} interface.
@ -41,14 +36,10 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class CollaudoImpl extends CollaudoBaseImpl { public class CollaudoImpl extends CollaudoBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a collaudo model instance
* * should use the {@link it.tref.liferay.portos.bo.model.Collaudo} interface instead.
* Never reference this class directly. All methods that expect a collaudo
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Collaudo} interface instead.
*/ */
public CollaudoImpl() { public CollaudoImpl() {}
}
private static final Log _log = LogFactoryUtil.getLog(CollaudoImpl.class); private static final Log _log = LogFactoryUtil.getLog(CollaudoImpl.class);

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

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -17,7 +11,6 @@ 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; * 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. * database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface.
@ -31,6 +24,5 @@ public class ComuneImpl extends ComuneBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comune model instance should * 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. * use the {@link it.tref.liferay.portos.bo.model.Comune} interface instead.
*/ */
public ComuneImpl() { public ComuneImpl() {}
}
} }

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

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -17,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Comunicazione service. Represents a row in the * 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. * &quot;portos_bo_Comunicazione&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface.
@ -31,6 +24,5 @@ public class ComunicazioneImpl extends ComunicazioneBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a comunicazione model instance * 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. * should use the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface instead.
*/ */
public ComunicazioneImpl() { public ComunicazioneImpl() {}
}
} }

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

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -17,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Configurazione service. Represents a row in the * 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. * &quot;portos_bo_Configurazione&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface.
@ -31,6 +24,5 @@ public class ConfigurazioneImpl extends ConfigurazioneBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a configurazione model instance * 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. * should use the {@link it.tref.liferay.portos.bo.model.Configurazione} interface instead.
*/ */
public ConfigurazioneImpl() { public ConfigurazioneImpl() {}
}
} }

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

@ -1,28 +1,21 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
/** /**
* The extended model implementation for the ControlloPratica service. Represents a row in the * 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. * &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface.
@ -36,9 +29,9 @@ public class ControlloPraticaImpl extends ControlloPraticaBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a controllo pratica model * 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. * instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
*/ */
public ControlloPraticaImpl() { public ControlloPraticaImpl() {}
}
@Override
public int getUnitaOperativa() { public int getUnitaOperativa() {
try { try {

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

@ -1,15 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -24,7 +18,6 @@ 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; * 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. * database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Delega} interface.
@ -35,14 +28,10 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class DelegaImpl extends DelegaBaseImpl { public class DelegaImpl extends DelegaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * 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.
* 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() { public DelegaImpl() {}
}
@Override @Override
public Map<String, Serializable> getDichiarazioniMap() { public Map<String, Serializable> getDichiarazioniMap() {

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -20,7 +16,6 @@ import com.liferay.portlet.documentlibrary.service.DLFileEntryServiceUtil;
/** /**
* The extended model implementation for the DocAggiuntiva service. Represents a row in the * The extended model implementation for the DocAggiuntiva service. Represents a row in the
* &quot;portos_bo_DocAggiuntiva&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_DocAggiuntiva&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.DocAggiuntiva} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface.
@ -34,8 +29,7 @@ public class DocAggiuntivaImpl extends DocAggiuntivaBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc aggiuntiva model instance * 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. * should use the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
*/ */
public DocAggiuntivaImpl() { public DocAggiuntivaImpl() {}
}
@Override @Override
public String getFileName() throws PortalException, SystemException { public String getFileName() throws PortalException, SystemException {

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -25,7 +21,6 @@ import com.liferay.portlet.documentlibrary.util.DLUtil;
/** /**
* The extended model implementation for the DocPratica service. Represents a row in the * The extended model implementation for the DocPratica service. Represents a row in the
* &quot;portos_bo_DocPratica&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_DocPratica&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.DocPratica} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.DocPratica} interface.
@ -39,8 +34,7 @@ public class DocPraticaImpl extends DocPraticaBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc pratica model instance * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a doc pratica model instance
* should use the {@link it.tref.liferay.portos.bo.model.DocPratica} interface instead. * should use the {@link it.tref.liferay.portos.bo.model.DocPratica} interface instead.
*/ */
public DocPraticaImpl() { public DocPraticaImpl() {}
}
@Override @Override
public String getFileName() throws PortalException, SystemException { public String getFileName() throws PortalException, SystemException {

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -30,7 +26,6 @@ import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the FineLavori service. Represents a row in the * The extended model implementation for the FineLavori service. Represents a row in the
* &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.FineLavori} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
@ -41,17 +36,13 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class FineLavoriImpl extends FineLavoriBaseImpl { public class FineLavoriImpl extends FineLavoriBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a fine lavori model instance
* * should use the {@link it.tref.liferay.portos.bo.model.FineLavori} interface instead.
* Never reference this class directly. All methods that expect a fine
* lavori model instance should use the {@link
* it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/ */
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class); private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() { public FineLavoriImpl() {}
}
@Override @Override
public String getTitle(Locale locale) { public String getTitle(Locale locale) {

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -15,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the HistoryWorkflowAction service. Represents a row in the * The extended model implementation for the HistoryWorkflowAction service. Represents a row in the
* &quot;portos_bo_HistoryWorkflowAction&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_HistoryWorkflowAction&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.HistoryWorkflowAction} * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction}
@ -30,6 +25,5 @@ public class HistoryWorkflowActionImpl extends HistoryWorkflowActionBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a history workflow action model * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a history workflow action model
* instance should use the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface instead. * instance should use the {@link it.tref.liferay.portos.bo.model.HistoryWorkflowAction} interface instead.
*/ */
public HistoryWorkflowActionImpl() { public HistoryWorkflowActionImpl() {}
}
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -25,14 +21,11 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.util.DLUtil; import com.liferay.portlet.documentlibrary.util.DLUtil;
/** /**
* The extended model implementation for the Pagamento service. Represents a row * The extended model implementation for the Pagamento service. Represents a row in the &quot;portos_bo_Pagamento&quot;
* in the &quot;portos_bo_Pagamento&quot; database table, with each column * database table, with each column mapped to a property of this class.
* mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* Whenever methods are added, rerun ServiceBuilder to copy their definitions * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Pagamento} interface.
* into the {@link it.tref.liferay.portos.bo.model.Pagamento} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l. * @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l.
@ -40,14 +33,10 @@ import com.liferay.portlet.documentlibrary.util.DLUtil;
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class PagamentoImpl extends PagamentoBaseImpl { public class PagamentoImpl extends PagamentoBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a pagamento model instance
* * should use the {@link it.tref.liferay.portos.bo.model.Pagamento} interface instead.
* Never reference this class directly. All methods that expect a pagamento
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Pagamento} interface instead.
*/ */
public PagamentoImpl() { public PagamentoImpl() {}
}
@Override @Override
public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException { public String getDownloadUrl(ThemeDisplay themeDisplay) throws PortalException, SystemException {

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -15,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the ParereGeologo service. Represents a row in the * The extended model implementation for the ParereGeologo service. Represents a row in the
* &quot;portos_bo_ParereGeologo&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_ParereGeologo&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.ParereGeologo} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface.
@ -29,6 +24,5 @@ public class ParereGeologoImpl extends ParereGeologoBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a parere geologo model instance * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a parere geologo model instance
* should use the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface instead. * should use the {@link it.tref.liferay.portos.bo.model.ParereGeologo} interface instead.
*/ */
public ParereGeologoImpl() { public ParereGeologoImpl() {}
}
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -15,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Provincia service. Represents a row in the &quot;portos_provincia&quot; * The extended model implementation for the Provincia service. Represents a row in the &quot;portos_provincia&quot;
* database table, with each column mapped to a property of this class. * database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.Provincia} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Provincia} interface.
@ -29,6 +24,5 @@ public class ProvinciaImpl extends ProvinciaBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a provincia model instance * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a provincia model instance
* should use the {@link it.tref.liferay.portos.bo.model.Provincia} interface instead. * should use the {@link it.tref.liferay.portos.bo.model.Provincia} interface instead.
*/ */
public ProvinciaImpl() { public ProvinciaImpl() {}
}
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -20,7 +16,6 @@ import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the Soggetto service. Represents a row in the &quot;portos_bo_Soggetto&quot; * The extended model implementation for the Soggetto service. Represents a row in the &quot;portos_bo_Soggetto&quot;
* database table, with each column mapped to a property of this class. * database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.Soggetto} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Soggetto} interface.
@ -36,8 +31,7 @@ public class SoggettoImpl extends SoggettoBaseImpl {
*/ */
private static final String SEP = " - "; private static final String SEP = " - ";
public SoggettoImpl() { public SoggettoImpl() {}
}
@Override @Override
public String getFullTipologiaSoggetto() { public String getFullTipologiaSoggetto() {

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -15,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the StoricoSoggettoPratica service. Represents a row in the * The extended model implementation for the StoricoSoggettoPratica service. Represents a row in the
* &quot;portos_bo_StoricoSoggettoPratica&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_StoricoSoggettoPratica&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.StoricoSoggettoPratica} * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica}
@ -30,6 +25,5 @@ public class StoricoSoggettoPraticaImpl extends StoricoSoggettoPraticaBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a storico soggetto pratica * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a storico soggetto pratica
* model instance should use the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface instead. * model instance should use the {@link it.tref.liferay.portos.bo.model.StoricoSoggettoPratica} interface instead.
*/ */
public StoricoSoggettoPraticaImpl() { public StoricoSoggettoPraticaImpl() {}
}
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.model.impl; package it.tref.liferay.portos.bo.model.impl;
@ -15,7 +11,6 @@ package it.tref.liferay.portos.bo.model.impl;
/** /**
* The extended model implementation for the Territorio service. Represents a row in the * The extended model implementation for the Territorio service. Represents a row in the
* &quot;portos_bo_Territorio&quot; database table, with each column mapped to a property of this class. * &quot;portos_bo_Territorio&quot; database table, with each column mapped to a property of this class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun * 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.Territorio} interface. * ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Territorio} interface.
@ -29,8 +24,7 @@ public class TerritorioImpl extends TerritorioBaseImpl {
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a territorio model instance * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a territorio model instance
* should use the {@link it.tref.liferay.portos.bo.model.Territorio} interface instead. * should use the {@link it.tref.liferay.portos.bo.model.Territorio} interface instead.
*/ */
public TerritorioImpl() { public TerritorioImpl() {}
}
@Override @Override
public String getZonaFasciaDesc() { public String getZonaFasciaDesc() {

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

@ -27,7 +27,6 @@ public class SoggettoModelListener extends BaseModelListener<Soggetto> {
} catch (SearchException e) { } catch (SearchException e) {
_log.error(e, e); _log.error(e, e);
} }
super.onAfterUpdate(model); super.onAfterUpdate(model);
} }
} }

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -41,11 +37,9 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException;
/** /**
* The implementation of the allegato manuale local service. * The implementation of the allegato manuale local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.AllegatoManualeLocalService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.AllegatoManualeLocalService} interface.
*
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM. * credentials because this service can only be accessed from within the same VM.
@ -57,9 +51,7 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException;
*/ */
public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalServiceBaseImpl { public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
*
* Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil} to access the allegato manuale local service. * it.tref.liferay.portos.bo.service.AllegatoManualeLocalServiceUtil} to access the allegato manuale local service.
*/ */

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -28,11 +24,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the asseverazione remote service. * The implementation of the asseverazione remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.AsseverazioneService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.AsseverazioneService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -45,11 +41,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the comune local service. * The implementation of the comune local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ComuneLocalService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ComuneLocalService} interface.
*
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM. * credentials because this service can only be accessed from within the same VM.
@ -281,8 +275,8 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId); List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId);
if (Validator.isNotNull(organizationList)) { if (Validator.isNotNull(organizationList)) {
for (Organization org : organizationList) { for (Organization org : organizationList) {
List<Territorio> territori = territorioLocalService.getTerritori(org.getCompanyId(), List<Territorio> territori = territorioLocalService.getTerritori(org.getCompanyId(), org.getGroupId(),
org.getGroupId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS); QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (Validator.isNotNull(territori)) { if (Validator.isNotNull(territori)) {
for (Territorio terr : territori) { for (Territorio terr : territori) {
Comune comune = fetchComune(terr.getComuneId()); Comune comune = fetchComune(terr.getComuneId());

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -21,11 +17,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the comunicazione remote service. * The implementation of the comunicazione remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ComunicazioneService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ComunicazioneService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -27,11 +23,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the configurazione local service. * The implementation of the configurazione local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ConfigurazioneLocalService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ConfigurazioneLocalService} interface.
*
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM. * credentials because this service can only be accessed from within the same VM.
@ -80,8 +74,7 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa
Configurazione configurazione = null; Configurazione configurazione = null;
try { try {
configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave); configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave);
} catch (NoSuchConfigurazioneException e) { } catch (NoSuchConfigurazioneException e) {}
}
if (configurazione == null) { if (configurazione == null) {
configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName())); configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName()));
configurazione.setChiave(chiave); configurazione.setChiave(chiave);

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -16,11 +12,9 @@ import it.tref.liferay.portos.bo.service.base.ControlloPraticaServiceBaseImpl;
/** /**
* The implementation of the controllo pratica remote service. * The implementation of the controllo pratica remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ControlloPraticaService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ControlloPraticaService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -33,11 +29,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the dett pratica remote service. * The implementation of the dett pratica remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.DettPraticaService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.DettPraticaService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -24,11 +20,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the doc pratica remote service. * The implementation of the doc pratica remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.DocPraticaService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.DocPraticaService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -25,11 +21,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the fine lavori remote service. * The implementation of the fine lavori remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.FineLavoriService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.FineLavoriService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -16,11 +12,9 @@ import it.tref.liferay.portos.bo.service.base.HistoryWorkflowActionServiceBaseIm
/** /**
* The implementation of the history workflow action remote service. * The implementation of the history workflow action remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -30,11 +26,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the int pratica remote service. * The implementation of the int pratica remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.IntPraticaService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.IntPraticaService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -29,11 +25,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the pagamento remote service. * The implementation of the pagamento remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.PagamentoService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.PagamentoService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -27,11 +23,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the parere geologo remote service. * The implementation of the parere geologo remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ParereGeologoService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ParereGeologoService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.
@ -54,7 +48,8 @@ public class ParereGeologoServiceImpl extends ParereGeologoServiceBaseImpl {
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId()); Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId());
IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.RICHIEDI_PARERE_GEOLOGO); IntPraticaPermission.check(getPermissionChecker(), territorio.getGroupId(), ActionKeys.RICHIEDI_PARERE_GEOLOGO);
return parereGeologoLocalService.addParereGeologo(geologoUserId, intPraticaId, dettPraticaId, noteRichiedente, serviceContext); return parereGeologoLocalService.addParereGeologo(geologoUserId, intPraticaId, dettPraticaId, noteRichiedente,
serviceContext);
} }
@Override @Override

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -38,11 +34,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the provincia local service. * The implementation of the provincia local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ProvinciaLocalService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ProvinciaLocalService} interface.
*
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM. * credentials because this service can only be accessed from within the same VM.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -16,11 +12,9 @@ import it.tref.liferay.portos.bo.service.base.ProvinciaServiceBaseImpl;
/** /**
* The implementation of the provincia remote service. * The implementation of the provincia remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.ProvinciaService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.ProvinciaService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -26,11 +22,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the soggetto remote service. * The implementation of the soggetto remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.SoggettoService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.SoggettoService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -25,11 +21,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the storico soggetto pratica local service. * The implementation of the storico soggetto pratica local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaLocalService} interface.
*
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM. * credentials because this service can only be accessed from within the same VM.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -16,11 +12,9 @@ import it.tref.liferay.portos.bo.service.base.StoricoSoggettoPraticaServiceBaseI
/** /**
* The implementation of the storico soggetto pratica remote service. * The implementation of the storico soggetto pratica remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.StoricoSoggettoPraticaService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -34,11 +30,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the territorio local service. * The implementation of the territorio local service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.TerritorioLocalService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.TerritorioLocalService} interface.
*
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS * This is a local service. Methods of this service will not have security checks based on the propagated JAAS
* credentials because this service can only be accessed from within the same VM. * credentials because this service can only be accessed from within the same VM.

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

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.liferay.portos.bo.service.impl; package it.tref.liferay.portos.bo.service.impl;
@ -24,11 +20,9 @@ import com.liferay.portal.service.ServiceContext;
/** /**
* The implementation of the territorio remote service. * The implementation of the territorio remote service.
*
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy * All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy
* their definitions into the {@link it.tref.liferay.portos.bo.service.TerritorioService} interface. * their definitions into the {@link it.tref.liferay.portos.bo.service.TerritorioService} interface.
*
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS
* credentials because this service can be accessed remotely. * credentials because this service can be accessed remotely.

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=3348 build.number=3349
build.date=1631526462579 build.date=1631527942260
build.auto.upgrade=true build.auto.upgrade=true
## ##

BIN
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/lib/util-java.jar

File binario non mostrato.

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

@ -18,7 +18,7 @@ package it.tref.portos.calendar.appointments.model.impl;
* interface. * interface.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
@SuppressWarnings("serial") @SuppressWarnings("serial")
public class DisponibilitaImpl extends DisponibilitaBaseImpl { public class DisponibilitaImpl extends DisponibilitaBaseImpl {

48
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* GNU Lesser General Public License as published by the Free Software Foundation; either version * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* 2.1 of the License, or (at your option) any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/ */
package it.tref.portos.calendar.appointments.model.impl; package it.tref.portos.calendar.appointments.model.impl;
@ -16,28 +12,26 @@ import com.liferay.portal.kernel.util.StringPool;
/** /**
* The extended model implementation for the Funzionario service. Represents a row in the * The extended model implementation for the Funzionario service. Represents a row in the
* &quot;portos_calendar_appointments_Funzionario&quot; database table, with each column mapped to a * &quot;portos_calendar_appointments_Funzionario&quot; database table, with each column mapped to a property of this
* property of this class. * class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* rerun ServiceBuilder to copy their definitions into the * ServiceBuilder to copy their definitions into the {@link it.tref.portos.calendar.appointments.model.Funzionario}
* {@link it.tref.portos.calendar.appointments.model.Funzionario} interface. * interface.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
@SuppressWarnings("serial")
public class FunzionarioImpl extends FunzionarioBaseImpl { public class FunzionarioImpl extends FunzionarioBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a funzionario model instance
* * should use the {@link it.tref.portos.calendar.appointments.model.Funzionario} interface instead.
* Never reference this class directly. All methods that expect a funzionario model instance */
* should use the {@link it.tref.portos.calendar.appointments.model.Funzionario} interface public FunzionarioImpl() {}
* instead.
*/
public FunzionarioImpl() {}
public String getFullDescription() { @Override
return getNome() + StringPool.SPACE + getCognome(); public String getFullDescription() {
} return getNome() + StringPool.SPACE + getCognome();
}
} }

57
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/PrenotazioneImpl.java

@ -1,13 +1,9 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under the terms of the * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* GNU Lesser General Public License as published by the Free Software Foundation; either version * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* 2.1 of the License, or (at your option) any later version. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
* even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/ */
package it.tref.portos.calendar.appointments.model.impl; package it.tref.portos.calendar.appointments.model.impl;
@ -18,38 +14,27 @@ import org.apache.commons.lang.time.DateUtils;
/** /**
* The extended model implementation for the Prenotazione service. Represents a row in the * The extended model implementation for the Prenotazione service. Represents a row in the
* &quot;portos_calendar_appointments_Prenotazione&quot; database table, with each column mapped to * &quot;portos_calendar_appointments_Prenotazione&quot; database table, with each column mapped to a property of this
* a property of this class. * class.
*
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* rerun ServiceBuilder to copy their definitions into the * ServiceBuilder to copy their definitions into the {@link it.tref.portos.calendar.appointments.model.Prenotazione}
* {@link it.tref.portos.calendar.appointments.model.Prenotazione} interface. * interface.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
@SuppressWarnings("serial")
public class PrenotazioneImpl extends PrenotazioneBaseImpl { public class PrenotazioneImpl extends PrenotazioneBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a prenotazione model instance
* * should use the {@link it.tref.portos.calendar.appointments.model.Prenotazione} interface instead.
* Never reference this class directly. All methods that expect a prenotazione model instance */
* should use the {@link it.tref.portos.calendar.appointments.model.Prenotazione} interface public PrenotazioneImpl() {}
* instead.
*/
public PrenotazioneImpl() {}
public boolean isExpired(Date now) {
if (now.after(getStartDate())) {
return true;
}
if (DateUtils.isSameDay(now, getStartDate())) {
return true;
} @Override
public boolean isExpired(Date now) {
return false; return now.after(getStartDate()) || DateUtils.isSameDay(now, getStartDate());
} }
} }

36
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/ProfessionistaImpl.java

@ -1,34 +1,30 @@
/** /**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved. * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
* * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
* This library is free software; you can redistribute it and/or modify it under * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
* the terms of the GNU Lesser General Public License as published by the Free * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* Software Foundation; either version 2.1 of the License, or (at your option) * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/ */
package it.tref.portos.calendar.appointments.model.impl; package it.tref.portos.calendar.appointments.model.impl;
/** /**
* The extended model implementation for the Professionista service. Represents a row in the &quot;portos_calendar_appointments_Professionista&quot; database table, with each column mapped to a property of this class. * The extended model implementation for the Professionista service. Represents a row in the
* * &quot;portos_calendar_appointments_Professionista&quot; database table, with each column mapped to a property of this
* class.
* <p> * <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.portos.calendar.appointments.model.Professionista} 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.portos.calendar.appointments.model.Professionista}
* interface.
* </p> * </p>
* *
* @author 3F Consulting * @author 3F Consulting + Manifattura Web Group s.r.l.
*/ */
@SuppressWarnings("serial")
public class ProfessionistaImpl extends ProfessionistaBaseImpl { public class ProfessionistaImpl extends ProfessionistaBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a professionista model instance
* * should use the {@link it.tref.portos.calendar.appointments.model.Professionista} interface instead.
* Never reference this class directly. All methods that expect a professionista model instance should use the {@link it.tref.portos.calendar.appointments.model.Professionista} interface instead.
*/ */
public ProfessionistaImpl() { public ProfessionistaImpl() {}
}
} }

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_calendar_appointments build.namespace=portos_calendar_appointments
build.number=175 build.number=176
build.date=1631028919988 build.date=1631535776275
build.auto.upgrade=true build.auto.upgrade=true
## ##

59
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/cookies/action/StartUpAction.java

@ -33,10 +33,8 @@ public class StartUpAction extends SimpleAction {
for (String id : companyIds) { for (String id : companyIds) {
try { try {
long companyId = GetterUtil.getLong(id); long companyId = GetterUtil.getLong(id);
String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE }; String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE };
String[] guestActions = { ActionKeys.VIEW }; String[] guestActions = { ActionKeys.VIEW };
// Organization custom fields // Organization custom fields
addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId", addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId",
ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions); ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions);
@ -46,12 +44,10 @@ public class StartUpAction extends SimpleAction {
} }
} }
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type,
int type, boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException {
throws SystemException {
long classNameId = PortalUtil.getClassNameId(className); long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null; ExpandoTable expandoTable = null;
try { try {
expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
@ -60,65 +56,42 @@ public class StartUpAction extends SimpleAction {
try { try {
expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME); ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) { } catch (PortalException e1) {}
}
} }
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil
.getColumn(expandoTable.getTableId(), name);
if (expandoColumn == null) { if (expandoColumn == null) {
try { try {
expandoColumn = ExpandoColumnLocalServiceUtil expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type);
.addColumn(expandoTable.getTableId(), name, type);
} catch (PortalException e) { } catch (PortalException e) {}
}
} }
try { try {
if (indexed) { if (indexed) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE, typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE,
String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT)); String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties); expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
} }
if (hidden) { if (hidden) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1)); typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties); expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
} }
Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST); Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST);
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, roleGuest.getRoleId(), guestActions);
String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions); ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, rolePowerUser.getRoleId(), defaultActions);
String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions); ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL, roleUser.getRoleId(), defaultActions);
String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions); } catch (PortalException e) {}
} catch (PortalException e) {
}
return expandoColumn; return expandoColumn;
} }
} }

1
liferay-plugins-sdk-6.2/shared/portos-bo-shared/src/it/tref/liferay/portos/bo/shared/util/ConfigurazioneConstants.java

@ -16,7 +16,6 @@ public class ConfigurazioneConstants {
public static final String SCHEDULER_GENERA_DOCUMENTO = "conf.geniocivile.scheduler.generadocumento"; public static final String SCHEDULER_GENERA_DOCUMENTO = "conf.geniocivile.scheduler.generadocumento";
public static final String SCHEDULER_FIRMA_DOCUMENTO = "conf.geniocivile.scheduler.firmadocumento"; public static final String SCHEDULER_FIRMA_DOCUMENTO = "conf.geniocivile.scheduler.firmadocumento";
public static final String SCHEDULER_INVIO_DOCUMENTO = "conf.geniocivile.scheduler.inviodocumento"; public static final String SCHEDULER_INVIO_DOCUMENTO = "conf.geniocivile.scheduler.inviodocumento";
public static final String SCHEDULER_INVIO_DOCUMENTO_DAX = "conf.geniocivile.scheduler.inviodocumentodax";
public static final String PROTOCOLLAZIONE_SERVICE_URL = "conf.geniocivile.protocollazione.service.url"; public static final String PROTOCOLLAZIONE_SERVICE_URL = "conf.geniocivile.protocollazione.service.url";
public static final String PROTOCOLLAZIONE_SERVICE_EXPORT_URL = "conf.geniocivile.protocollazione.export.url"; public static final String PROTOCOLLAZIONE_SERVICE_EXPORT_URL = "conf.geniocivile.protocollazione.export.url";

Caricamento…
Annulla
Salva