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. 285
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/portlet/AccessoAttiBOPortlet.java
  28. 234
      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. 245
      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. 18
      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. 18
      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. 36
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java
  94. 47
      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"?>
<classpath>
<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">
<attributes>
<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-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/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">
<dependency-type>uses</dependency-type>
</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"?>
<!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">
<author>3F Consulting</author>
<author>3F Consulting + Manifattura Web Group s.r.l.</author>
<namespace>portos_atti</namespace>
<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.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiModel
* @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
public class RichiestaAccessoAttiClp extends BaseModelImpl<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}.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAtti
* @see it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl
* @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}.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see it.tref.liferay.portos.accesso.atti.service.http.RichiestaAccessoAttiServiceSoap
* @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}.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAtti
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
public class ClpSerializer {
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
* VM.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiLocalServiceUtil
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated
*/
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
* accessed from within the same VM.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiLocalService
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiLocalServiceBaseImpl
* @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}.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiLocalService
* @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
* credentials because this service can be accessed remotely.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiServiceUtil
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated
*/
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
* accessed remotely.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiService
* @see it.tref.liferay.portos.accesso.atti.service.base.RichiestaAccessoAttiServiceBaseImpl
* @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}.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiService
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
public class ClpMessageListener extends BaseMessageListener {
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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated
*/
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>
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiPersistenceImpl
* @see RichiestaAccessoAttiUtil
* @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>
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiPersistence
* @see RichiestaAccessoAttiPersistenceImpl
* @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}.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiImpl
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti
* @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.
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAtti
* @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.
*
* 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.
* 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
* 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.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>
* 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>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
@SuppressWarnings("serial")
public class RichiestaAccessoAttiImpl extends RichiestaAccessoAttiBaseImpl {
/*
* 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.
* 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.
*/
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}.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiImpl
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiModel

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

234
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.util.bridges.mvc.MVCPortlet;
/**
* Portlet implementation class AccessoAttiFEPortlet
*/
public class AccessoAttiFEPortlet extends MVCPortlet {
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;
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Date dataCheck = sdf.parse("01/01/2015");
boolean isNoCNSUser = ParamUtil.getBoolean(actionRequest, "isNoCNSUser");
String emailRicontatto = ParamUtil.getString(actionRequest, "emailRicontatto");
String numeroProgetto = ParamUtil.getString(actionRequest, "numeroProgetto");
Date dataVidimazione = ParamUtil.getDate(actionRequest, "dataVidimazione", sdf);
String qualitaPersona = ParamUtil.getString(actionRequest, "qualitaPersona");
String visione = ParamUtil.getString(actionRequest, "visione");
String copiaDettaglio = ParamUtil.getString(actionRequest, "copiaDett");
String motivazione = ParamUtil.getString(actionRequest, "motivazione");
boolean sanatoria = ParamUtil.getBoolean(actionRequest, "sanatoria");
if(numeroProgetto != null && !numeroProgetto.equalsIgnoreCase("")){
if(!dataVidimazione.before(dataCheck) && !sanatoria){
if (numeroProgetto != null && !numeroProgetto.equalsIgnoreCase("")) {
if (!dataVidimazione.before(dataCheck) && !sanatoria) {
IntPratica intPratica = IntPraticaLocalServiceUtil.findByNumeroProgetto(numeroProgetto);
if(intPratica != null){
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.createRichiestaAccessoAtti(
CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class.getName()));
if (intPratica != null) {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.createRichiestaAccessoAtti(CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class
.getName()));
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId();
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId());
richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId());
richiestaAccessoAtti.setGroupId(intPratica.getGroupId());
@ -81,202 +68,144 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
richiestaAccessoAtti.setMotivazioneRichiesta(motivazione);
richiestaAccessoAtti.setNumeroProgetto(numeroProgetto);
richiestaAccessoAtti.setSanatoria(sanatoria);
if(sanatoria){
if (sanatoria) {
Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf);
richiestaAccessoAtti.setDtSanatoria(dataSanatoria);
}
richiestaAccessoAtti.setTipologiaPersona(qualitaPersona);
if(visione.equalsIgnoreCase("copia")){
if (visione.equalsIgnoreCase("copia")) {
richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio);
}
richiestaAccessoAtti.setTipologiaRichiesta(visione);
richiestaAccessoAtti.setUserId(themeDisplay.getUserId());
richiestaAccessoAtti.setUserName(themeDisplay.getUser().getScreenName());
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
if(dataVidimazione.before(dataCheck) || sanatoria){
if(uploadRequest.getSize("allegatoPagamento") != 0){
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());
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){
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());
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
}
}
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(accessoAttiId);
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(accessoAttiId);
try {
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(richiesta.getRichiestaAccessoAttiId(),
richiesta.getIntPraticaId(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(),
richiesta.getCompanyId(), richiesta.getUserName());
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");
actionResponse.setRenderParameter("jspPage", "/html/accesso_atti_fe/richiesta-inviata-success.jsp");
} else {
SessionErrors.add(actionRequest, "atto-non-esistente");
}
} else {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.createRichiestaAccessoAtti(
CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class.getName()));
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.createRichiestaAccessoAtti(CounterLocalServiceUtil.increment(RichiestaAccessoAtti.class
.getName()));
accessoAttiId = richiestaAccessoAtti.getRichiestaAccessoAttiId();
richiestaAccessoAtti.setCompanyId(themeDisplay.getCompanyId());
// richiestaAccessoAtti.setIntPraticaId(intPratica.getIntPraticaId());
// richiestaAccessoAtti.setGroupId(intPratica.getGroupId());
// richiestaAccessoAtti.setTerritorioId(intPratica.getTerritorioId());
richiestaAccessoAtti.setCreateDate(new Date());
richiestaAccessoAtti.setEmailRicontatto(emailRicontatto);
richiestaAccessoAtti.setDtVidimazione(dataVidimazione);
richiestaAccessoAtti.setMotivazioneRichiesta(motivazione);
richiestaAccessoAtti.setNumeroProgetto(numeroProgetto);
richiestaAccessoAtti.setSanatoria(sanatoria);
if(sanatoria){
if (sanatoria) {
Date dataSanatoria = ParamUtil.getDate(actionRequest, "dataSanatoria", sdf);
richiestaAccessoAtti.setDtSanatoria(dataSanatoria);
}
richiestaAccessoAtti.setTipologiaPersona(qualitaPersona);
if(visione.equalsIgnoreCase("copia")){
if (visione.equalsIgnoreCase("copia")) {
richiestaAccessoAtti.setTipologiaRichiestaDettaglio(copiaDettaglio);
}
richiestaAccessoAtti.setTipologiaRichiesta(visione);
richiestaAccessoAtti.setUserId(themeDisplay.getUserId());
richiestaAccessoAtti.setUserName(themeDisplay.getUser().getScreenName());
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAtti);
UploadPortletRequest uploadRequest = PortalUtil.getUploadPortletRequest(actionRequest);
if(dataVidimazione.before(dataCheck) || sanatoria){
if(uploadRequest.getSize("allegatoPagamento") != 0){
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());
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){
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());
themeDisplay.getCompanyGroupId(), richiestaAccessoAtti.getRichiestaAccessoAttiId(),
sourceFileName, fileApp, false);
RichiestaAccessoAtti richiestaAccessoAttiUpdate = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAtti.getRichiestaAccessoAttiId());
richiestaAccessoAttiUpdate.setFileEntryIdDocumentoIdentita(fileEntryIdDocumento);
RichiestaAccessoAttiLocalServiceUtil.updateRichiestaAccessoAtti(richiestaAccessoAttiUpdate);
}
}
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(accessoAttiId);
RichiestaAccessoAtti richiesta = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(accessoAttiId);
try {
String protocollo = ProtocolloUtil.protocollaPartenzaAccessoAtti(richiesta.getRichiestaAccessoAttiId(),
richiesta.getIntPraticaId(), richiesta.getGroupId(), RichiestaAccessoAtti.class.getName(),
richiesta.getCompanyId(), richiesta.getUserName());
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");
actionResponse.setRenderParameter("jspPage", "/html/accesso_atti_fe/richiesta-inviata-success.jsp");
}
}
}
public void visualizzaAtto(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException {
actionResponse.setRenderParameter("tabs1", "Visualizza Atto");
actionRequest.setAttribute("tabs1", "Visualizza Atto");
String accessToken = ParamUtil.getString(actionRequest, "accessToken");
RichiestaAccessoAtti atto = RichiestaAccessoAttiLocalServiceUtil.findByAccessToken(accessToken);
if(atto != null){
if(atto.isAccettata()){
if (atto != null) {
if (atto.isAccettata()) {
Calendar calApp = Calendar.getInstance();
calApp.setTime(atto.getDtAccettazione());
calApp.add(Calendar.DATE, 7);
Date checkDate = calApp.getTime();
if(new Date().before(checkDate) ){
actionResponse.setRenderParameter("accessoAttiId", ""+atto.getRichiestaAccessoAttiId());
if (new Date().before(checkDate)) {
actionResponse.setRenderParameter("accessoAttiId", "" + atto.getRichiestaAccessoAttiId());
} else {
SessionErrors.add(actionRequest, "accesso-token-scaduto");
}
@ -286,56 +215,5 @@ public class AccessoAttiFEPortlet extends MVCPortlet {
} else {
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 void creaAccount(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException, ParseException, PortalException{
public void creaAccount(ActionRequest actionRequest, ActionResponse actionResponse) throws SystemException,
ParseException, PortalException {
ThemeDisplay themeDisplay = (ThemeDisplay) actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
String username = ParamUtil.getString(actionRequest, "codiceFiscale");
String password = ParamUtil.getString(actionRequest, "password");
String email = ParamUtil.getString(actionRequest, "indirizzoEmail");
String nome = ParamUtil.getString(actionRequest, "nome");
String cognome = ParamUtil.getString(actionRequest, "cognome");
String dataNascita = ParamUtil.getString(actionRequest, "dataNascita");
if(username != null){
User checkUser = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(), username.toLowerCase());
if(checkUser == null){
if (username != null) {
User checkUser = UserLocalServiceUtil.fetchUserByScreenName(themeDisplay.getCompanyId(),
username.toLowerCase());
if (checkUser == null) {
Date dateOfBirthday = sdf.parse(dataNascita);
Calendar cal = Calendar.getInstance();
cal.setTime(dateOfBirthday);
int birthdayMonth = cal.get(Calendar.MONTH);
int birthdayDay = cal.get(Calendar.DAY_OF_MONTH);;
int birthdayYear = cal.get(Calendar.YEAR);;
int birthdayDay = cal.get(Calendar.DAY_OF_MONTH);
;
int birthdayYear = cal.get(Calendar.YEAR);
;
long creatorUserId = 0;
long facebookId = 0;
int prefixId = 0;
int suffixId = 0;
long groupIds[] = new long[0];
long organizationIds[] = new long[0];
long roleIds[] = new long[0];
long userGroupIds[] = new long[0];
boolean autoPassword = false;
boolean autoScreenName = false;
boolean male = true;
boolean sendEmail = true;
String password1 = password;
String password2 = password;
String screenName = username;
String openId = null;
String middleName = null;
String jobTitle = null;
Date now = new Date();
Locale locale = themeDisplay.getLocale();
ServiceContext serviceContext = new ServiceContext();
User user = UserLocalServiceUtil.addUser(creatorUserId, themeDisplay.getCompanyId(), autoPassword, password1, password2,
autoScreenName, screenName, email, facebookId, openId, locale, nome, middleName, cognome, prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, groupIds, organizationIds, roleIds, userGroupIds, sendEmail, serviceContext);
User user = UserLocalServiceUtil.addUser(creatorUserId, themeDisplay.getCompanyId(), autoPassword,
password1, password2, autoScreenName, screenName, email, facebookId, openId, locale, nome,
middleName, cognome, prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
jobTitle, groupIds, organizationIds, roleIds, userGroupIds, sendEmail, serviceContext);
long userId = user.getUserId();
User userCreated = UserLocalServiceUtil.getUser(userId);
userCreated.setLoginDate(now);
userCreated.setLoginIP("127.0.0.1");
userCreated.setLastLoginDate(now);
userCreated.setModifiedDate(now);
Role roleUserNoCNS = RoleLocalServiceUtil.getRole(themeDisplay.getCompanyId(), "UTENTE_NO_CNS");
UserLocalServiceUtil.addRoleUser(roleUserNoCNS.getRoleId(), userId);
UserLocalServiceUtil.updateAgreedToTermsOfUse(userId, true);
UserLocalServiceUtil.updateEmailAddressVerified(userId, true);
UserLocalServiceUtil.updatePasswordReset(userId, false);
} else {
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}.
* </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.RichiestaAccessoAttiLocalServiceUtil
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated
*/
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}.
* </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.RichiestaAccessoAttiServiceUtil
* @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;
/**
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @generated
*/
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.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiServiceHttp
* @see it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAttiSoap
* @see it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiServiceUtil

245
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.
*
* 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.
* 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
* 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.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.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.Property;
import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Organization;
import com.liferay.portal.service.OrganizationLocalServiceUtil;
/**
* The implementation of the richiesta accesso atti local service.
*
* <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>
* 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>
*
* @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.RichiestaAccessoAttiLocalServiceUtil
*/
public class RichiestaAccessoAttiLocalServiceImpl
extends RichiestaAccessoAttiLocalServiceBaseImpl {
public class RichiestaAccessoAttiLocalServiceImpl extends RichiestaAccessoAttiLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil} to access the richiesta accesso atti local service.
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.accesso.atti.service.RichiestaAccessoAttiLocalServiceUtil} to access the richiesta accesso
* atti local service.
*/
public List<RichiestaAccessoAtti> findByGestita(boolean gestita, int start, int end) throws SystemException{
return richiestaAccessoAttiPersistence.findByGestita(gestita, start, end);
}
private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
public List<RichiestaAccessoAtti> findCompletate(String numeroProgetto, String protocollo, String dataDal, String dataAl, int start, int end) throws SystemException, ParseException{
@Override
public List<RichiestaAccessoAtti> findByGestita(boolean gestita, int start, int end) throws SystemException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", true));
if(!numeroProgetto.equals("")){
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
}
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("")){
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));
return richiestaAccessoAttiPersistence.findByGestita(gestita, start, end);
}
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));
@SuppressWarnings("unchecked")
@Override
public List<RichiestaAccessoAtti> findCompletate(String numeroProgetto, String protocollo, String dataDal,
String dataAl, int start, int end) throws SystemException {
return dynamicQuery(dqCompletate(numeroProgetto, protocollo, dataDal, dataAl), start, end);
}
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));
}
@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));
if(!numeroProgetto.equals("")){
if (Validator.isNotNull(numeroProgetto)) {
dq.add(RestrictionsFactoryUtil.eq("numeroProgetto", numeroProgetto));
}
if(!protocollo.equals("")){
if (Validator.isNotNull(protocollo)) {
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("")){
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));
dq.add(PropertyFactoryUtil.forName("dtAccettazione").between(parseStartDate(dataDal), parseEndDate(dataAl)));
return dq;
}
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));
@Override
public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException {
DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("accessToken", accessToken));
@SuppressWarnings("unchecked")
List<RichiestaAccessoAtti> lista = dynamicQuery(dq);
return lista == null || lista.isEmpty() ? null : lista.get(0);
}
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));
@SuppressWarnings("unchecked")
@Override
public List<RichiestaAccessoAtti> findRichiesteByGroup(long userId, int start, int end) throws SystemException {
List<Long> groupIds = new ArrayList<>();
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId);
if (Validator.isNull(organizationList)) {
for (Organization organization : organizationList) {
groupIds.add(organization.getGroupId());
}
List<RichiestaAccessoAtti> lista = richiestaAccessoAttiLocalService.dynamicQuery(dq);
return lista.size();
}
public RichiestaAccessoAtti findByAccessToken(String accessToken) throws SystemException{
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("accessToken", accessToken));
List<RichiestaAccessoAtti> lista = richiestaAccessoAttiLocalService.dynamicQuery(dq);
if(lista != null && !lista.isEmpty()){
return lista.get(0);
DynamicQuery dq = dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", false));
if (!groupIds.isEmpty()) {
dq.add(RestrictionsFactoryUtil.in("groupId", groupIds));
}
return null;
return dynamicQuery(dq, start, end);
}
public List<RichiestaAccessoAtti> findRichiesteByGroup(long userId, int start, int end) throws SystemException{
List<Long> listaLong = new ArrayList<Long>();
private static Date parseEndDate(String input) {
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId);
if(organizationList != null && !organizationList.isEmpty()){
for (Organization organization : organizationList) {
listaLong.add(organization.getGroupId());
}
return parseDate(input, false);
}
listaLong.add(0L);
private static Date parseStartDate(String input) {
DynamicQuery dq = richiestaAccessoAttiLocalService.dynamicQuery();
dq.add(RestrictionsFactoryUtil.eq("gestita", false));
dq.add(RestrictionsFactoryUtil.in("groupId", listaLong));
return parseDate(input, true);
}
return richiestaAccessoAttiLocalService.dynamicQuery(dq, start, end);
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.
*
* 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.
* 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
* 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.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.
*
* <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>
* 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>
*
* @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.RichiestaAccessoAttiServiceUtil
*/
public class RichiestaAccessoAttiServiceImpl
extends RichiestaAccessoAttiServiceBaseImpl {
public class RichiestaAccessoAttiServiceImpl extends RichiestaAccessoAttiServiceBaseImpl {
/*
* 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 remote service.
* 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
* 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>
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
* @see RichiestaAccessoAttiPersistence
* @see RichiestaAccessoAttiUtil
* @generated

18
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);
public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId){
public static String generateAccessToken(long richiestaAccessoAttiId, String numeroProgetto, long richiedenteUserId) {
StringBuffer sb = new StringBuffer();
try {
String concatString = String.valueOf(richiestaAccessoAttiId) + StringPool.UNDERLINE +
numeroProgetto + StringPool.UNDERLINE + richiedenteUserId;
String concatString = String.valueOf(richiestaAccessoAttiId) + StringPool.UNDERLINE + numeroProgetto
+ StringPool.UNDERLINE + richiedenteUserId;
MessageDigest md = MessageDigest.getInstance("MD5");
md.update(concatString.getBytes());
byte byteData[] = md.digest();
for (int i = 0; i < byteData.length; i++) {
sb.append(Integer.toString((byteData[i] & 0xff) + 0x100, 16).substring(1));
}
} catch (NoSuchAlgorithmException e) {
_log.error(e,e);
_log.error(e, e);
}
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.repository.model.FileEntry;
import com.liferay.portal.kernel.util.FileUtil;
import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portlet.documentlibrary.model.DLFolder;
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 DOCUMENTO_CODEC_FILENAME = "DOCUMENTO_";
public static long saveFileEntryAccessoAtti(long companyGroupId, long richiestaAccessoAttiId, String originFileName,
File file, boolean pagamento) {
public static long saveFileEntryAccessoAtti(long companyGroupId, long richiestaAccessoAttiId,
String originFileName, File file, boolean pagamento) {
long fileEntryId = 0L;
try {
DLFolder folder = getRichiestaAttiFolder(companyGroupId);
if(folder != null){
RichiestaAccessoAtti richiestaAccessoAtti =
RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
if (folder != null) {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
ServiceContext serviceContext = new ServiceContext();
serviceContext.setCompanyId(richiestaAccessoAtti.getCompanyId());
serviceContext.setUserId(richiestaAccessoAtti.getUserId());
String mineType = FileUtil.getExtension(originFileName);
String prefixedFileName = "";
if(pagamento){
prefixedFileName = PAGAMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType;
String prefixedFileName = StringPool.BLANK;
if (pagamento) {
prefixedFileName = PAGAMENTO_CODEC_FILENAME + richiestaAccessoAttiId + StringPool.PERIOD
+ mineType;
} else {
prefixedFileName = DOCUMENTO_CODEC_FILENAME + richiestaAccessoAttiId + "." + mineType;
prefixedFileName = DOCUMENTO_CODEC_FILENAME + richiestaAccessoAttiId + StringPool.PERIOD
+ mineType;
}
FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(
richiestaAccessoAtti.getUserId(), folder.getRepositoryId(), folder.getFolderId(),
prefixedFileName, mineType, prefixedFileName, "", "", file, serviceContext);
FileEntry fileEntry = DLAppLocalServiceUtil.addFileEntry(richiestaAccessoAtti.getUserId(),
folder.getRepositoryId(), folder.getFolderId(), prefixedFileName, mineType,
prefixedFileName, StringPool.BLANK, StringPool.BLANK, file, serviceContext);
fileEntryId = fileEntry.getFileEntryId();
}
}
} catch (PortalException | SystemException e) {
_log.error(e,e);
_log.error(e, e);
}
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);
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 {
// private static final Log _log = LogFactoryUtil.getLog(EmailSenderUtil.class);
public static void sendAcceptedEmail(long richiestaAccessoAttiId, String testoAggiuntivo) throws SystemException, AddressException{
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
public static void sendAcceptedEmail(long richiestaAccessoAttiId, String testoAggiuntivo) throws SystemException,
AddressException {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Notifica Accettazione Richiesta Accesso Atti");
mailMessage.setBody(creaCorpoMailRichiestaAccettata(richiestaAccessoAtti,testoAggiuntivo));
mailMessage.setBody(creaCorpoMailRichiestaAccettata(richiestaAccessoAtti, testoAggiuntivo));
mailMessage.setHTMLFormat(true);
/*
* Invio email
*/
MailServiceUtil.sendEmail(mailMessage);
}
}
public static void sendDeniedEmail(long richiestaAccessoAttiId, String motivoRifiuto) throws SystemException, AddressException{
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
public static void sendDeniedEmail(long richiestaAccessoAttiId, String motivoRifiuto) throws SystemException,
AddressException {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Notifica Rifiuto Richiesta Accesso Atti");
mailMessage.setBody(creaCorpoMailRichiestaRifiutata(richiestaAccessoAtti, motivoRifiuto));
mailMessage.setHTMLFormat(true);
/*
* Invio email
*/
MailServiceUtil.sendEmail(mailMessage);
}
}
public static void sendAcceptedRequest(long richiestaAccessoAttiId) throws SystemException, AddressException{
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if(richiestaAccessoAtti != null){
public static void sendAcceptedRequest(long richiestaAccessoAttiId) throws SystemException, AddressException {
RichiestaAccessoAtti richiestaAccessoAtti = RichiestaAccessoAttiLocalServiceUtil
.fetchRichiestaAccessoAtti(richiestaAccessoAttiId);
if (richiestaAccessoAtti != null) {
InternetAddress toAddress = new InternetAddress(richiestaAccessoAtti.getEmailRicontatto());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Notifica Presa In Carico Richiesta");
mailMessage.setBody(creaCorpoMailRichiestaInCarico(richiestaAccessoAtti));
mailMessage.setHTMLFormat(true);
/*
* Invio email
*/
MailServiceUtil.sendEmail(mailMessage);
}
}
private static String creaCorpoMailRichiestaInCarico(RichiestaAccessoAtti richiestaAccessoAtti){
private static String creaCorpoMailRichiestaInCarico(RichiestaAccessoAtti richiestaAccessoAtti) {
StringBuilder sb = new StringBuilder();
/*
* Gestione header
*/
sb.append("<html><head><title>Notifica Presa In Carico Richiesta</title></head><body>");
sb.append("<div style='width:100%;'>");
sb.append("Salve ,");
sb.append("</div>");
sb.append("<br/>");
sb.append("<div style='width:100%;'>");
sb.append("con la seguente email le comunichiamo che la sua richiesta n. ");
sb.append(richiestaAccessoAtti.getProtocolloEntrata());
sb.append(" di accedere all'atto numero ");
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("<br/>");
sb.append("<br/>");
return sb.toString();
}
private static String creaCorpoMailRichiestaAccettata(RichiestaAccessoAtti richiestaAccessoAtti, String testoExtra){
private static String creaCorpoMailRichiestaAccettata(RichiestaAccessoAtti richiestaAccessoAtti, String testoExtra) {
StringBuilder sb = new StringBuilder();
/*
* Gestione header
*/
sb.append("<html><head><title>Notifica Accettazione Richiesta Accesso Atti</title></head><body>");
sb.append("<div style='width:100%;'>");
sb.append("Salve ,");
sb.append("</div>");
sb.append("<br/>");
sb.append("<div style='width:100%;'>");
sb.append("con la seguente email le comunichiamo che la sua richiesta n. ");
sb.append(richiestaAccessoAtti.getProtocolloUscita());
sb.append(" di accedere all'atto numero ");
sb.append(richiestaAccessoAtti.getNumeroProgetto());
sb.append(" è stata accettata.");
sb.append("<br/>");
sb.append("<div style='width:100%;'>");
sb.append("Il suo codice di accesso al fascicolo è il seguente: <strong>");
sb.append(richiestaAccessoAtti.getAccessToken());
sb.append("</strong>");
sb.append("</div>");
sb.append("<br/>");
sb.append("<div style='width:100%;'>");
sb.append(testoExtra);
sb.append("</div>");
sb.append("<br/>");
sb.append("<div style='width:100%;'>");
sb.append("Le ricordiamo che l'accesso avrà una validità di 7 giorni.");
sb.append("</div>");
sb.append("<br/>");
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();
/*
* Gestione header
*/
sb.append("<html><head><title>Notifica Rifiuto Richiesta Accesso Atti</title></head><body>");
sb.append("<div style='width:100%;'>");
sb.append("Salve ,");
sb.append("</div>");
sb.append("<br/>");
sb.append("<div style='width:100%;'>");
sb.append("con la seguente email le comunichiamo che la sua richiesta n. ");
sb.append(richiestaAccessoAtti.getProtocolloUscita());
@ -189,10 +133,6 @@ public class EmailSenderUtil {
sb.append(" è stata rifiutata per la seguente motivazione: ");
sb.append(motivoRifiuto);
sb.append("<br/>");
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.number=26
build.date=1618410701755
build.number=28
build.date=1631536170835
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 name="category.hidden">
<portlet id="9"></portlet>
<portlet id="10"></portlet>
<portlet id="12"></portlet>
<portlet id="portos-administration"></portlet>
</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_6FB931F2=portos_bo_Avviso.Uuid
IX_D6B686F6=portos_bo_Avviso.Uuid_C
IX_C5DCD1F4=portos_bo_Avviso.oldAvvisoId
IX_FB1AC8BA=portos_bo_Collaudo.C_G_Protocollo
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_C5A53931=portos_bo_Collaudo.IntPraticaId_Completata
IX_28168019=portos_bo_Collaudo.IntPraticaId_Parziale
IX_729BECA2=portos_bo_Collaudo.OldDettPraticaId
IX_9BEECB8=portos_bo_Collaudo.Protocollo
IX_785A57DF=portos_bo_Collaudo.UUID_G
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_1965DA50=portos_bo_DettPratica.IntPraticaId_TipoIntegrazione
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_9C3D47F5=portos_bo_DettPratica.UUID_G
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_43985B2D=portos_bo_DocAggiuntiva.Uuid
IX_6AE4DADB=portos_bo_DocAggiuntiva.Uuid_C
IX_38675D05=portos_bo_DocAggiuntiva.oldFileEntryId
IX_AD796CAB=portos_bo_DocPratica.ClassPk
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_B2F1210A=portos_bo_DocPratica.IntPratica
IX_92384F0E=portos_bo_DocPratica.IntPratica_Tipologia
IX_ACD23DB4=portos_bo_DocPratica.OldDocPratica
IX_85C3693E=portos_bo_DocPratica.Status
IX_AEBE9E5A=portos_bo_DocPratica.Status_InTipologia
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_82B6086D=portos_bo_FineLavori.IntPraticaId_Parziale
IX_2CE13543=portos_bo_FineLavori.IntPraticaId_Parziale_Completata
IX_FC4D43F6=portos_bo_FineLavori.OldDettPraticaId
IX_ABC9530C=portos_bo_FineLavori.Protocollo
IX_A7617433=portos_bo_FineLavori.UUID_G
IX_1DE1B257=portos_bo_FineLavori.Uuid
@ -145,21 +138,8 @@ IX_1B544571=portos_bo_FineLavori.Uuid_C
IX_588E9EC9=portos_bo_HistoryWorkflowAction.IntPratica
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_E75F8D41=portos_bo_IntPratica.C_UserId
IX_5690AE94=portos_bo_IntPratica.OldIntPraticaId
IX_779B836B=portos_bo_IntPratica.P
IX_4736A755=portos_bo_IntPratica.TerritorioId
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_434F524C=portos_bo_Pagamento.Mezzo_Utilizzata_CreateDate
IX_BE4330DB=portos_bo_Pagamento.Mezzo_Utilizzata_EmailPending_CreateDate
IX_B598AAE2=portos_bo_Pagamento.OldPagamentoId
IX_D00BAF2A=portos_bo_Pagamento.UUID_G
IX_8815F580=portos_bo_Pagamento.Uuid
IX_C25B9EA8=portos_bo_Pagamento.Uuid_C
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_EFB6D6FA=portos_bo_ParereGeo.IntPraticaId
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_24A66C6C=portos_bo_ParereGeo.Uuid
IX_A5C9DC3C=portos_bo_ParereGeo.Uuid_C
IX_360E605D=portos_bo_Provincia.C_C
IX_9F8E6530=portos_bo_Provincia.C_P
IX_BDDB41C9=portos_bo_Provincia.C_S
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_B54B3A90=portos_bo_Soggetto.Uuid
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_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_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_25AB073A=portos_bo_Territorio.Fascia
IX_55652F27=portos_bo_Territorio.Group
IX_1193CE54=portos_bo_Territorio.OldTerritorioId
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_B1C0C700 on portos_bo_Avviso (intPraticaId, inviato);
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_6FB931F2 on portos_bo_Avviso (uuid_);
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_C5A53931 on portos_bo_Collaudo (intPraticaId, completata);
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_D4A5BD2B on portos_bo_Collaudo (uuid_);
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_1965DA50 on portos_bo_DettPratica (intPraticaId, tipoIntegrazione);
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_4EE3C55 on portos_bo_DettPratica (uuid_);
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_F81FFD19 on portos_bo_DocAggiuntiva (intPraticaId);
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_6AE4DADB on portos_bo_DocAggiuntiva (uuid_, companyId);
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_B2F1210A on portos_bo_DocPratica (intPraticaId);
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_AEBE9E5A on portos_bo_DocPratica (status, tipologia);
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_82B6086D on portos_bo_FineLavori (intPraticaId, parziale);
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_1DE1B257 on portos_bo_FineLavori (uuid_);
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_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_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_4736A755 on portos_bo_IntPratica (territorioId);
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_434F524C on portos_bo_Pagamento (mezzo, utilizzata, 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_C25B9EA8 on portos_bo_Pagamento (uuid_, companyId);
create unique index IX_D00BAF2A on portos_bo_Pagamento (uuid_, 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_EFB6D6FA on portos_bo_ParereGeo (intPraticaId);
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_A5C9DC3C on portos_bo_ParereGeo (uuid_, companyId);
create unique index IX_635441BE on portos_bo_ParereGeo (uuid_, groupId);
create index IX_A81834CD on portos_bo_Provincia (companyId);
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 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_4CB6678E on portos_bo_Soggetto (intPraticaId, tipologiaSoggetto, dettPraticaIdRimozione);
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_AF4341E6 on portos_bo_Soggetto (userId, codiceFiscale);
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 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_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_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 index IX_25AB073A on portos_bo_Territorio (fascia);
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);

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
);
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 (
uuid_ VARCHAR(75) null,
intPraticaId LONG not null primary key,
@ -715,39 +687,6 @@ create table portos_bo_Soggetto (
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 (
storicoSoggettoPraticaId LONG not null primary key,
companyId LONG,
@ -762,24 +701,6 @@ create table portos_bo_StoricoSoggettoPratica (
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 (
territorioId LONG not null primary key,
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_integrazioni= Integrazioni
cat_fine_lavori= Fine Lavori
cat_collaudi= Collaudi
cat_comunicazioni= Comunicazioni
cat_varianti= Varianti
page_riepilogo = Riepilogo
@ -112,7 +110,6 @@ conf.geniocivile.scheduler.versioning = Schedulazione Versionamento
conf.geniocivile.scheduler.generadocumento = Schedulazione Generazione Documenti
conf.geniocivile.scheduler.firmadocumento = Schedulazione Firma Documenti
conf.geniocivile.scheduler.inviodocumento = Schedulazione Invio Documenti
conf.geniocivile.scheduler.inviodocumentodax = Schedulazione Invio Documenti Dax
#Configurazione labels
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
##SEZIONE GEOLOGICA
geo-nota = <div>Avviso</div>La possibilità di selezionare il campo “Non applicabile” scaturisce dall’attuale non corrispondenza \
all’interno della vigente normativa della Regione Siciliana delle modalità di numerazione riportate nei campi \
numerati, pertanto la mancata applicazione non costituisce nessuna valutazione di merito da 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.
geo-nota = <div>Avviso</div>La possibilità di selezionare il campo “Non applicabile” scaturisce dall’attuale non \
corrispondenza all’interno della vigente normativa della Regione Siciliana delle modalità di numerazione \
riportate nei campi numerati, pertanto la mancata applicazione non costituisce nessuna valutazione di merito da \
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.
geo = DATI GEOLOGICI
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-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-No = No
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-No = No
@ -825,9 +829,11 @@ fl-acciaio = Acciaio (D.M. 14.01.2008 - punto 11.3.2. 10.4)
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.
#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-ulteriore-documentazione = Si allega ulteriore documentazioneutile alla dichiarazione di conformità delle opere realizzate.
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-ulteriore-documentazione = Si allega ulteriore documentazioneutile alla dichiarazione di conformità delle opere \
realizzate.
##RICERCA PRATICHE
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 {
document.addKeyword(PortosIndexField.STATUS_DATE, 0);
}
List<ParereGeologo> listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(
controlloPraticaFromDB.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<Long> idGeologi = new ArrayList<Long>();
for(ParereGeologo geo : listaParereGeologo){
idGeologi.add(geo.getGeologoUserId());
}
if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 1L);
} else {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 0L);
}
document.addNumber(PortosIndexField.GEOLOGI, idGeologi.toArray(new Long[0]));
document.addKeyword(PortosIndexField.DATA_INIZIO_PROCEDIMENTO,
DATE_FORMAT.format(controlloPraticaFromDB.getCreateDate()));
@ -160,7 +156,6 @@ public class ControlloPraticaIndexer extends BaseIndexer {
}else{
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L);
}
if (intPratica.getUserId() != 0L) {
User proprietarioDigitale = UserLocalServiceUtil.fetchUser(intPratica.getUserId());
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.addKeyword("controlloObbligatorio", intPraticaFromDB.isControlloObbligatorio());
// Gestione pratica aperta/chiusa fine lavori
if (intPraticaFromDB.getCollaudoTotale()) {
@ -193,18 +192,17 @@ public class IntPraticaIndexer extends BaseIndexer {
document.addKeyword(PortosIndexField.ISTRUTTORE_USERNAME,
UserLocalServiceUtil.getUser(intPraticaFromDB.getStatusByUserId()).getScreenName()
.toUpperCase());
}
if (intPratica.getStatusByUserId() != 0L) {
User userIstruttore = UserLocalServiceUtil.fetchUser(intPratica.getStatusByUserId());
if (userIstruttore != null) {
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);
else
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L);
}else{
} else {
document.addKeyword(PortosIndexField.ASSEGNATA_AD_ISTRUTTORE, 0L);
}
@ -259,20 +257,16 @@ public class IntPraticaIndexer extends BaseIndexer {
// Gestione Parere Geologo
List<ParereGeologo> listaParereGeologo = ParereGeologoLocalServiceUtil.findByIntPraticaId(
intPratica.getIntPraticaId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<Long> idGeologi = new ArrayList<Long>();
for(ParereGeologo geo : listaParereGeologo){
for (ParereGeologo geo : listaParereGeologo) {
idGeologi.add(geo.getGeologoUserId());
}
document.addNumber(PortosIndexField.GEOLOGI, idGeologi.toArray(new Long[0]));
if (Validator.isNotNull(listaParereGeologo) && !listaParereGeologo.isEmpty()) {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 1L);
} else {
document.addKeyword(PortosIndexField.PARERE_GEOLOGO, 0L);
}
// Gestione pratica sospesa
document.addKeyword(PortosIndexField.STATUS_SOSPESA, intPraticaFromDB.isSospesa());
// 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.
*
* 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.
* 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
* 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.bo.model.impl;
@ -20,10 +14,11 @@ import it.tref.liferay.portos.bo.model.AllegatoManuale;
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>
* 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>
*
* @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
* @generated
*/
public abstract class AllegatoManualeBaseImpl extends AllegatoManualeModelImpl
implements AllegatoManuale {
public abstract class AllegatoManualeBaseImpl extends AllegatoManualeModelImpl implements AllegatoManuale {
/*
* 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.
* 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.
*/
@Override
public void persist() throws SystemException {
if (this.isNew()) {
AllegatoManualeLocalServiceUtil.addAllegatoManuale(this);
}
else {
} else {
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_AllegatoManuale&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* instance should use the {@link it.tref.liferay.portos.bo.model.AllegatoManuale} interface instead.
*/
public AllegatoManualeImpl() {
}
public AllegatoManualeImpl() {}
}

18
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_Asseverazione&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* should use the {@link it.tref.liferay.portos.bo.model.Asseverazione} interface instead.
*/
public AsseverazioneImpl() {
}
public AsseverazioneImpl() {}
@Override
public Map<String, Serializable> getDichiarazioniMap() {

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.
*
* 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.
* 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
* 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.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;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Collaudo} interface.
@ -41,14 +36,10 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial")
public class CollaudoImpl extends CollaudoBaseImpl {
/*
* 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.
* 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.
*/
public CollaudoImpl() {
}
public CollaudoImpl() {}
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.
*
* 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.
* 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
* 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.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;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comune} interface.
@ -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
* 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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_Comunicazione&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Comunicazione} interface.
@ -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
* 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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_Configurazione&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Configurazione} interface.
@ -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
* 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.
*
* 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.
* 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
* 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.bo.model.impl;
import it.tref.liferay.portos.bo.service.IntPraticaLocalServiceUtil;
import com.liferay.portal.kernel.exception.PortalException;
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
* &quot;portos_bo_ControlloPratica&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface.
@ -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
* instance should use the {@link it.tref.liferay.portos.bo.model.ControlloPratica} interface instead.
*/
public ControlloPraticaImpl() {
}
public ControlloPraticaImpl() {}
@Override
public int getUnitaOperativa() {
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.
*
* 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.
* 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
* 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.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;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Delega} interface.
@ -35,14 +28,10 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial")
public class DelegaImpl extends DelegaBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a delega
* model instance should use the {@link
* it.tref.liferay.portos.bo.model.Delega} interface instead.
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a delega model instance should
* use the {@link it.tref.liferay.portos.bo.model.Delega} interface instead.
*/
public DelegaImpl() {
}
public DelegaImpl() {}
@Override
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_DocAggiuntiva&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* should use the {@link it.tref.liferay.portos.bo.model.DocAggiuntiva} interface instead.
*/
public DocAggiuntivaImpl() {
}
public DocAggiuntivaImpl() {}
@Override
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_DocPratica&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* should use the {@link it.tref.liferay.portos.bo.model.DocPratica} interface instead.
*/
public DocPraticaImpl() {
}
public DocPraticaImpl() {}
@Override
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
@ -41,17 +36,13 @@ import com.liferay.portal.kernel.util.Validator;
@SuppressWarnings("serial")
public class FineLavoriImpl extends FineLavoriBaseImpl {
/*
* 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.
* 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.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() {
}
public FineLavoriImpl() {}
@Override
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_HistoryWorkflowAction&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* 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.
*
* 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.
* 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
* 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.bo.model.impl;
@ -25,14 +21,11 @@ import com.liferay.portlet.documentlibrary.service.DLAppLocalServiceUtil;
import com.liferay.portlet.documentlibrary.util.DLUtil;
/**
* The extended model implementation for the Pagamento service. Represents a row
* in the &quot;portos_bo_Pagamento&quot; database table, with each column
* mapped to a property of this class.
*
* The extended model implementation for the Pagamento service. Represents a row in the &quot;portos_bo_Pagamento&quot;
* database table, with each column mapped to a property of this class.
* <p>
* Helper methods and all application logic should be put in this class.
* Whenever methods are added, rerun ServiceBuilder to copy their definitions
* into the {@link it.tref.liferay.portos.bo.model.Pagamento} interface.
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Pagamento} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l.
@ -40,14 +33,10 @@ import com.liferay.portlet.documentlibrary.util.DLUtil;
@SuppressWarnings("serial")
public class PagamentoImpl extends PagamentoBaseImpl {
/*
* 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.
* 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.
*/
public PagamentoImpl() {
}
public PagamentoImpl() {}
@Override
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_ParereGeologo&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* 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.
*
* 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.
* 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
* 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.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;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* 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.
*
* 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.
* 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
* 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.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;
* database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.Soggetto} interface.
@ -36,8 +31,7 @@ public class SoggettoImpl extends SoggettoBaseImpl {
*/
private static final String SEP = " - ";
public SoggettoImpl() {
}
public SoggettoImpl() {}
@Override
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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_StoricoSoggettoPratica&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* 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.
*
* 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.
* 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
* 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.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
* &quot;portos_bo_Territorio&quot; database table, with each column mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.model.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
* should use the {@link it.tref.liferay.portos.bo.model.Territorio} interface instead.
*/
public TerritorioImpl() {
}
public TerritorioImpl() {}
@Override
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) {
_log.error(e, e);
}
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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -41,11 +37,9 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException;
/**
* The implementation of the allegato manuale local service.
*
* <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.bo.service.AllegatoManualeLocalService} interface.
*
* <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.
@ -57,9 +51,7 @@ import com.liferay.portlet.documentlibrary.NoSuchFolderException;
*/
public class AllegatoManualeLocalServiceImpl extends AllegatoManualeLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link
* NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -28,11 +24,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the asseverazione remote service.
*
* <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.bo.service.AsseverazioneService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -45,11 +41,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the comune local service.
*
* <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.bo.service.ComuneLocalService} interface.
*
* <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.
@ -281,8 +275,8 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
List<Organization> organizationList = OrganizationLocalServiceUtil.getUserOrganizations(userId);
if (Validator.isNotNull(organizationList)) {
for (Organization org : organizationList) {
List<Territorio> territori = territorioLocalService.getTerritori(org.getCompanyId(),
org.getGroupId(), QueryUtil.ALL_POS, QueryUtil.ALL_POS);
List<Territorio> territori = territorioLocalService.getTerritori(org.getCompanyId(), org.getGroupId(),
QueryUtil.ALL_POS, QueryUtil.ALL_POS);
if (Validator.isNotNull(territori)) {
for (Territorio terr : territori) {
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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -21,11 +17,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the comunicazione remote service.
*
* <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.bo.service.ComunicazioneService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -27,11 +23,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the configurazione local service.
*
* <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.bo.service.ConfigurazioneLocalService} interface.
*
* <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.
@ -80,8 +74,7 @@ public class ConfigurazioneLocalServiceImpl extends ConfigurazioneLocalServiceBa
Configurazione configurazione = null;
try {
configurazione = configurazionePersistence.findByC_Chiave(serviceContext.getCompanyId(), chiave);
} catch (NoSuchConfigurazioneException e) {
}
} catch (NoSuchConfigurazioneException e) {}
if (configurazione == null) {
configurazione = createConfigurazione(counterLocalService.increment(Configurazione.class.getName()));
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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -16,11 +12,9 @@ import it.tref.liferay.portos.bo.service.base.ControlloPraticaServiceBaseImpl;
/**
* The implementation of the controllo pratica remote service.
*
* <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.bo.service.ControlloPraticaService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -33,11 +29,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the dett pratica remote service.
*
* <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.bo.service.DettPraticaService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -24,11 +20,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the doc pratica remote service.
*
* <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.bo.service.DocPraticaService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -25,11 +21,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the fine lavori remote service.
*
* <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.bo.service.FineLavoriService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.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.
*
* <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.bo.service.HistoryWorkflowActionService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -30,11 +26,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the int pratica remote service.
*
* <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.bo.service.IntPraticaService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -29,11 +25,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the pagamento remote service.
*
* <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.bo.service.PagamentoService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -27,11 +23,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the parere geologo remote service.
*
* <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.bo.service.ParereGeologoService} interface.
*
* <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.
@ -54,7 +48,8 @@ public class ParereGeologoServiceImpl extends ParereGeologoServiceBaseImpl {
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId);
Territorio territorio = territorioLocalService.getTerritorio(intPratica.getTerritorioId());
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

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -38,11 +34,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the provincia local service.
*
* <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.bo.service.ProvinciaLocalService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -16,11 +12,9 @@ import it.tref.liferay.portos.bo.service.base.ProvinciaServiceBaseImpl;
/**
* The implementation of the provincia remote service.
*
* <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.bo.service.ProvinciaService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -26,11 +22,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the soggetto remote service.
*
* <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.bo.service.SoggettoService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -25,11 +21,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the storico soggetto pratica local service.
*
* <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.bo.service.StoricoSoggettoPraticaLocalService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.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.
*
* <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.bo.service.StoricoSoggettoPraticaService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -34,11 +30,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the territorio local service.
*
* <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.bo.service.TerritorioLocalService} interface.
*
* <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.

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.
*
* 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.
* 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
* 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.bo.service.impl;
@ -24,11 +20,9 @@ import com.liferay.portal.service.ServiceContext;
/**
* The implementation of the territorio remote service.
*
* <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.bo.service.TerritorioService} interface.
*
* <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.

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.number=3348
build.date=1631526462579
build.number=3349
build.date=1631527942260
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.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
@SuppressWarnings("serial")
public class DisponibilitaImpl extends DisponibilitaBaseImpl {

36
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.
*
* 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.
* 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
* 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.portos.calendar.appointments.model.impl;
@ -16,27 +12,25 @@ import com.liferay.portal.kernel.util.StringPool;
/**
* 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
* property of this class.
*
* &quot;portos_calendar_appointments_Funzionario&quot; database table, with each column mapped to a property of this
* class.
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added,
* rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.portos.calendar.appointments.model.Funzionario} 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.Funzionario}
* interface.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
@SuppressWarnings("serial")
public class FunzionarioImpl extends FunzionarioBaseImpl {
/*
* 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.
* 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.
*/
public FunzionarioImpl() {}
@Override
public String getFullDescription() {
return getNome() + StringPool.SPACE + getCognome();
}

47
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.
*
* 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.
* 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
* 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.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
* &quot;portos_calendar_appointments_Prenotazione&quot; database table, with each column mapped to
* a property of this class.
*
* &quot;portos_calendar_appointments_Prenotazione&quot; database table, with each column mapped to a property of this
* class.
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added,
* rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.portos.calendar.appointments.model.Prenotazione} 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.Prenotazione}
* interface.
* </p>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
@SuppressWarnings("serial")
public class PrenotazioneImpl extends PrenotazioneBaseImpl {
/*
* 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.
* 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.
*/
public PrenotazioneImpl() {}
@Override
public boolean isExpired(Date now) {
if (now.after(getStartDate())) {
return true;
}
if (DateUtils.isSameDay(now, getStartDate())) {
return true;
}
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.
*
* 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.
* 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
* 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.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>
* 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>
*
* @author 3F Consulting
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
@SuppressWarnings("serial")
public class ProfessionistaImpl extends ProfessionistaBaseImpl {
/*
* 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.
* 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.
*/
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.number=175
build.date=1631028919988
build.number=176
build.date=1631535776275
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) {
try {
long companyId = GetterUtil.getLong(id);
String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE };
String[] guestActions = { ActionKeys.VIEW };
// Organization custom fields
addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId",
ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions);
@ -46,12 +44,10 @@ public class StartUpAction extends SimpleAction {
}
}
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name,
int type, boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions)
throws SystemException {
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type,
boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException {
long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null;
try {
expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
@ -60,65 +56,42 @@ public class StartUpAction extends SimpleAction {
try {
expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
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) {
try {
expandoColumn = ExpandoColumnLocalServiceUtil
.addColumn(expandoTable.getTableId(), name, type);
expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type);
} catch (PortalException e) {
}
} catch (PortalException e) {}
}
try {
if (indexed) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE,
String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
}
if (hidden) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
}
Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST);
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions);
} catch (PortalException e) {
}
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()),
roleUser.getRoleId(), defaultActions);
} catch (PortalException e) {}
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_FIRMA_DOCUMENTO = "conf.geniocivile.scheduler.firmadocumento";
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_EXPORT_URL = "conf.geniocivile.protocollazione.export.url";

Caricamento…
Annulla
Salva