Sfoglia il codice sorgente

Fix compilazione e aggiornamenti backoffice

master
Salvatore La Manna 4 anni fa
parent
commit
fdeac32143
  1. 7
      liferay-plugins-sdk-6.2/build.portos.properties.save
  2. 2
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath
  3. 20
      liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/src/it/tref/liferay/portlet/p7mpreview/P7mPreview.java
  4. 2
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
  5. 2
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath
  6. 2
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/ProcessorRouterAuditDatabase.java
  7. 3
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/ProcessorRouterAuditDefault.java
  8. 136
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/impl/AuditEventLocalServiceImpl.java
  9. 9
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/util/EventUtils.java
  10. 4
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties
  11. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/SoggettiUtil.java
  12. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/geosisma/servlet/GeosismaRequestServlet.java
  13. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/CollaudoImpl.java
  14. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/DettPraticaImpl.java
  15. 25
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/FineLavoriImpl.java
  16. 17
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoInstanceTokenModelListener.java
  17. 41
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoLogModelListener.java
  18. 30
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoTaskInstanceTokenModelListener.java
  19. 36
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ParereGeologoLocalServiceClpInvoker.java
  20. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
  21. 103
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComunicazioneLocalServiceImpl.java
  22. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ControlloPraticaLocalServiceImpl.java
  23. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DelegaLocalServiceImpl.java
  24. 135
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DettPraticaLocalServiceImpl.java
  25. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/DocPraticaLocalServiceImpl.java
  26. 22
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java
  27. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  28. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java
  29. 67
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java
  30. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioLocalServiceImpl.java
  31. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  32. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf
  33. 2
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath
  34. 9
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java
  35. 60
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java
  36. 2
      liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath
  37. 7
      liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/src/it/tref/portos/comunicazione/ComunicazioneMediata.java
  38. 2
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath
  39. 38
      liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/cookies/action/StartUpAction.java
  40. 3
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath
  41. 1
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.project
  42. 17
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java
  43. 15
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationLogLocalServiceImpl.java
  44. 29
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationMailLocalServiceImpl.java
  45. 13
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationMailServiceImpl.java
  46. 13
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/util/DeployAlertUtil.java
  47. 4
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties
  48. 4
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml
  49. 6
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java
  50. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  51. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java
  52. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java
  53. 5
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/Constants.java
  54. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java
  55. 2
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath
  56. BIN
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/commons-logging.jar
  57. 4
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/ExtractorResponse.java
  58. 42
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java
  59. 2
      liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath
  60. 17
      liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/service/impl/KaleoInstanceLocalServiceImpl.java
  61. 3
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath
  62. 1
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project
  63. 1
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/build.xml
  64. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/UserAgentUtils.jar
  65. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-broker.jar
  66. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-camel.jar
  67. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-client.jar
  68. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-jms-pool.jar
  69. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-openwire-legacy.jar
  70. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-pool.jar
  71. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-spring.jar
  72. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/aopalliance.jar
  73. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-core.jar
  74. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-jms.jar
  75. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-spring.jar
  76. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-codec.jar
  77. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-logging.jar
  78. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-pool.jar
  79. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-j2ee-management_1.1_spec.jar
  80. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jms_1.1_spec.jar
  81. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jta_1.0.1B_spec.jar
  82. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/guava.jar
  83. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/hawtbuf.jar
  84. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpclient.jar
  85. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpcore.jar
  86. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-annotations.jar
  87. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core-asl.jar
  88. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core.jar
  89. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-databind.jar
  90. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/javax.inject.jar
  91. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jaxb-core.jar
  92. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jaxb-impl.jar
  93. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jsr305.jar
  94. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jstl-api.jar
  95. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  96. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/log4j.jar
  97. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/slf4j-api.jar
  98. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-aop.jar
  99. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-beans.jar
  100. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-context-support.jar
  101. Some files were not shown because too many files have changed in this diff Show More

7
liferay-plugins-sdk-6.2/build.portos.properties.save

@ -1,7 +0,0 @@
app.server.tomcat.lib.global.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/lib/ext
app.server.tomcat.deploy.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/webapps
app.server.parent.dir = /home/portos/bin/liferay-paesaggistica
app.server.tomcat.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62
app.server.type = tomcat
app.server.tomcat.portal.dir = /home/portos/bin/liferay-paesaggistica/tomcat-7.0.62/webapps/ROOT
javac.encoding = UTF-8

2
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath

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

20
liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/docroot/WEB-INF/src/it/tref/liferay/portlet/p7mpreview/P7mPreview.java

@ -12,49 +12,35 @@ public class P7mPreview extends DLPreviewableProcessor{
@Override @Override
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {
// TODO Auto-generated method stub
} }
@Override @Override
public boolean isSupported(String mimeType) { public boolean isSupported(String mimeType) {
// TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
protected void doExportGeneratedFiles( protected void doExportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry,
PortletDataContext portletDataContext, FileEntry fileEntry,
Element fileEntryElement) throws Exception { Element fileEntryElement) throws Exception {
// TODO Auto-generated method stub
} }
@Override @Override
protected void doImportGeneratedFiles( protected void doImportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry,
PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception {
FileEntry importedFileEntry, Element fileEntryElement)
throws Exception {
// TODO Auto-generated method stub
} }
@Override @Override
protected List<Long> getFileVersionIds() { protected List<Long> getFileVersionIds() {
// TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
protected String getPreviewType(FileVersion fileVersion) { protected String getPreviewType(FileVersion fileVersion) {
// TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
protected String getThumbnailType(FileVersion fileVersion) { protected String getThumbnailType(FileVersion fileVersion) {
// TODO Auto-generated method stub
return null; return null;
} }
} }

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

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

2
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath

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

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

@ -8,12 +8,10 @@ import com.liferay.portal.kernel.audit.AuditMessageProcessor;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
public class ProcessorRouterAuditDatabase implements AuditMessageProcessor { public class ProcessorRouterAuditDatabase implements AuditMessageProcessor {
private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class); private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class);
@Override @Override
public void process(AuditMessage auditMessage) throws AuditException { public void process(AuditMessage auditMessage) throws AuditException {
try { try {

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

@ -14,8 +14,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
public class ProcessorRouterAuditDefault implements AuditRouter { public class ProcessorRouterAuditDefault implements AuditRouter {
private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors = private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors = new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>(); private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>();
@Override @Override

136
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/impl/AuditEventLocalServiceImpl.java

@ -33,13 +33,15 @@ import com.liferay.portal.kernel.util.StringPool;
* The implementation of the audit event local service. * The implementation of the audit event local service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.audit.service.AuditEventLocalService} interface. * {@link it.tref.liferay.portos.audit.service.AuditEventLocalService}
* interface.
* *
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author ViVieb srl * @author ViVieb srl
@ -51,7 +53,8 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
@Override @Override
public AuditEvent addAuditEvent(AuditMessage auditMessage) throws SystemException { public AuditEvent addAuditEvent(AuditMessage auditMessage) throws SystemException {
AuditEvent auditEvent = auditEventPersistence.create(counterLocalService.increment(AuditEvent.class.getName())); AuditEvent auditEvent = auditEventPersistence.create(counterLocalService.increment(AuditEvent.class
.getName()));
auditEvent.setCompanyId(auditMessage.getCompanyId()); auditEvent.setCompanyId(auditMessage.getCompanyId());
auditEvent.setUserId(auditMessage.getUserId()); auditEvent.setUserId(auditMessage.getUserId());
@ -69,29 +72,30 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
auditEvent.setServerPort(auditMessage.getServerPort()); auditEvent.setServerPort(auditMessage.getServerPort());
estreazioneAdditionalInfo(auditEvent, auditMessage); estreazioneAdditionalInfo(auditEvent, auditMessage);
return auditEventPersistence.update(auditEvent); return auditEventPersistence.update(auditEvent);
} }
private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) { private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) {
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_AUDIT_EVENT_TABLE, AuditKey.FIELD_AUDIT_EVENT_TABLE, StringPool.BLANK));
StringPool.BLANK));
auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY, auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY,
StringPool.BLANK)); StringPool.BLANK));
auditEvent auditEvent.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION,
.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION, StringPool.BLANK)); StringPool.BLANK));
auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE, StringPool.BLANK)); auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE,
StringPool.BLANK));
auditEvent.setEnteGroupId(auditMessage.getAdditionalInfo().getLong(AuditKey.FIELD_ENTE_GROUP_ID, 0l)); auditEvent.setEnteGroupId(auditMessage.getAdditionalInfo().getLong(AuditKey.FIELD_ENTE_GROUP_ID, 0l));
auditEvent.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK)); auditEvent.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK));
auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_PK, "0l")); auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(
auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_NAME, AuditKey.FIELD_PARENT_CLASS_PK, "0l"));
StringPool.BLANK)); auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(
auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_PK, "0l")); AuditKey.FIELD_PARENT_CLASS_NAME, StringPool.BLANK));
auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_NAME, auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(
StringPool.BLANK)); AuditKey.FIELD_RELATED_CLASS_PK, "0l"));
auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_RELATED_CLASS_NAME, StringPool.BLANK));
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_AUDIT_EVENT_TABLE); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_AUDIT_EVENT_TABLE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_CATEGORY); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_CATEGORY);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION);
@ -112,8 +116,8 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
} }
@Override @Override
public List<AuditEvent> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) public List<AuditEvent> findByCompanyId(long companyId, int start, int end,
throws SystemException { OrderByComparator orderByComparator) throws SystemException {
return auditEventPersistence.findByCompanyId(companyId, start, end, orderByComparator); return auditEventPersistence.findByCompanyId(companyId, start, end, orderByComparator);
} }
@ -127,18 +131,19 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
return auditEventPersistence.countByC_ClassNameId(companyId, classNameId); return auditEventPersistence.countByC_ClassNameId(companyId, classNameId);
} }
public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK, int start, public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK,
int end) throws SystemException { int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end); return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end);
} }
public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK, int start, public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK,
int end, OrderByComparator orderByComparator) throws SystemException { int start, int end, OrderByComparator orderByComparator) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end, return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end,
orderByComparator); orderByComparator);
} }
public int countByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK) throws SystemException { public int countByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK)
throws SystemException {
return auditEventPersistence.countByC_ClassNameId_ClassPK(companyId, classNameId, classPK); return auditEventPersistence.countByC_ClassNameId_ClassPK(companyId, classNameId, classPK);
} }
@ -162,60 +167,63 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
return dynamicQuery; return dynamicQuery;
} }
public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable, public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId,
int start, int end) throws SystemException { String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_AuditEventTable(companyId, classNameId, auditEventTable, start, return auditEventPersistence.findByC_ClassNameId_AuditEventTable(companyId, classNameId,
end); auditEventTable, start, end);
} }
public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable) public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable)
throws SystemException { throws SystemException {
return auditEventPersistence.countByC_ClassNameId_AuditEventTable(companyId, classNameId, auditEventTable); return auditEventPersistence.countByC_ClassNameId_AuditEventTable(companyId, classNameId,
auditEventTable);
} }
public List<AuditEvent> findByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK, public List<AuditEvent> findByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId,
String auditEventTable, int start, int end) throws SystemException { String classPK, String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK, return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
auditEventTable, start, end); classPK, auditEventTable, start, end);
} }
public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK, public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK,
String auditEventTable) throws SystemException { String auditEventTable) throws SystemException {
return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK, return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
auditEventTable); classPK, auditEventTable);
} }
/* /*
* public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long companyId, long * public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long
* parentClassNameId, String parentClassPK, int start, int end) throws SystemException { return * companyId, long parentClassNameId, String parentClassPK, int start, int
* auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId, * end) throws SystemException { return
* parentClassPK, start, end); } * auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassNameId, parentClassPK, start, end); }
* *
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long parentClassNameId, * public int countByC_ParentClassNameId_ParentClassPK(long companyId, long
* String parentClassPK) throws SystemException { return * parentClassNameId, String parentClassPK) throws SystemException { return
* auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId, * auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassPK); } * parentClassNameId, parentClassPK); }
*/ */
public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId, int start, int end) String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId,
throws SystemException { int start, int end) throws SystemException {
DynamicQuery dynamicQuery = DynamicQuery dynamicQuery = createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
createC_Parent_Related_ClassNameId(companyId, parentClassNameId, parentClassPK, relatedClassNameId, parentClassPK, relatedClassNameId, relatedClassPK, classNameId);
relatedClassPK, classNameId);
dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate")); dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate"));
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end); return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
} }
public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK, public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
long relatedClassNameId, String relatedClassPK, long classNameId) throws SystemException { String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId)
throws SystemException {
return (int) auditEventPersistence.countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId, return (int) auditEventPersistence
parentClassNameId, parentClassPK, relatedClassNameId, relatedClassPK, classNameId)); .countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
parentClassPK, relatedClassNameId, relatedClassPK, classNameId));
} }
private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK, private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
long relatedClassNameId, String relatedClassPK, long classNameId) { String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId) {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction(); Disjunction dis = RestrictionsFactoryUtil.disjunction();
@ -253,27 +261,31 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
dis.add(related); dis.add(related);
dynamicQuery.add(dis); dynamicQuery.add(dis);
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("classNameId"))); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("classNameId")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery); return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
} }
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK) public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId,
throws SystemException { String classPK) throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK)); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable"))); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("auditEventTable")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery); return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
} }
public List<String> findEventTableNameByC_ClassNameId(long companyId, long classNameId) throws SystemException { public List<String> findEventTableNameByC_ClassNameId(long companyId, long classNameId)
throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId)); dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable"))); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("auditEventTable")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery); return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
} }

9
liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/util/EventUtils.java

@ -16,11 +16,10 @@ public class EventUtils {
public static String getVisualName(String className, String classPK, long companyId, Locale locale) public static String getVisualName(String className, String classPK, long companyId, Locale locale)
throws SystemException { throws SystemException {
OrderByComparator orderByComparator = OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create(AuditEventImpl.TABLE_NAME,
OrderByComparatorFactoryUtil.create(AuditEventImpl.TABLE_NAME, "createDate", false); "createDate", false);
List<AuditEvent> event = List<AuditEvent> event = AuditEventLocalServiceUtil.findByC_ClassNameId_ClassPK(companyId,
AuditEventLocalServiceUtil.findByC_ClassNameId_ClassPK(companyId, PortalUtil.getClassNameId(className), PortalUtil.getClassNameId(className), classPK, 0, 1, orderByComparator);
classPK, 0, 1, orderByComparator);
return event.get(0).getVisualName(locale); return event.get(0).getVisualName(locale);
} }

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_AUDIT build.namespace=portos_AUDIT
build.number=16 build.number=17
build.date=1569596657517 build.date=1606300425089
build.auto.upgrade=true build.auto.upgrade=true
## ##

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

@ -80,16 +80,6 @@ public class SoggettiUtil {
return false; return false;
} }
// TODO Capire se serve ancora
// public static boolean canCheckSoggettoPrincipale(long dettPraticaId, String tipologiaSoggetto)
// throws SystemException,
// PortalException {
//
// return
// SoggettoLocalServiceUtil.countSoggettiPrincipaliValidTmpByDettPratica_TipologiaSoggetto(dettPraticaId,
// new String[] {tipologiaSoggetto}) == 0;
// }
public static boolean isSoggettoPrincipale(long soggettoId, long dettPraticaId) throws PortalException, public static boolean isSoggettoPrincipale(long soggettoId, long dettPraticaId) throws PortalException,
SystemException { SystemException {

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

@ -26,7 +26,6 @@ public class GeosismaRequestServlet extends HttpServlet {
*/ */
public GeosismaRequestServlet() { public GeosismaRequestServlet() {
super(); super();
// TODO Auto-generated constructor stub
} }
/** /**

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

@ -77,8 +77,8 @@ public class CollaudoImpl extends CollaudoBaseImpl {
sb.append(intPratica.getNumeroProgetto()); sb.append(intPratica.getNumeroProgetto());
// TODO da decidere che data, per adesso si mette quella di // TODO da decidere che data, per adesso si mette quella di
// creazione il numero protocollo // creazione il numero protocollo sbagliato dovrebbe essere il
// sbagliato dovrebbe essere il primo // primo
sb.append(" del "); sb.append(" del ");
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())); sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);

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

@ -90,8 +90,8 @@ public class DettPraticaImpl extends DettPraticaBaseImpl {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
// TODO da decidere che data, per adesso si mette quella di // TODO da decidere che data, per adesso si mette quella di
// creazione il numero protocollo // creazione il numero protocollo sbagliato dovrebbe essere il
// sbagliato dovrebbe essere il primo // primo
sb.append(" del "); sb.append(" del ");
sb.append(sdf.format(intPratica.getDtPratica())); sb.append(sdf.format(intPratica.getDtPratica()));
} else { } else {

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

@ -28,14 +28,14 @@ import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the FineLavori service. Represents a row in the * The extended model implementation for the FineLavori service. Represents a
* &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this * row in the &quot;portos_bo_FineLavori&quot; database table, with each column
* class. * mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class.
* rerun ServiceBuilder to copy their definitions into the * Whenever methods are added, rerun ServiceBuilder to copy their definitions
* {@link it.tref.liferay.portos.bo.model.FineLavori} interface. * into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -44,13 +44,15 @@ public class FineLavoriImpl extends FineLavoriBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a fine lavori model instance * Never reference this class directly. All methods that expect a fine
* should use the {@link it.tref.liferay.portos.bo.model.FineLavori} interface instead. * lavori model instance should use the {@link
* it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/ */
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class); private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() {} public FineLavoriImpl() {
}
public String getTitle(Locale locale) { public String getTitle(Locale locale) {
@ -70,8 +72,9 @@ public class FineLavoriImpl extends FineLavoriBaseImpl {
if (Validator.isNotNull(getProtocollo())) { if (Validator.isNotNull(getProtocollo())) {
sb.append(intPratica.getNumeroProgetto()); sb.append(intPratica.getNumeroProgetto());
// TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo // TODO da decidere che data, per adesso si mette quella di
// sbagliato dovrebbe essere il primo // creazione il numero protocollo sbagliato dovrebbe essere il
// primo
sb.append(" del "); sb.append(" del ");
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())); sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);

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

@ -54,8 +54,6 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
@Override @Override
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
} }
@ -66,11 +64,8 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
cp = ControlloPraticaLocalServiceUtil.getControlloPratica(model.getClassPK()); cp = ControlloPraticaLocalServiceUtil.getControlloPratica(model.getClassPK());
this.gestioneWFVarianti(cp, model); this.gestioneWFVarianti(cp, model);
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }
// TODO Auto-generated method stub
super.onAfterCreate(model); super.onAfterCreate(model);
} }
@ -154,45 +149,33 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
@Override @Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName, public void onAfterRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeCreate(KaleoInstanceToken model) throws ModelListenerException { public void onBeforeCreate(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model); super.onBeforeCreate(model);
} }
@Override @Override
public void onBeforeRemove(KaleoInstanceToken model) throws ModelListenerException { public void onBeforeRemove(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model); super.onBeforeRemove(model);
} }
@Override @Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName, public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK); super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeUpdate(KaleoInstanceToken model) throws ModelListenerException { public void onBeforeUpdate(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeUpdate(model); super.onBeforeUpdate(model);
} }

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

@ -25,8 +25,8 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
try { try {
long kaleoInstanceTokenId = model.getKaleoInstanceTokenId(); long kaleoInstanceTokenId = model.getKaleoInstanceTokenId();
KaleoInstanceToken instanceToken = KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil
KaleoInstanceTokenLocalServiceUtil.fetchKaleoInstanceToken(kaleoInstanceTokenId); .fetchKaleoInstanceToken(kaleoInstanceTokenId);
if (Validator.isNotNull(instanceToken)) { if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) { if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) {
@ -35,12 +35,12 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK()); indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK());
if (_log.isDebugEnabled()) { if (_log.isDebugEnabled()) {
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK()); _log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : "
+ instanceToken.getClassPK());
} }
} }
} }
} catch (SearchException e) { } catch (SearchException e) {
_log.error(e, e); _log.error(e, e);
} catch (SystemException e) { } catch (SystemException e) {
@ -53,8 +53,6 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
@Override @Override
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
} }
@ -64,8 +62,8 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
try { try {
long kaleoInstanceTokenId = model.getKaleoInstanceTokenId(); long kaleoInstanceTokenId = model.getKaleoInstanceTokenId();
KaleoInstanceToken instanceToken = KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil
KaleoInstanceTokenLocalServiceUtil.fetchKaleoInstanceToken(kaleoInstanceTokenId); .fetchKaleoInstanceToken(kaleoInstanceTokenId);
if (Validator.isNotNull(instanceToken)) { if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) { if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) {
@ -74,71 +72,56 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK()); indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK());
if (_log.isDebugEnabled()) { if (_log.isDebugEnabled()) {
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK()); _log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : "
+ instanceToken.getClassPK());
} }
} }
} }
} catch (SearchException e) { } catch (SearchException e) {
_log.error(e, e); _log.error(e, e);
} catch (SystemException e) { } catch (SystemException e) {
_log.error(e, e); _log.error(e, e);
} }
super.onAfterRemove(model); super.onAfterRemove(model);
} }
@Override @Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterRemoveAssociation(Object classPK, String associationClassName,
throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onAfterUpdate(KaleoLog model) throws ModelListenerException { public void onAfterUpdate(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterUpdate(model); super.onAfterUpdate(model);
} }
@Override @Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeCreate(KaleoLog model) throws ModelListenerException { public void onBeforeCreate(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model); super.onBeforeCreate(model);
} }
@Override @Override
public void onBeforeRemove(KaleoLog model) throws ModelListenerException { public void onBeforeRemove(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model); super.onBeforeRemove(model);
} }
@Override @Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK); super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeUpdate(KaleoLog model) throws ModelListenerException { public void onBeforeUpdate(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeUpdate(model); super.onBeforeUpdate(model);
} }
} }

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

@ -26,7 +26,8 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<Kaleo
indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); indexer.reindex(ControlloPratica.class.getName(), model.getClassPK());
if (_log.isDebugEnabled()) { if (_log.isDebugEnabled()) {
_log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : " + model.getClassPK()); _log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : "
+ model.getClassPK());
} }
} }
@ -40,15 +41,11 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<Kaleo
@Override @Override
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onAfterCreate(KaleoTaskInstanceToken model) throws ModelListenerException { public void onAfterCreate(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterCreate(model); super.onAfterCreate(model);
} }
@ -63,7 +60,8 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<Kaleo
indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); indexer.reindex(ControlloPratica.class.getName(), model.getClassPK());
if (_log.isDebugEnabled()) { if (_log.isDebugEnabled()) {
_log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : " + model.getClassPK()); _log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : "
+ model.getClassPK());
} }
} }
@ -75,47 +73,35 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<Kaleo
} }
@Override @Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterRemoveAssociation(Object classPK, String associationClassName,
throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeCreate(KaleoTaskInstanceToken model) throws ModelListenerException { public void onBeforeCreate(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model); super.onBeforeCreate(model);
} }
@Override @Override
public void onBeforeRemove(KaleoTaskInstanceToken model) throws ModelListenerException { public void onBeforeRemove(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model); super.onBeforeRemove(model);
} }
@Override @Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK); super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeUpdate(KaleoTaskInstanceToken model) throws ModelListenerException { public void onBeforeUpdate(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeUpdate(model); super.onBeforeUpdate(model);
} }

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

@ -202,21 +202,21 @@ public class ParereGeologoLocalServiceClpInvoker {
_methodParameterTypes213 = new String[] { "long" }; _methodParameterTypes213 = new String[] { "long" };
_methodName215 = "findNotParereByGeologoId"; _methodName214 = "findNotParereByGeologoId";
_methodParameterTypes215 = new String[] { "long", "int", "int" }; _methodParameterTypes214 = new String[] { "long", "int", "int" };
_methodName216 = "findWithParereByGeologoId"; _methodName215 = "findWithParereByGeologoId";
_methodParameterTypes216 = new String[] { "long", "int", "int" }; _methodParameterTypes215 = new String[] { "long", "int", "int" };
_methodName217 = "countFindNotParereByGeologoId"; _methodName216 = "countFindNotParereByGeologoId";
_methodParameterTypes217 = new String[] { "long" }; _methodParameterTypes216 = new String[] { "long" };
_methodName218 = "countFindWithParereByGeologoId"; _methodName217 = "countFindWithParereByGeologoId";
_methodParameterTypes218 = new String[] { "long" }; _methodParameterTypes217 = new String[] { "long" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -436,27 +436,27 @@ public class ParereGeologoLocalServiceClpInvoker {
return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName215.equals(name) && if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName216.equals(name) && if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName217.equals(name) && if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName218.equals(name) && if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue());
} }
@ -537,12 +537,12 @@ public class ParereGeologoLocalServiceClpInvoker {
private String[] _methodParameterTypes212; private String[] _methodParameterTypes212;
private String _methodName213; private String _methodName213;
private String[] _methodParameterTypes213; private String[] _methodParameterTypes213;
private String _methodName214;
private String[] _methodParameterTypes214;
private String _methodName215; private String _methodName215;
private String[] _methodParameterTypes215; private String[] _methodParameterTypes215;
private String _methodName216; private String _methodName216;
private String[] _methodParameterTypes216; private String[] _methodParameterTypes216;
private String _methodName217; private String _methodName217;
private String[] _methodParameterTypes217; private String[] _methodParameterTypes217;
private String _methodName218;
private String[] _methodParameterTypes218;
} }

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

@ -390,7 +390,6 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
String codiceBelfiore, String denominazione, boolean provincia) throws PortalException, SystemException { String codiceBelfiore, String denominazione, boolean provincia) throws PortalException, SystemException {
if (codiceBelfiore != null && !codiceBelfiore.startsWith("Z")) { if (codiceBelfiore != null && !codiceBelfiore.startsWith("Z")) {
if (Validator.isNull(codiceProvincia)) if (Validator.isNull(codiceProvincia))
throw new CodiceProvinciaException(); throw new CodiceProvinciaException();
if (Validator.isNull(codiceComune)) if (Validator.isNull(codiceComune))

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

@ -44,13 +44,15 @@ import com.liferay.portal.service.ServiceContext;
* The implementation of the comunicazione local service. * The implementation of the comunicazione local service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService} interface. * {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService}
* interface.
* *
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -62,14 +64,14 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this interface directly. Always use {@link * Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to access the comunicazione * it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to
* local service. * access the comunicazione local service.
*/ */
public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda,
throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
Comunicazione comunicazione = Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService
comunicazionePersistence.create(counterLocalService.increment(Comunicazione.class.getName())); .increment(Comunicazione.class.getName()));
User user = userPersistence.findByPrimaryKey(userId); User user = userPersistence.findByPrimaryKey(userId);
@ -103,12 +105,14 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
comunicazione = comunicazionePersistence.update(comunicazione); comunicazione = comunicazionePersistence.update(comunicazione);
// resourceLocalService.updateModelResources(comunicazione, serviceContext); // resourceLocalService.updateModelResources(comunicazione,
// serviceContext);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId()) if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId())
&& Validator.isNotNull(intPratica.getStatusByUserId())) { && Validator.isNotNull(intPratica.getStatusByUserId())) {
this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(), now); this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(),
now);
} }
return comunicazione; return comunicazione;
@ -118,8 +122,8 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
return comunicazionePersistence.findByIntPratica(intPraticaId); return comunicazionePersistence.findByIntPratica(intPraticaId);
} }
public List<Comunicazione> findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) public List<Comunicazione> findByIntPratica(long intPraticaId, int start, int end,
throws SystemException { OrderByComparator orderByComparator) throws SystemException {
return comunicazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); return comunicazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator);
} }
@ -136,56 +140,16 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery); return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery);
} }
// private void invioMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext)
// PortalException, throws PortalException, SystemException {
// SystemException {
//
// Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
//
// IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
//
// User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
// List<Soggetto> titolari =
// soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(),
// titolaredigitaleUser.getScreenName());
// String eMail = StringPool.BLANK;
// String title = StringPool.BLANK;
// if (!titolari.isEmpty()) {
// Soggetto titolareDigitale = titolari.get(0);
// eMail = titolareDigitale.getEmail();
// title = titolareDigitale.getDescrizioneCompleta();
// }
//
// String[] to = {eMail};
// String[] cc = new String[0];
// String[] ccn = new String[0];
//
// String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni";
// String url =
// FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(),
// "/html/fascicolofe/view_fascicolo.jsp", queryString);
//
// JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
// templateVariables.put("receiver", title);
// templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
// templateVariables.put("link", url);
//
// MailManagerUtil.sendMailByTemplatName(Comunicazione.class.getName(), comunicazioneId,
// "NUOVA-COMUNICAZIONE", to,
// cc, ccn, templateVariables, null, serviceContext);
// }
private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws PortalException,
SystemException {
Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId); Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId()); User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
List<Soggetto> titolari = List<Soggetto> titolari = soggettoLocalService.getValidByIntPratica_CodiceFiscale(
soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(), intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName());
titolaredigitaleUser.getScreenName());
String eMail = StringPool.BLANK; String eMail = StringPool.BLANK;
String receiver = StringPool.BLANK; String receiver = StringPool.BLANK;
if (!titolari.isEmpty()) { if (!titolari.isEmpty()) {
@ -199,16 +163,16 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
String[] ccn = new String[0]; String[] ccn = new String[0];
String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni"; String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni";
String url = String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(),
FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(), intPratica.getIntPraticaId(), "/html/fascicolofe/view_fascicolo.jsp", queryString);
"/html/fascicolofe/view_fascicolo.jsp", queryString);
JSONObject templateVariable = JSONFactoryUtil.createJSONObject(); JSONObject templateVariable = JSONFactoryUtil.createJSONObject();
templateVariable.put("receiver", receiver); templateVariable.put("receiver", receiver);
templateVariable.put("link", url); templateVariable.put("link", url);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), to, MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext); Comunicazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE",
templateVariable, null, serviceContext);
} }
private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date) private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date)
@ -233,16 +197,19 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName()); templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica); templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata")); templateVariables.put("tipoOggetto",
templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date)); LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata"));
templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm")
.format(date));
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
serviceContext.setScopeGroupId(comunicazione.getGroupId()); serviceContext.setScopeGroupId(comunicazione.getGroupId());
serviceContext.setCompanyId(comunicazione.getCompanyId()); serviceContext.setCompanyId(comunicazione.getCompanyId());
serviceContext.setUserId(comunicazione.getUserId()); serviceContext.setUserId(comunicazione.getUserId());
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), to, MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext); Comunicazione.class.getName(), to, cc, ccn, "NOTIFICA-BO", templateVariables, null,
serviceContext);
} }
} }

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

@ -635,13 +635,6 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
return result; return result;
} }
/*
* TODO Controllare bene il processo. Ci deve essere un modo per capire se
* sono pratiche da importare o nuove. A mio parere (scuti) dovrebbe essere:
* if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE
* .equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { return
* "portos1_integrazioni"; } else { return "portos1_esito"; }
*/
public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException, public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException,
SystemException { SystemException {
@ -652,7 +645,6 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
.getDettPraticaId()); .getDettPraticaId());
if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
// return "portos1_esito";
return "portos1_integrazioni"; return "portos1_integrazioni";
} else { } else {
return "assegnazione"; return "assegnazione";

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

@ -87,8 +87,6 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
Date now = new Date(); Date now = new Date();
validate(tipologia, codiceFiscale);
Delega delega = delegaPersistence.create(counterLocalService.increment(Delega.class.getName())); Delega delega = delegaPersistence.create(counterLocalService.increment(Delega.class.getName()));
delega.setCompanyId(serviceContext.getCompanyId()); delega.setCompanyId(serviceContext.getCompanyId());
@ -132,9 +130,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
@Override @Override
public Delega deleteDelega(Delega delega) throws SystemException { public Delega deleteDelega(Delega delega) throws SystemException {
// TODO cancellare il file quando ci sarà
// TODO cancellare il file quando ci sar�
return super.deleteDelega(delega); return super.deleteDelega(delega);
} }
@ -145,11 +141,6 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
return deleteDelega(delega); return deleteDelega(delega);
} }
private void validate(String tipologia, String codiceFiscale) throws PortalException, SystemException {
// TODO Write your own validation code
}
public List<Delega> findByIntPratica(long intPraticaId, int start, int end, public List<Delega> findByIntPratica(long intPraticaId, int start, int end,
OrderByComparator orderByComparator) throws SystemException { OrderByComparator orderByComparator) throws SystemException {
return delegaPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); return delegaPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator);
@ -360,7 +351,8 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
DLFolder folderTemplate = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay() DLFolder folderTemplate = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay()
.getCompanyGroupId(), 0L, "Template"); .getCompanyGroupId(), 0L, "Template");
FileEntry fileEntryIdTemplate = DLAppLocalServiceUtil.getFileEntry(serviceContext FileEntry fileEntryIdTemplate = DLAppLocalServiceUtil.getFileEntry(serviceContext
.getThemeDisplay().getCompanyGroupId(), folderTemplate.getFolderId(), "Modello Asseverazione"); .getThemeDisplay().getCompanyGroupId(), folderTemplate.getFolderId(),
"Modello Asseverazione");
DLFolder folderAllegati = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay() DLFolder folderAllegati = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay()
.getCompanyGroupId(), 0L, "Allegati"); .getCompanyGroupId(), 0L, "Allegati");

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

@ -752,58 +752,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
Date now = new Date(); Date now = new Date();
validate(userId, dettPraticaId, intPraticaId, integrazione, protocollo, tipoIntegrazione, completa,
gestita, codicePagamentoOneri, causalePagamentoOneri, mezzoPagamentoOneri, importoBolli,
importoSpeseIstruttoria, dataEffettuazione, statusTask, workflowForzato,
soggettoSostituitoId, oldDettPraticaId, destinazione, ag, descLongIntervento, via, localita,
estremiCatastali, estremiPratCom, variataDa, varianteNumero, varianteSostanziale,
operaConforme, collaudoStatico, codiceFiscaleDelegatoCommittente,
codiceFiscaleDelegatoFineLavori, codiceFiscaleDelegatoCollaudo, codiceRuoloDelegato,
lavoriInEconomiaCommittente, inizioLavoriContestualeOpera, dataInizioLavoriOpera,
dataInizioEsecuzioneOpera, dataFineEsecuzioneOpera, metratura, lavoriPubblici,
pagamentoIdOneri, lavoriPubbliciPercentuale, numeroCivico, dcParticelle, dcFoglio,
dcAllegato, dePiani, deAltezza, deInterrati, deSuperficie, deCostruzione, deRistrutturazione,
deUso, dePubblica, dePrivata, deUtilizzazione, dePosizioneEdificio, deInfStradalePonte,
deInfStradaleStrada, deInfStradaleAltro, deInfIdraulicaLong, deInfIdraulicaTrasv,
deInfIdraulicaAltro, deInfOperaAccStradale, deInfOperaAccIdraulica, deInfOperaAccAltro,
deInfAltraInfrastruttura, deInfAltro, deInfAltroDesc, dccFondazioni,
dccStruttureEleMuraturePietrame, dccStruttureEleMuratureLaterizio,
dccStruttureEleMuratureMisto, dccStruttureEleMuratureStoriche, dccStruttureEleAcciaio,
dccStruttureEleCA, dccStruttureEleLegno, dccStruttureEleMistoCA, dccStruttureEleMistoAcciaio,
dccStruttureEleMistoMuratura, dccStruttureEleMistoLegno, dccStruttureElePrefabbricato,
dccStruttureEleAltro, dccStruttureEleAltroDescrizione, dccOrizzontamentiCAAcciaio,
dccOrizzontamentiLegno, dccOrizzontamentiLegnoCA, dccOrizzontamentiLamieraGrecata,
dccOrizzontamentiVolte, dccOrizzontamentiAltro, dccOrizzontamentiAltroDescrizione,
dccCopertura, dccCoperturaCAAcciaio, dccCoperturaLegno, dccCoperturaLegnoCA,
dccCoperturaLamieraGrecata, dccCoperturaPannelli, dccCoperturaPVCTelonati,
dccCoperturaLeggere, dccCoperturaAltro, dccCoperturaAltroDesrizione,
dccElemNonStrutLaterizio, dccElemNonStrutCartongesso, dccElemNonStrutCalcestruzzo,
dccElemNonStrutLegno, dccElemNonStrutAltro, dccElemNonStrutAltroDescrizione,
dccOpereDiRinforzoInsCatene, dccOpereDiRinforzoInsCordoli, dccOpereDiRinforzoIniArmate,
dccOpereDiRinforzoPlaccaggi, dccOpereDiRinforzoIrrSolai, dccOpereDiRinforzoRinforziFRP,
dccOpereDiRinforzoTelaiECerchiature, dccOpereDiRinforzoInsRompitratta,
dccOpereDiRinforzoAltro, dccOpereDiRinforzoAltroDescrizione, geoClasseIndagine,
geoCategoriaSottosuolo, geoCategoriaTopografica, geoConsolidamento, geoPericolositaGeologica,
geoRischioGeomorfologicoPai, geoPericolositaIdraulicaPai, geoRischioIdraulicoPai,
geoPericolositaSismica, geoPericolositaIdraulica, geoPericolositaGeomorfica,
geoFattibilitaGeologica, geoFattibilitaSismica, geoFattibilitaIdraulica, geoOperaRilevante,
geoOpereDiSostegno, geoOpereInSotterranea, geoPresenzaPrescrizioni, geoNotePrescrizioni,
geoNoteIndagini, geoEvidenzeGeomorfiche, geoEvidenzeGeologiche, geoDtRelazione,
pagInterventiRestauroManufatti, pagAltriCasiCulturali, pagLottizzazioni,
pagGrandiStrutture, pagCondotte, pagPalificazioni, pagImpiantiEolici,
pagNuoveRealizzazioni, pagImmobiliPreesistenti, pagManifestiPubblicitari,
pagPareriDiMassima, pagAltriCasiPaesaggistici, pagVariantiPareriResi,
pagRilascioAttestazioni, pagConsultazioniArchivio, note, noteUfficio,
localizzazioneGeografica, tcNuovaCostruzione, tcAdeguamentoSismico, tcMiglioramentoSismico,
tcRiparazioneInterventoLocale, tcInCA, tcInOpera, tcPrefabbricato, tcInAcciaio, tcMista,
tcInMuratura, tcInMuraturaOrdinaria, tcInMuraturaArmata, tcInMuraturaMista, tcInLegno,
tcAltro, tcAltroDescrizione, tcConDispositivi, normLavoriInProprio, normEsenteBollo,
normEsenteSpese, normDpr01Dep, normDpr02Dep, normDpr01Aut, normDpr02Aut, normDm01, normDm02,
normDm03, normDm2018, normDprg01, normDprg02, normAnr, normArt3com3, normArt3com4, normOrd01,
normDm04, normDm05, normCI01, normLTC01, suap, normSismaBonus, clRischioPreInt,
clRischioPostInt, intervFinPub, intervFinPubDesc, sanatoriaEdilizia47, sanatoriaEdilizia724,
sanatoriaEdilizia326, normLavoriNoDirettore, serviceContext, bozza);
DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId); DettPratica dettPratica = dettPraticaPersistence.fetchByPrimaryKey(dettPraticaId);
dettPratica.setModifiedDate(serviceContext.getModifiedDate(now)); dettPratica.setModifiedDate(serviceContext.getModifiedDate(now));
@ -1583,9 +1531,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326,
boolean normLavoriNoDirettore, boolean normLavoriNoDirettore,
ServiceContext serviceContext, boolean bozza) { ServiceContext serviceContext, boolean bozza) {
// TODO Auto-generated method stub
} }
@Indexable(type = IndexableType.REINDEX) @Indexable(type = IndexableType.REINDEX)
@ -1957,91 +1902,11 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini, String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini,
String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione, String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione,
ServiceContext serviceContext, boolean bozza) { ServiceContext serviceContext, boolean bozza) {
// TODO Auto-generated method stub
} }
private void validate(long userId, long dettPraticaId, long intPraticaId, private void validate(long userId, long dettPraticaId, long intPraticaId,
String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori,
String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) { String codiceFiscaleDelegatoCollaudo, ServiceContext serviceContext) {
// TODO Auto-generated method stub
}
private void validate(long userId, long dettPraticaId, long intPraticaId, long integrazione,
String protocollo, String tipoIntegrazione, boolean completa, boolean gestita,
String codicePagamento, String causalePagamento, String mezzoPagamento, String importoBolli,
String importoSpeseIstruttoria, Date dataEffettuazione, int statusTask, boolean workflowForzato,
long soggettoSostituitoId, long oldDettPraticaId, String destinazione, String ag,
String descLongIntervento, String via, String localita, String estremiCatastali,
String estremiPratCom, long variataDa, long varianteNumero, boolean varianteSostanziale,
boolean operaConforme, boolean collaudoStatico, String codiceFiscaleDelegatoCommittente,
String codiceFiscaleDelegatoFineLavori, String codiceFiscaleDelegatoCollaudo,
String codiceRuoloDelegato, boolean lavoriInEconomiaCommittente,
boolean inizioLavoriContestualeOpera, Date dataInizioLavoriOpera, Date dataInizioEsecuzioneOpera,
Date dataFineEsecuzioneOpera, String metratura, boolean lavoriPubblici, long pagamentoId,
int lavoriPubbliciPercentuale, String numeroCivico, String dcParticelle, String dcFoglio,
String dcAllegato, String dePiani, String deAltezza, String deInterrati, String deSuperficie,
String deCostruzione, String deRistrutturazione, String deUso, String dePubblica,
String dePrivata, String deUtilizzazione, String dePosizioneEdificio, boolean deInfStradalePonte,
boolean deInfStradaleStrada, boolean deInfStradaleAltro, boolean deInfIdraulicaLong,
boolean deInfIdraulicaTrasv, boolean deInfIdraulicaAltro, boolean deInfOperaAccStradale,
boolean deInfOperaAccIdraulica, boolean deInfOperaAccAltro, boolean deInfAltraInfrastruttura,
boolean deInfAltro, String deInfAltroDesc, String dccFondazioni,
boolean dccStruttureEleMuraturePietrame, boolean dccStruttureEleMuratureLaterizio,
boolean dccStruttureEleMuratureMisto, boolean dccStruttureEleMuratureStoriche,
String dccStruttureEleAcciaio, String dccStruttureEleCA, String dccStruttureEleLegno,
boolean dccStruttureEleMistoCA, boolean dccStruttureEleMistoAcciaio,
boolean dccStruttureEleMistoMuratura, boolean dccStruttureEleMistoLegno,
boolean dccStruttureElePrefabbricato, boolean dccStruttureEleAltro,
String dccStruttureEleAltroDescrizione, boolean dccOrizzontamentiCAAcciaio,
boolean dccOrizzontamentiLegno, boolean dccOrizzontamentiLegnoCA,
boolean dccOrizzontamentiLamieraGrecata, boolean dccOrizzontamentiVolte,
boolean dccOrizzontamentiAltro, String dccOrizzontamentiAltroDescrizione, String dccCopertura,
boolean dccCoperturaCAAcciaio, boolean dccCoperturaLegno, boolean dccCoperturaLegnoCA,
boolean dccCoperturaLamieraGrecata, boolean dccCoperturaPannelli,
boolean dccCoperturaPVCTelonati, boolean dccCoperturaLeggere, boolean dccCoperturaAltro,
String dccCoperturaAltroDesrizione, boolean dccElemNonStrutLaterizio,
boolean dccElemNonStrutCartongesso, boolean dccElemNonStrutCalcestruzzo,
boolean dccElemNonStrutLegno, boolean dccElemNonStrutAltro,
String dccElemNonStrutAltroDescrizione, boolean dccOpereDiRinforzoInsCatene,
boolean dccOpereDiRinforzoInsCordoli, boolean dccOpereDiRinforzoIniArmate,
boolean dccOpereDiRinforzoPlaccaggi, boolean dccOpereDiRinforzoIrrSolai,
boolean dccOpereDiRinforzoRinforziFRP, boolean dccOpereDiRinforzoTelaiECerchiature,
boolean dccOpereDiRinforzoInsRompitratta, boolean dccOpereDiRinforzoAltro,
String dccOpereDiRinforzoAltroDescrizione, String geoClasseIndagine,
String geoCategoriaSottosuolo, String geoCategoriaTopografica, String geoConsolidamento,
String geoPericolositaGeologica, String geoRischioGeomorfologicoPai,
String geoPericolositaIdraulicaPai, String geoRischioIdraulicoPai, String geoPericolositaSismica,
String geoPericolositaIdraulica, String geoPericolositaGeomorfica,
String geoFattibilitaGeologica, String geoFattibilitaSismica, String geoFattibilitaIdraulica,
String geoOperaRilevante, String geoOpereDiSostegno, String geoOpereInSotterranea,
String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini,
String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione,
Double pagInterventiRestauroManufatti, Double pagAltriCasiCulturali, Double pagLottizzazioni,
Double pagGrandiStrutture, Double pagCondotte, Double pagPalificazioni, Double pagImpiantiEolici,
Double pagNuoveRealizzazioni, Double pagImmobiliPreesistenti, Double pagManifestiPubblicitari,
Double pagPareriDiMassima, Double pagAltriCasiPaesaggistici, Double pagVariantiPareriResi,
Double pagRilascioAttestazioni, Double pagConsultazioniArchivio, String note, String noteUfficio,
String localizzazioneGeografica, boolean tcNuovaCostruzione, boolean tcAdeguamentoSismico,
boolean tcMiglioramentoSismico, boolean tcRiparazioneInterventoLocale, boolean tcInCA,
boolean tcInOpera, boolean tcPrefabbricato, boolean tcInAcciaio, boolean tcMista,
boolean tcInMuratura, boolean tcInMuraturaOrdinaria, boolean tcInMuraturaArmata,
boolean tcInMuraturaMista, boolean tcInLegno, boolean tcAltro, String tcAltroDescrizione,
boolean tcConDispositivi, boolean normLavoriInProprio, boolean normEsenteBollo,
boolean normEsenteSpese, boolean normDpr01Dep, boolean normDpr02Dep, boolean normDpr01Aut,
boolean normDpr02Aut, boolean normDm01, boolean normDm02, boolean normDm03, boolean normDm2018,
boolean normDprg01, boolean normDprg02, boolean normAnr, boolean normArt3com3,
boolean normArt3com4, boolean normOrd01, boolean normDm04, boolean normDm05, boolean normCI01,
boolean normLTC01, boolean suap, boolean normSismaBonus, String clRischioPreInt,
String clRischioPostInt, boolean intervFinPub, String intervFinPubDesc, boolean sanatoriaEdilizia47,
boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326, boolean normLavoriNoDirettore,
ServiceContext serviceContext, boolean bozza) {
// TODO Auto-generated method stub
} }
@Indexable(type = IndexableType.REINDEX) @Indexable(type = IndexableType.REINDEX)

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

@ -34,8 +34,6 @@ import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil; import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry; import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder; import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -109,10 +107,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
Date now = new Date(); Date now = new Date();
validate(serviceContext.getScopeGroupId(), 0L, className, classPk, intPraticaId, dlFileEntry,
fileName, version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari,
dettPraticaIdRimozione, dtDataRimozione);
DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class
.getName())); .getName()));
@ -232,10 +226,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
Date now = new Date(); Date now = new Date();
validate(serviceContext.getScopeGroupId(), 0L, className, classPk, intPraticaId, dlFileEntry,
fileName, version, praticaValidata, descLong, tipologia, sha256, aggiornato, jsonFirmatari,
dettPraticaIdRimozione, dtDataRimozione);
DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class DocPratica docPratica = docPraticaPersistence.create(counterLocalService.increment(DocPratica.class
.getName())); .getName()));
@ -381,15 +371,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
docPraticaLocalService.updateDocPratica(docPratica); docPraticaLocalService.updateDocPratica(docPratica);
} }
private void validate(long groupId, long docPraticaId, String className, long classPk, long intPraticaId,
byte[] dlFileEntry, String fileName, String version, boolean praticaValidata, String descLong,
String tipologia, String sha256, boolean aggiornato, String jsonFirmatari,
long dettPraticaIdRimozione, Date dtDataRimozione) throws PortalException, SystemException {
// TODO Write your own validation code
}
public DocPratica updateDocPraticaAggiornato(long docPraticaId, boolean aggiornato) public DocPratica updateDocPraticaAggiornato(long docPraticaId, boolean aggiornato)
throws SystemException { throws SystemException {

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

@ -30,22 +30,28 @@ import com.liferay.portal.kernel.exception.SystemException;
* The implementation of the history workflow action local service. * The implementation of the history workflow action local service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalService} 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.bo.service.HistoryWorkflowActionLocalService}
* interface.
* *
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. * This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
* @see it.tref.liferay.portos.bo.service.base.HistoryWorkflowActionLocalServiceBaseImpl * @see it.tref.liferay.portos.bo.service.base.HistoryWorkflowActionLocalServiceBaseImpl
* @see it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil * @see it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil
*/ */
public class HistoryWorkflowActionLocalServiceImpl public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowActionLocalServiceBaseImpl {
extends HistoryWorkflowActionLocalServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil} to access the history workflow action local service. * Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil}
* to access the history workflow action local service.
*/ */
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId, int sort) throws SystemException { public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId, int sort) throws SystemException {
@ -57,14 +63,10 @@ public class HistoryWorkflowActionLocalServiceImpl
else else
query.addOrder(OrderFactoryUtil.desc("createDate")); query.addOrder(OrderFactoryUtil.desc("createDate"));
return HistoryWorkflowActionLocalServiceUtil.dynamicQuery(query); return HistoryWorkflowActionLocalServiceUtil.dynamicQuery(query);
// return historyWorkflowActionPersistence.findByIntPratica(intPraticaId);
} }
@Override @Override
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId) public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId) throws SystemException {
throws SystemException {
// TODO Auto-generated method stub
return historyWorkflowActionPersistence.findByIntPratica(intPraticaId); return historyWorkflowActionPersistence.findByIntPratica(intPraticaId);
} }

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

@ -217,9 +217,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId); Territorio territorio = TerritorioLocalServiceUtil.getTerritorio(territorioId);
validate(serviceContext.getScopeGroupId(), 0L, tipoPratica, territorioId, dtSorteggio, statoPratica,
numeroProgetto, validata, esitoControllo, dtPratica);
IntPratica intPratica = intPraticaPersistence.create(counterLocalService.increment(IntPratica.class IntPratica intPratica = intPraticaPersistence.create(counterLocalService.increment(IntPratica.class
.getName())); .getName()));
@ -960,12 +957,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
return intPraticaLocalService.updateIntPratica(intPratica); return intPraticaLocalService.updateIntPratica(intPratica);
} }
private void validate(long scopeGroupId, long l, String tipoPratica, long territorioId, Date dtSorteggio,
String statoPratica, String numeroProgetto, boolean validata, int esitoControllo, Date dtPratica) {
// TODO Auto-generated method stub
}
public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio) throws SystemException { public IntPratica updateIntPraticaSorteggio(long intPraticaId, Date dtSorteggio) throws SystemException {
// TODO vedere se va cambiato lo stato // TODO vedere se va cambiato lo stato
return updateIntPraticaSorteggio(intPraticaId, dtSorteggio, null); return updateIntPraticaSorteggio(intPraticaId, dtSorteggio, null);

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

@ -65,8 +65,6 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId, public ParereGeologo addParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId,
ServiceContext serviceContext) throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
validateParereGeologo(geologoUserId, intPraticaId, dettPraticaId);
long parereGeologoId = counterLocalService.increment(ParereGeologo.class.getName()); long parereGeologoId = counterLocalService.increment(ParereGeologo.class.getName());
ParereGeologo parereGeologo = parereGeologoPersistence.create(parereGeologoId); ParereGeologo parereGeologo = parereGeologoPersistence.create(parereGeologoId);
@ -87,12 +85,6 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return parereGeologoPersistence.update(parereGeologo); return parereGeologoPersistence.update(parereGeologo);
} }
private void validateParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId) {
// TODO
}
public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content, public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content,
String fileName, ServiceContext serviceContext) throws PortalException, SystemException { String fileName, ServiceContext serviceContext) throws PortalException, SystemException {

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

@ -87,17 +87,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Date now = new Date(); Date now = new Date();
validate(serviceContext.getScopeGroupId(), 0L, dettPraticaId, intPraticaId, nome, cognome,
codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita,
comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio,
numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via,
numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap,
comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneRapEstero,
albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto,
tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione,
intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId,
oldSoggettoId);
Soggetto soggetto = soggettoPersistence Soggetto soggetto = soggettoPersistence
.create(counterLocalService.increment(Soggetto.class.getName())); .create(counterLocalService.increment(Soggetto.class.getName()));
@ -319,32 +308,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Date now = new Date(); Date now = new Date();
validate(serviceContext.getScopeGroupId(), 0L, dettPraticaId, intPraticaId,
soggettoToClone.getNome(), soggettoToClone.getCognome(), soggettoToClone.getCodiceFiscale(),
soggettoToClone.getCodiceFiscaleDelegato(), soggettoToClone.getDataNascita(),
soggettoToClone.getProvinciaNascita(), soggettoToClone.getComuneNascita(),
soggettoToClone.getComuneDomicilio(), soggettoToClone.getComuneDomicilioEstero(),
soggettoToClone.getProvinciaDomicilio(), soggettoToClone.getViaDomicilio(),
soggettoToClone.getNumeroCivicoDomicilio(), soggettoToClone.getCapDomicilio(),
soggettoToClone.getDomicilioExtra(), soggettoToClone.getComune(),
soggettoToClone.getComuneEstero(), soggettoToClone.getProvincia(), soggettoToClone.getVia(),
soggettoToClone.getNumeroCivico(), soggettoToClone.getCap(),
soggettoToClone.getDenominazione(), soggettoToClone.getSedeLegale(),
soggettoToClone.getLegaleRap(), soggettoToClone.getDataNascitaRap(),
soggettoToClone.getProvinciaNascitaRap(), soggettoToClone.getComuneNascitaRap(),
soggettoToClone.getViaRap(), soggettoToClone.getNumeroCivicoRap(),
soggettoToClone.getCapRap(), soggettoToClone.getProvinciaRap(),
soggettoToClone.getComuneRap(), soggettoToClone.getComuneRapEstero(),
soggettoToClone.getAlbo(), soggettoToClone.getAlboDescr(), soggettoToClone.getRegAlbo(),
soggettoToClone.getProvinciaAlbo(), soggettoToClone.getNumIscrAlbo(),
soggettoToClone.getTelefono(), soggettoToClone.getFax(), soggettoToClone.getEmail(),
soggettoToClone.getTipologiaSoggetto(), soggettoToClone.getTipoAltroSoggetto(),
soggettoToClone.getAggiuntivo(), soggettoToClone.getRimosso(),
soggettoToClone.getAmbitoAttivita(), soggettoToClone.getAmbitoProfessione(),
soggettoToClone.getIntPraticaIdRimozione(), soggettoToClone.getDettPraticaIdRimozione(),
soggettoToClone.getDtDataRimozione(), soggettoToClone.getSoggettoSostituitoId(),
soggettoToClone.getOldSoggettoId());
Soggetto soggetto = soggettoPersistence Soggetto soggetto = soggettoPersistence
.create(counterLocalService.increment(Soggetto.class.getName())); .create(counterLocalService.increment(Soggetto.class.getName()));
@ -467,17 +430,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
Date now = new Date(); Date now = new Date();
validate(serviceContext.getScopeGroupId(), soggettoId, dettPraticaId, intPraticaId, nome, cognome,
codiceFiscale, codiceFiscaleDelegato, dataNascita, provinciaNascita, comuneNascita,
comuneDomicilio, comuneDomicilioEstero, provinciaDomicilio, viaDomicilio,
numeroCivicoDomicilio, capDomicilio, domicilioExtra, comune, comuneEstero, provincia, via,
numeroCivico, cap, denominazione, sedeLegale, legaleRap, dataNascitaRap, provinciaNascitaRap,
comuneNascitaRap, viaRap, numeroCivicoRap, capRap, provinciaRap, comuneRap, comuneRapEstero,
albo, alboDescr, regAlbo, provAlbo, numIscrAlbo, telefono, fax, email, tipologiaSoggetto,
tipoAltroSoggetto, aggiuntivo, rimosso, ambitoAttivita, ambitoProfessione,
intPraticaIdRimozione, dettPraticaIdRimozione, dtDataRimozione, soggettoSostituitoId,
oldSoggettoId);
Soggetto soggetto = soggettoPersistence.fetchByPrimaryKey(soggettoId); Soggetto soggetto = soggettoPersistence.fetchByPrimaryKey(soggettoId);
soggetto.setCompanyId(serviceContext.getCompanyId()); soggetto.setCompanyId(serviceContext.getCompanyId());
@ -580,25 +532,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
} }
private void validate(long groupId, long soggettoId, long dettPraticaId, long intPraticaId, String nome,
String cognome, String codiceFiscale, String codiceFiscaleDelegato, Date dataNascita,
String provinciaNascita, String comuneNascita, String comuneDomicilio,
String comuneDomicilioEstero, String provinciaDomicilio, String viaDomicilio,
String numeroCivicoDomicilio, String capDomicilio, String domicilioExtra, String comune,
String comuneEstero, String provincia, String via, String numeroCivico, String cap,
String denominazione, String sedeLegale, String legaleRap, Date dataNascitaRap,
String provinciaNascitaRap, String comuneNascitaRap, String viaRap, String numeroCivicoRap,
String capRap, String provinciaRap, String comuneRap, String comuneRapEstero, String albo,
String alboDescr, String regAlbo, String provAlbo, String numIscrAlbo, String telefono,
String fax, String email, String tipologiaSoggetto, String tipoAltroSoggetto, boolean aggiuntivo,
boolean rimosso, String ambitoAttivita, String ambitoProfessione, long intPraticaIdRimozione,
long dettPraticaIdRimozione, Date dtDataRimozione, long soggettoSostituitoId, long oldSoggettoId)
throws PortalException, SystemException {
// TODO Write your own validation code
}
public Soggetto fetchByOldSoggettId(long oldSoggettoId) throws SystemException { public Soggetto fetchByOldSoggettId(long oldSoggettoId) throws SystemException {
return soggettoPersistence.fetchByoldSoggettoId(oldSoggettoId); return soggettoPersistence.fetchByoldSoggettoId(oldSoggettoId);

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

@ -299,7 +299,7 @@ public class SorteggioLocalServiceImpl extends SorteggioLocalServiceBaseImpl {
public Sorteggio findByIntPratica(long intPraticaId) throws SystemException { public Sorteggio findByIntPratica(long intPraticaId) throws SystemException {
// XXX verificare se torna uno o piu // XXX verificare se torna uno o più
List<Sorteggio> sorteggis = sorteggioPersistence.findByIntPraticaId(intPraticaId); List<Sorteggio> sorteggis = sorteggioPersistence.findByIntPraticaId(intPraticaId);
return sorteggis != null && !sorteggis.isEmpty() ? sorteggis.get(0) : null; return sorteggis != null && !sorteggis.isEmpty() ? sorteggis.get(0) : null;
} }

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_bo build.namespace=portos_bo
build.number=2739 build.number=2740
build.date=1606226972645 build.date=1606231924945
build.auto.upgrade=true build.auto.upgrade=true
## ##

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf

@ -163,7 +163,7 @@ DettPratica lastDettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntP
<%= intPratica.getTitle(locale, true) %> <%= intPratica.getTitle(locale, true) %>
<%= Validator.isNull(intPratica.getTipoProcedura()) ? <%= Validator.isNull(intPratica.getTipoProcedura()) ?
"" : "" :
"<br><small>Procedura " + intPratica.getTipoProcedura() + "</small>" %> "<br><small>" + LanguageUtil.get(pageContext, "tipo_procedura_" + intPratica.getTipoProcedura()) + "</small>" %>
</liferay-ui:search-container-column-text> </liferay-ui:search-container-column-text>
<liferay-ui:search-container-column-text name="istruttore"> <liferay-ui:search-container-column-text name="istruttore">

2
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath

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

9
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java

@ -255,8 +255,8 @@ public class DisponibilitaLocalServiceImpl extends DisponibilitaLocalServiceBase
} }
//Bug 32935 //Bug 32935
else{ else{
for (Iterator iterator = results.iterator(); iterator.hasNext();) { for (Iterator<Disponibilita> iterator = results.iterator(); iterator.hasNext();) {
Disponibilita disponibilita = (Disponibilita) iterator.next(); Disponibilita disponibilita = iterator.next();
disponibilita.setDisponibile(true); disponibilita.setDisponibile(true);
disponibilitaLocalService.updateDisponibilita(disponibilita); disponibilitaLocalService.updateDisponibilita(disponibilita);
} }
@ -307,8 +307,8 @@ public class DisponibilitaLocalServiceImpl extends DisponibilitaLocalServiceBase
} }
//Bug 32935 //Bug 32935
else{ else{
for (Iterator iterator = results.iterator(); iterator.hasNext();) { for (Iterator<Disponibilita> iterator = results.iterator(); iterator.hasNext();) {
Disponibilita disponibilita = (Disponibilita) iterator.next(); Disponibilita disponibilita = iterator.next();
disponibilita.setDisponibile(true); disponibilita.setDisponibile(true);
disponibilitaLocalService.updateDisponibilita(disponibilita); disponibilitaLocalService.updateDisponibilita(disponibilita);
} }
@ -397,7 +397,6 @@ public class DisponibilitaLocalServiceImpl extends DisponibilitaLocalServiceBase
public List<Disponibilita> findByFunzionarioStartDate(long funzionarioId, Date date, int startRow, int endRow) throws SystemException { public List<Disponibilita> findByFunzionarioStartDate(long funzionarioId, Date date, int startRow, int endRow) throws SystemException {
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH); Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
Date end = DateUtils.addHours(start, 22);
DynamicQuery dynamicQuery = dynamicQuery(); DynamicQuery dynamicQuery = dynamicQuery();

60
liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java

@ -5,7 +5,6 @@ import it.tref.portos.calendar.appointments.model.Prenotazione;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
@ -14,8 +13,6 @@ import java.util.regex.Pattern;
import javax.mail.internet.AddressException; import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress; import javax.mail.internet.InternetAddress;
import org.apache.log4j.net.TelnetAppender;
import com.liferay.mail.service.MailServiceUtil; import com.liferay.mail.service.MailServiceUtil;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.mail.MailMessage; import com.liferay.portal.kernel.mail.MailMessage;
@ -27,15 +24,19 @@ import com.liferay.util.portlet.PortletProps;
public class CalendarUtil { public class CalendarUtil {
public static void inviaEmailRichiestaAppuntamento(long userIdProfessionista, long userIdFunzionario, Date startDate, String telefono, String emailFeUser) throws SystemException, AddressException{ public static void inviaEmailRichiestaAppuntamento(long userIdProfessionista, long userIdFunzionario,
Date startDate, String telefono, String emailFeUser) throws SystemException, AddressException {
User professionista = UserLocalServiceUtil.fetchUser(userIdProfessionista); User professionista = UserLocalServiceUtil.fetchUser(userIdProfessionista);
User boUser = UserLocalServiceUtil.fetchUser(userIdFunzionario); User boUser = UserLocalServiceUtil.fetchUser(userIdFunzionario);
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(professionista.getEmailAddress()) : null; InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(boUser.getEmailAddress()) : null; professionista.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(emailFeUser) ? new InternetAddress(emailFeUser) : null; InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(
boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(emailFeUser) ? new InternetAddress(
emailFeUser) : null;
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
@ -55,11 +56,10 @@ public class CalendarUtil {
mailMessage.setBCC(bccAddress); mailMessage.setBCC(bccAddress);
mailMessage.setSubject("Notifica Richiesta Appuntamento Portos"); mailMessage.setSubject("Notifica Richiesta Appuntamento Portos");
mailMessage.setBody(creaCorpoMailRichiestaAppuntamento(professionista, boUser, startDate, telefono, emailFeUser)); mailMessage.setBody(creaCorpoMailRichiestaAppuntamento(professionista, boUser, startDate, telefono,
emailFeUser));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/* /*
* Invio email * Invio email
*/ */
@ -67,15 +67,19 @@ public class CalendarUtil {
} }
public static void inviaEmailAnnullamentoAppuntamento(Prenotazione prenotazione) throws SystemException, AddressException{ public static void inviaEmailAnnullamentoAppuntamento(Prenotazione prenotazione) throws SystemException,
AddressException {
User professionista = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId()); User professionista = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId());
User boUser = UserLocalServiceUtil.fetchUser(prenotazione.getFunzionarioId()); User boUser = UserLocalServiceUtil.fetchUser(prenotazione.getFunzionarioId());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(professionista.getEmailAddress()) : null; InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(boUser.getEmailAddress()) : null; professionista.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(prenotazione.getEmail()) ? new InternetAddress(prenotazione.getEmail()) : null; InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(
boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(prenotazione.getEmail()) ? new InternetAddress(
prenotazione.getEmail()) : null;
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
@ -105,10 +109,11 @@ public class CalendarUtil {
} }
public static void inviaEmailReminderAppuntamenti(List<Prenotazione> lista, User userBo, Date tomorrow)
throws SystemException, AddressException {
public static void inviaEmailReminderAppuntamenti(List<Prenotazione> lista, User userBo, Date tomorrow) throws SystemException, AddressException{ InternetAddress toAddress = isAllowedEmailAddress(userBo.getEmailAddress()) ? new InternetAddress(
userBo.getEmailAddress()) : null;
InternetAddress toAddress = isAllowedEmailAddress(userBo.getEmailAddress()) ? new InternetAddress(userBo.getEmailAddress()) : null;
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
@ -125,8 +130,8 @@ public class CalendarUtil {
} }
private static String creaCorpoMailReminder(List<Prenotazione> lista, User boUser, Date tomorrow)
private static String creaCorpoMailReminder(List<Prenotazione> lista , User boUser, Date tomorrow) throws SystemException{ throws SystemException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
@ -137,9 +142,7 @@ public class CalendarUtil {
/* /*
* Gestione header * Gestione header
*/ */
sb.append("<html><head><title>Appuntamenti del " sb.append("<html><head><title>Appuntamenti del " + sdf.format(tomorrow) + "</title></head><body>");
+ sdf.format(tomorrow)
+ "</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Gentile " + boUser.getFullName() + " ,"); sb.append("Gentile " + boUser.getFullName() + " ,");
@ -168,19 +171,17 @@ public class CalendarUtil {
} }
sb.append("</body></html>"); sb.append("</body></html>");
return sb.toString(); return sb.toString();
} }
private static String creaCorpoMailRichiestaAppuntamento(User professionista, User boUser,
private static String creaCorpoMailRichiestaAppuntamento(User professionista, User boUser, Date dataAppuntamento, String telefono, String mail){ Date dataAppuntamento, String telefono, String mail) {
SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy"); SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm"); SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/* /*
@ -218,7 +219,6 @@ public class CalendarUtil {
SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy"); SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm"); SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/* /*
@ -253,8 +253,10 @@ public class CalendarUtil {
} }
private static boolean isAllowedEmailAddress(String emailAddress) { private static boolean isAllowedEmailAddress(String emailAddress) {
final String[] NOT_ALLOWED_EMAIL_DOMAINS = PortletProps.getArray(PortletPropsKeys.EMAIL_DOMAINS_NOT_ALLOWED); final String[] NOT_ALLOWED_EMAIL_DOMAINS = PortletProps
final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(PortletProps.get(PortletPropsKeys.EMAIL_VALIDATOR_REGEXP), Pattern.CASE_INSENSITIVE); .getArray(PortletPropsKeys.EMAIL_DOMAINS_NOT_ALLOWED);
final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(
PortletProps.get(PortletPropsKeys.EMAIL_VALIDATOR_REGEXP), Pattern.CASE_INSENSITIVE);
boolean isAllowed = true; boolean isAllowed = true;

2
liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath

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

7
liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/docroot/WEB-INF/src/it/tref/portos/comunicazione/ComunicazioneMediata.java

@ -33,15 +33,16 @@ public class ComunicazioneMediata extends MVCPortlet {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica)) { if (Validator.isNotNull(intPratica)) {
ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(), intPratica.getIntPraticaId(), domanda, ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(),
serviceContext); intPratica.getIntPraticaId(), domanda, serviceContext);
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error(e, e); _log.error(e, e);
} }
} }
public void updateComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException { public void updateComunicazione(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException {
long comunicazioneId = ParamUtil.getLong(actionRequest, "comunicazioneId"); long comunicazioneId = ParamUtil.getLong(actionRequest, "comunicazioneId");
String risposta = ParamUtil.getString(actionRequest, "risposta"); String risposta = ParamUtil.getString(actionRequest, "risposta");
try { try {

2
liferay-plugins-sdk-6.2/portlets/portos-cookies-portlet/.classpath

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

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

@ -1,6 +1,5 @@
package it.tref.liferay.portos.cookies.action; package it.tref.liferay.portos.cookies.action;
import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
@ -47,29 +46,32 @@ public class StartUpAction extends SimpleAction {
} }
} }
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type, private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name,
boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException { int type, boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions)
throws SystemException {
long classNameId = PortalUtil.getClassNameId(className); long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null; ExpandoTable expandoTable = null;
try { try {
expandoTable = expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME); ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e) { } catch (PortalException e) {
try { try {
expandoTable = expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME); ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) { } catch (PortalException e1) {
} }
} }
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name); ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil
.getColumn(expandoTable.getTableId(), name);
if (expandoColumn == null) { if (expandoColumn == null) {
try { try {
expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type); expandoColumn = ExpandoColumnLocalServiceUtil
.addColumn(expandoTable.getTableId(), name, type);
} catch (PortalException e) { } catch (PortalException e) {
} }
@ -104,15 +106,15 @@ public class StartUpAction extends SimpleAction {
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
guestActions); String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
defaultActions); String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
defaultActions); String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions);
} catch (PortalException e) { } catch (PortalException e) {
} }

3
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.classpath

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>
@ -18,5 +18,6 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/> <attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=portos-deploy-alert-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

1
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/.project

@ -32,5 +32,6 @@
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures> </natures>
</projectDescription> </projectDescription>

17
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java

@ -32,10 +32,11 @@ public class DeployAction extends SimpleAction {
@Override @Override
public void run(final String[] ids) throws ActionException { public void run(final String[] ids) throws ActionException {
/* /*
* ServiceContext serviceContext = DeployAlertUtil.getServiceContext(); try { * ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
* PermissionThreadLocal * try { PermissionThreadLocal
* .setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil * .setPermissionChecker(PermissionCheckerFactoryUtil
* .getUser(serviceContext.getUserId()))); } catch (Exception e) { _log.error(e, e); } * .create(UserLocalServiceUtil .getUser(serviceContext.getUserId())));
* } catch (Exception e) { _log.error(e, e); }
* DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext); * DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext);
* DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext); * DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext);
*/ */
@ -61,8 +62,8 @@ public class DeployAction extends SimpleAction {
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento); NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
notifications = notifications = NotificationMailLocalServiceUtil.findNotifications(
NotificationMailLocalServiceUtil.findNotifications(PortalUtil.getDefaultCompanyId(), nomePlugin); PortalUtil.getDefaultCompanyId(), nomePlugin);
for (int i = 0; i < notifications.size(); i++) { for (int i = 0; i < notifications.size(); i++) {
@ -79,8 +80,8 @@ public class DeployAction extends SimpleAction {
JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento); JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento);
ServiceContext serviceContext = DeployAlertUtil.getServiceContext(); ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
MailManagerUtil.sendMailByTemplateName(Company.class.toString(), serviceContext.getCompanyId(), MailManagerUtil.sendMailByTemplateName(Company.class.toString(),
templateName, parametri, serviceContext); serviceContext.getCompanyId(), templateName, parametri, serviceContext);
} }
} catch (Exception e) { } catch (Exception e) {

15
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationLogLocalServiceImpl.java

@ -28,12 +28,14 @@ import java.util.Date;
/** /**
* The implementation of the notification log local service. * The implementation of the notification log local service.
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationLogLocalService} interface. * {@link it.tref.liferay.portos.deployalert.service.NotificationLogLocalService}
* interface.
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Matteo * @author Matteo
@ -42,7 +44,8 @@ import java.util.Date;
*/ */
public class NotificationLogLocalServiceImpl extends NotificationLogLocalServiceBaseImpl { public class NotificationLogLocalServiceImpl extends NotificationLogLocalServiceBaseImpl {
public NotificationLog addNotification(String nomePlugin, String tipo) throws SystemException, PortalException { public NotificationLog addNotification(String nomePlugin, String tipo) throws SystemException,
PortalException {
Date now = new Date(); Date now = new Date();

29
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationMailLocalServiceImpl.java

@ -37,12 +37,14 @@ import java.util.List;
/** /**
* The implementation of the notification mail local service. * The implementation of the notification mail local service.
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationMailLocalService} interface. * {@link it.tref.liferay.portos.deployalert.service.NotificationMailLocalService}
* interface.
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Matteo * @author Matteo
@ -51,8 +53,8 @@ import java.util.List;
*/ */
public class NotificationMailLocalServiceImpl extends NotificationMailLocalServiceBaseImpl { public class NotificationMailLocalServiceImpl extends NotificationMailLocalServiceBaseImpl {
public NotificationMail addNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext) public NotificationMail addNotification(String nomePlugin, String nomeTemplate,
throws PortalException, SystemException { ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(serviceContext.getUserId()); User user = userPersistence.findByPrimaryKey(serviceContext.getUserId());
@ -89,8 +91,8 @@ public class NotificationMailLocalServiceImpl extends NotificationMailLocalServi
} }
} }
public NotificationMail updateNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext, public NotificationMail updateNotification(String nomePlugin, String nomeTemplate,
long notificationId) throws SystemException, PortalException { ServiceContext serviceContext, long notificationId) throws SystemException, PortalException {
Date now = new Date(); Date now = new Date();
@ -108,9 +110,11 @@ public class NotificationMailLocalServiceImpl extends NotificationMailLocalServi
return notification; return notification;
} }
public List<NotificationMail> findNotifications(long companyId, int start, int end) throws SystemException { public List<NotificationMail> findNotifications(long companyId, int start, int end)
throws SystemException {
// return notificationMailPersistence.findBycompanyId(companyId, start, end); // return notificationMailPersistence.findBycompanyId(companyId, start,
// end);
DynamicQuery query = notificationMailLocalService.dynamicQuery(); DynamicQuery query = notificationMailLocalService.dynamicQuery();
query.addOrder(OrderFactoryUtil.asc("nomePlugin")); query.addOrder(OrderFactoryUtil.asc("nomePlugin"));
List<NotificationMail> notifications = null; List<NotificationMail> notifications = null;
@ -132,7 +136,8 @@ public class NotificationMailLocalServiceImpl extends NotificationMailLocalServi
return notificationMailPersistence.countBycompanyId(companyId); return notificationMailPersistence.countBycompanyId(companyId);
} }
public List<NotificationMail> findNotifications(long companyId, String servletContextName) throws SystemException { public List<NotificationMail> findNotifications(long companyId, String servletContextName)
throws SystemException {
DynamicQuery dynamicQuery = notificationMailLocalService.dynamicQuery(); DynamicQuery dynamicQuery = notificationMailLocalService.dynamicQuery();

13
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationMailServiceImpl.java

@ -20,10 +20,15 @@ import it.tref.liferay.portos.deployalert.service.base.NotificationMailServiceBa
* The implementation of the notification mail remote service. * The implementation of the notification mail remote service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.deployalert.service.NotificationMailService} 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.deployalert.service.NotificationMailService}
* interface.
* *
* <p> * <p>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. * This is a remote service. Methods of this service are expected to have
* security checks based on the propagated JAAS credentials because this service
* can be accessed remotely.
* </p> * </p>
* *
* @author Matteo * @author Matteo
@ -34,6 +39,8 @@ public class NotificationMailServiceImpl extends NotificationMailServiceBaseImpl
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.deployalert.service.NotificationMailServiceUtil} to access the notification mail remote service. * Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.deployalert.service.NotificationMailServiceUtil}
* to access the notification mail remote service.
*/ */
} }

13
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/util/DeployAlertUtil.java

@ -42,7 +42,8 @@ public class DeployAlertUtil {
serviceContext.setUserId(userAdminId); serviceContext.setUserId(userAdminId);
serviceContext.setScopeGroupId(company.getGroupId()); serviceContext.setScopeGroupId(company.getGroupId());
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil.getUser(userAdminId))); PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil
.create(UserLocalServiceUtil.getUser(userAdminId)));
} catch (Exception e) { } catch (Exception e) {
_log.error(e, e); _log.error(e, e);
} }
@ -58,9 +59,8 @@ public class DeployAlertUtil {
String[] to = { "matteoguggia97@gmail.com" }; String[] to = { "matteoguggia97@gmail.com" };
try { try {
add = add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE,
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE, "test@3fconsulting.it", to, null, "test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
null, subject, body, false, serviceContext);
} catch (SystemException e) { } catch (SystemException e) {
_log.error(e, e); _log.error(e, e);
} }
@ -77,9 +77,8 @@ public class DeployAlertUtil {
String[] to = { "matteoguggia97@gmail.com" }; String[] to = { "matteoguggia97@gmail.com" };
try { try {
add = add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE,
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE, "test@3fconsulting.it", to, null, "test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
null, subject, body, false, serviceContext);
} catch (SystemException e) { } catch (SystemException e) {
_log.error(e, e); _log.error(e, e);
} }

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

@ -13,8 +13,8 @@
## ##
build.namespace=DA build.namespace=DA
build.number=8 build.number=9
build.date=1569596730980 build.date=1606299034524
build.auto.upgrade=true build.auto.upgrade=true
## ##

4
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml

@ -7,12 +7,12 @@
xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd"
> >
<info module="portos-deploy-alert-portlet" organisation="com.liferay"> <info module="portos-deploy-alert-portlet" organisation="com.liferay">
<extends extendType="configurations,description,info" location="${sdk.dir}/ivy.xml" module="com.liferay.sdk" organisation="com.liferay" revision="latest.integration" /> <extends extendType="configurations,description,info" location="../../ivy.xml" module="com.liferay.sdk" organisation="com.liferay" revision="latest.integration" />
</info> </info>
<dependencies defaultconf="default"> <dependencies defaultconf="default">
<dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" /> <dependency conf="test->default" name="arquillian-junit-container" org="org.jboss.arquillian.junit" rev="1.1.6.Final" />
<dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" /> <dependency conf="test->default" name="arquillian-tomcat-remote-7" org="org.jboss.arquillian.container" rev="1.0.0.CR6" />
<dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0-SNAPSHOT" /> <dependency conf="test->default" name="com.liferay.ant.arquillian" org="com.liferay" rev="1.0.0" />
</dependencies> </dependencies>
</ivy-module> </ivy-module>

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

@ -51,9 +51,6 @@ import javax.portlet.ResourceResponse;
import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.codec.digest.DigestUtils;
/**
* Portlet implementation class FascicoloFePortlet
*/
public class AllegatiPraticaPortlet extends MVCPortlet { public class AllegatiPraticaPortlet extends MVCPortlet {
private static Log _log = LogFactoryUtil.getLog(AllegatiPraticaPortlet.class); private static Log _log = LogFactoryUtil.getLog(AllegatiPraticaPortlet.class);
@ -151,8 +148,7 @@ public class AllegatiPraticaPortlet extends MVCPortlet {
long dettPraticaIdRimozione = 0; long dettPraticaIdRimozione = 0;
Date dtDataRimozione = null; Date dtDataRimozione = null;
// TODO attenzione perche' questo controllo potrebbe non // TODO attenzione perche' questo controllo potrebbe non
// andare bene per integrazioni e // andare bene per integrazioni e varianti
// varianti
boolean isUnivoco = DocumentiPraticaUtil.getDocUnivoci().contains(tipologia); boolean isUnivoco = DocumentiPraticaUtil.getDocUnivoci().contains(tipologia);
if (isUnivoco if (isUnivoco
&& DocPraticaLocalServiceUtil.countByClassPk_Tipologia(classPk, tipologia) > 0) { && DocPraticaLocalServiceUtil.countByClassPk_Tipologia(classPk, tipologia) > 0) {

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

@ -114,9 +114,6 @@ import com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil;
import com.liferay.portlet.documentlibrary.util.DLUtil; import com.liferay.portlet.documentlibrary.util.DLUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.bridges.mvc.MVCPortlet;
/**
* Portlet implementation class FascicoloFePortlet
*/
public class FascicoloFePortlet extends MVCPortlet { public class FascicoloFePortlet extends MVCPortlet {
private static Log _log = LogFactoryUtil.getLog(FascicoloFePortlet.class); private static Log _log = LogFactoryUtil.getLog(FascicoloFePortlet.class);

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

@ -24,9 +24,6 @@ import java.io.File;
import javax.portlet.ActionRequest; import javax.portlet.ActionRequest;
import javax.portlet.ActionResponse; import javax.portlet.ActionResponse;
/**
* Portlet implementation class FascicoloFePortlet
*/
public class ParereGeologoPortlet extends MVCPortlet { public class ParereGeologoPortlet extends MVCPortlet {
private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class); private static Log _log = LogFactoryUtil.getLog(ParereGeologoPortlet.class);

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

@ -29,9 +29,6 @@ import javax.portlet.ResourceResponse;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
/**
* Portlet implementation class RicercaAvvisiGenioCivilePortlet
*/
public class RicercaPratichePortlet extends MVCPortlet { public class RicercaPratichePortlet extends MVCPortlet {
private final static Logger _log = Logger.getLogger(RicercaPratichePortlet.class); private final static Logger _log = Logger.getLogger(RicercaPratichePortlet.class);

5
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/Constants.java

@ -1,5 +0,0 @@
package it.tref.liferay.portos.fe.util;
public interface Constants extends com.liferay.portal.kernel.util.Constants {
}

3
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java

@ -4,9 +4,6 @@ import java.io.Serializable;
public class ReportFascicoloBean implements Serializable{ public class ReportFascicoloBean implements Serializable{
/**
*
*/
private static final long serialVersionUID = 4921215218965971793L; private static final long serialVersionUID = 4921215218965971793L;
public ReportFascicoloBean(){ public ReportFascicoloBean(){

2
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath

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

BIN
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

4
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/ExtractorResponse.java

@ -8,14 +8,10 @@ public class ExtractorResponse {
private List<String> cf; private List<String> cf;
public boolean isSuccess() { public boolean isSuccess() {
return success; return success;
} }
public List<String> getCf() { public List<String> getCf() {
return cf; return cf;
} }
} }

42
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java

@ -22,15 +22,20 @@ public class FirmaGetUtil {
configurazione.put("MESSAGGIO_FIRMA_FILE_OK", "File caricato e salvato correttamente"); configurazione.put("MESSAGGIO_FIRMA_FILE_OK", "File caricato e salvato correttamente");
configurazione.put("MESSAGGIO_EFFETTUARE_LOGIN", "Effettuare il login per continuare"); configurazione.put("MESSAGGIO_EFFETTUARE_LOGIN", "Effettuare il login per continuare");
configurazione.put("ERRORE_TOKEN_SCADUTO", "Effettuare il login, sessione scaduta"); configurazione.put("ERRORE_TOKEN_SCADUTO", "Effettuare il login, sessione scaduta");
configurazione.put("MESSAGGIO_RIFIUTO_ERRORE", "Si è verificato un errore durante il tentativo di rifiuto del file"); configurazione.put("MESSAGGIO_RIFIUTO_ERRORE",
"Si è verificato un errore durante il tentativo di rifiuto del file");
configurazione.put("RIFIUTA", "true"); configurazione.put("RIFIUTA", "true");
configurazione.put("APRI_PRATICA_DISABILITATO_PER_DOCUMENTO", "v"); configurazione.put("APRI_PRATICA_DISABILITATO_PER_DOCUMENTO", "v");
configurazione.put("MESSAGGIO_FIRMA_ATTESA", "Attesa"); configurazione.put("MESSAGGIO_FIRMA_ATTESA", "Attesa");
configurazione.put("MESSAGGIO_NO_UTENTE", "Controllare di aver inserito la corretta smart card nel lettore"); configurazione.put("MESSAGGIO_NO_UTENTE",
configurazione.put("MESSAGGIO_ERRORE_APPLICAZIONE", "Errore imprevisto, riprovare ad eseguire l'operazione; se l'errore persiste contattare l'assistenza"); "Controllare di aver inserito la corretta smart card nel lettore");
configurazione
.put("MESSAGGIO_ERRORE_APPLICAZIONE",
"Errore imprevisto, riprovare ad eseguire l'operazione; se l'errore persiste contattare l'assistenza");
configurazione.put("TITOLO_APPLICAZIONE_FIRMA", "Applicazione di firma"); configurazione.put("TITOLO_APPLICAZIONE_FIRMA", "Applicazione di firma");
configurazione.put("MESSAGGIO_FIRMA", "Inizio firma del file in corso"); configurazione.put("MESSAGGIO_FIRMA", "Inizio firma del file in corso");
configurazione.put("MESSAGGIO_FILE_FIRMA_NON_PRESENTI", "Nessuno dei file selezionati è più disponibile"); configurazione.put("MESSAGGIO_FILE_FIRMA_NON_PRESENTI",
"Nessuno dei file selezionati è più disponibile");
configurazione.put("SMART_CARD_LETTURA_CF", "SERIALNUMBER"); configurazione.put("SMART_CARD_LETTURA_CF", "SERIALNUMBER");
configurazione.put("RIFIUTA_ASSEGNA_PER_PRATICA", " - "); configurazione.put("RIFIUTA_ASSEGNA_PER_PRATICA", " - ");
configurazione.put("RIFIUTA_CAMBIA_FASE", "false"); configurazione.put("RIFIUTA_CAMBIA_FASE", "false");
@ -39,28 +44,37 @@ public class FirmaGetUtil {
configurazione.put("MESSAGGIO_NO_PRATICA", "Impossibile accedere alla pratica"); configurazione.put("MESSAGGIO_NO_PRATICA", "Impossibile accedere alla pratica");
configurazione.put("MESSAGGIO_RIFIUTO_OK", "Rifiuto del file avvenuto con successo"); configurazione.put("MESSAGGIO_RIFIUTO_OK", "Rifiuto del file avvenuto con successo");
configurazione.put("MESSAGGIO_FIRMA_RECUPERO_FILE_OK", "Recupero file avvenuto con successo"); configurazione.put("MESSAGGIO_FIRMA_RECUPERO_FILE_OK", "Recupero file avvenuto con successo");
configurazione.put("MESSAGGIO_NO_CARTA_IMPOSTATA", "Carta non impostata, procedere con la configurazione prima di proseguire"); configurazione.put("MESSAGGIO_NO_CARTA_IMPOSTATA",
configurazione.put("MESSAGGIO_SELEZIONARE_FILE_FIRMA", "Selezionare almeno un file prima di premere firma"); "Carta non impostata, procedere con la configurazione prima di proseguire");
configurazione.put("MESSAGGIO_SELEZIONARE_FILE_FIRMA",
"Selezionare almeno un file prima di premere firma");
configurazione.put("MODALITA_VISIONE_FILE_ALLA_FIRMA", "documento"); configurazione.put("MODALITA_VISIONE_FILE_ALLA_FIRMA", "documento");
configurazione.put("MESSAGGIO_NO_CERTIFICATI_VALIDI", "Non è stato trovato alcun certificato o i certificati non sono validi"); configurazione.put("MESSAGGIO_NO_CERTIFICATI_VALIDI",
"Non è stato trovato alcun certificato o i certificati non sono validi");
configurazione.put("MESSAGGIO_FIRMA_ERRORE_FIRMA", "Errore durante il tentativo di firma"); configurazione.put("MESSAGGIO_FIRMA_ERRORE_FIRMA", "Errore durante il tentativo di firma");
configurazione.put("CARTELLA_FILE_VISUALIZZATI", "/file-firma-tmp/"); configurazione.put("CARTELLA_FILE_VISUALIZZATI", "/file-firma-tmp/");
configurazione.put("RIFIUTA_CAMBIA_FASE_PER_PRATICA", " - "); configurazione.put("RIFIUTA_CAMBIA_FASE_PER_PRATICA", " - ");
configurazione.put("MODALITA_VISIONE_FILE_ALLA_FIRMA_PER_DOCUMENTO", "v"); configurazione.put("MODALITA_VISIONE_FILE_ALLA_FIRMA_PER_DOCUMENTO", "v");
configurazione.put("RIFIUTA_ASSEGNA_PER_DOCUMENTO", " - "); configurazione.put("RIFIUTA_ASSEGNA_PER_DOCUMENTO", " - ");
configurazione.put("VISUALIZZA_FILE_DISABILITATO_PER_PRATICA", " - "); configurazione.put("VISUALIZZA_FILE_DISABILITATO_PER_PRATICA", " - ");
configurazione.put("INFORMAZIONI", "Applicazione firma è stata realizzata da 3FConsulting e distribuito sotto licenze GPL v.2. Il codice è basato sul prodotto j4sign (http://j4sign.sourceforge.net/) per il quale si ringraziano gli autori per il loro contributo."); configurazione
.put("INFORMAZIONI",
"Applicazione firma è stata realizzata da 3FConsulting e distribuito sotto licenze GPL v.2. Il codice è basato sul prodotto j4sign (http://j4sign.sourceforge.net/) per il quale si ringraziano gli autori per il loro contributo.");
configurazione.put("RIFIUTA_DISABILITATO_PER_PRATICA", " - "); configurazione.put("RIFIUTA_DISABILITATO_PER_PRATICA", " - ");
configurazione.put("NO_FILE", "Nessun file da firmare presente"); configurazione.put("NO_FILE", "Nessun file da firmare presente");
configurazione.put("MESSAGGIO_SELEZIONARE_FILE_RIFIUTA", "Selezionare almeno un file prima di premere rifiuta"); configurazione.put("MESSAGGIO_SELEZIONARE_FILE_RIFIUTA",
"Selezionare almeno un file prima di premere rifiuta");
configurazione.put("MODALITA_LOGIN", "codice_fiscale"); configurazione.put("MODALITA_LOGIN", "codice_fiscale");
configurazione.put("VISUALIZZA_FILE", "true"); configurazione.put("VISUALIZZA_FILE", "true");
configurazione.put("APRI_PRATICA_DISABILITATO_PER_PRATICA", " - "); configurazione.put("APRI_PRATICA_DISABILITATO_PER_PRATICA", " - ");
configurazione.put("SMART_CARD_LETTURA_NOME", "GIVENNAME"); configurazione.put("SMART_CARD_LETTURA_NOME", "GIVENNAME");
configurazione.put("VISUALIZZA_FILE_DISABILITATO_PER_DOCUMENTO", " - "); configurazione.put("VISUALIZZA_FILE_DISABILITATO_PER_DOCUMENTO", " - ");
configurazione.put("MESSAGGIO_FIRMA_TOKEN_ERRORE_FIRMA", "Errore durante il tentativo di firma del file necessario al login, controllare di aver inserito correttamente la smart card"); configurazione
.put("MESSAGGIO_FIRMA_TOKEN_ERRORE_FIRMA",
"Errore durante il tentativo di firma del file necessario al login, controllare di aver inserito correttamente la smart card");
configurazione.put("RIFIUTA_ASSEGNA", "false"); configurazione.put("RIFIUTA_ASSEGNA", "false");
configurazione.put("MESSAGGIO_FILE_RIFIUTA_NON_PRESENTI", "Nessuno dei file selezionati è più disponibile"); configurazione.put("MESSAGGIO_FILE_RIFIUTA_NON_PRESENTI",
"Nessuno dei file selezionati è più disponibile");
configurazione.put("RIFIUTA_CAMBIA_FASE_PER_DOCUMENTO", "a, ap, v"); configurazione.put("RIFIUTA_CAMBIA_FASE_PER_DOCUMENTO", "a, ap, v");
configurazione.put("APRI_PRATICA", "true"); configurazione.put("APRI_PRATICA", "true");
configurazione.put("MESSAGGIO_FIRMA_RECUPERO_FILE", "Recupero file in corso"); configurazione.put("MESSAGGIO_FIRMA_RECUPERO_FILE", "Recupero file in corso");
@ -68,8 +82,10 @@ public class FirmaGetUtil {
configurazione.put("RIFIUTA_DISABILITATO_PER_DOCUMENTO", "v"); configurazione.put("RIFIUTA_DISABILITATO_PER_DOCUMENTO", "v");
configurazione.put("MESSAGGIO_FIRMA_COPLETATA", "Procedura di firma completata con successo"); configurazione.put("MESSAGGIO_FIRMA_COPLETATA", "Procedura di firma completata con successo");
configurazione.put("MESSAGGIO_RIFIUTO_COPLETATA", "Procedura di rifiuto completata con successo"); configurazione.put("MESSAGGIO_RIFIUTO_COPLETATA", "Procedura di rifiuto completata con successo");
configurazione.put("MESSAGGIO_FIRMA_ERRORE_BLOCCANTE", "Attenzione errore imprevisto durante la procedura di firma"); configurazione.put("MESSAGGIO_FIRMA_ERRORE_BLOCCANTE",
configurazione.put("MESSAGGIO_RIFIUTO_ERRORE_BLOCCANTE", "Attenzione errore imprevisto durante la procedura di rifiuto"); "Attenzione errore imprevisto durante la procedura di firma");
configurazione.put("MESSAGGIO_RIFIUTO_ERRORE_BLOCCANTE",
"Attenzione errore imprevisto durante la procedura di rifiuto");
configurazione.put("MESSAGGIO_FIRMA_IN_CORSO", "Firma dei file in corso..."); configurazione.put("MESSAGGIO_FIRMA_IN_CORSO", "Firma dei file in corso...");
configurazione.put("SELEZIONA_DOCUMENTO_SENZA_VISUALIZZAZIONE", "Documento senza visualizzazione"); configurazione.put("SELEZIONA_DOCUMENTO_SENZA_VISUALIZZAZIONE", "Documento senza visualizzazione");
risposta.setRisposta(RispostaCostanti.OK); risposta.setRisposta(RispostaCostanti.OK);

2
liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath

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

17
liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/service/impl/KaleoInstanceLocalServiceImpl.java

@ -20,21 +20,28 @@ import it.tref.liferay.portos.kaleo.controller.service.base.KaleoInstanceLocalSe
* The implementation of the kaleo instance local service. * The implementation of the kaleo instance local service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.kaleo.controller.service.KaleoInstanceLocalService} 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.kaleo.controller.service.KaleoInstanceLocalService}
* interface.
* *
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM. * This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author 3FC * @author 3FC
* @see it.tref.liferay.portos.kaleo.controller.service.base.KaleoInstanceLocalServiceBaseImpl * @see it.tref.liferay.portos.kaleo.controller.service.base.KaleoInstanceLocalServiceBaseImpl
* @see it.tref.liferay.portos.kaleo.controller.service.KaleoInstanceLocalServiceUtil * @see it.tref.liferay.portos.kaleo.controller.service.KaleoInstanceLocalServiceUtil
*/ */
public class KaleoInstanceLocalServiceImpl public class KaleoInstanceLocalServiceImpl extends KaleoInstanceLocalServiceBaseImpl {
extends KaleoInstanceLocalServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.kaleo.controller.service.KaleoInstanceLocalServiceUtil} to access the kaleo instance local service. * Never reference this interface directly. Always use {@link
* it.tref.liferay
* .portos.kaleo.controller.service.KaleoInstanceLocalServiceUtil} to access
* the kaleo instance local service.
*/ */
} }

3
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<classpath> <classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/> <classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79"> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes> <attributes>
<attribute name="owner.project.facets" value="java"/> <attribute name="owner.project.facets" value="java"/>
</attributes> </attributes>
@ -18,5 +18,6 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/> <attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=portos-log-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/> <classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath> </classpath>

1
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project

@ -32,5 +32,6 @@
<nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures> </natures>
</projectDescription> </projectDescription>

1
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/build.xml

@ -3,5 +3,4 @@
<project name="portos-log-portlet" basedir="." default="deploy"> <project name="portos-log-portlet" basedir="." default="deploy">
<import file="../build-common-portlet.xml" /> <import file="../build-common-portlet.xml" />
<property name="import.shared" value="portos-log-shared" />
</project> </project>

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/UserAgentUtils-1.19.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/UserAgentUtils.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-broker-5.9.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-broker.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-camel-5.9.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-camel.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-client-5.9.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-client.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-jms-pool-5.9.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-jms-pool.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-openwire-legacy-5.9.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-openwire-legacy.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-pool-5.9.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-pool.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-spring.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/aopalliance-1.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/aopalliance.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-core-2.17.6.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-core.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-jms-2.17.6.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-jms.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-spring-2.17.6.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-spring.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-codec.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-logging.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-pool.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-j2ee-management_1.1_spec.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jms_1.1_spec.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jta_1.0.1B_spec-1.0.1.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jta_1.0.1B_spec.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/guava-16.0.1.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/guava.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/hawtbuf-1.9.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/hawtbuf.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpclient-4.0.1.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpclient.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpcore-4.0.1.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpcore.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-annotations-2.6.0.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-annotations.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core-asl-1.9.11.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core-asl.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core-2.6.3.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-databind-2.6.3.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-databind.jar

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/javax.inject-1.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/javax.inject.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jaxb-core.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jaxb-impl.jar

File binario non mostrato.

0
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jsr305-1.3.9.jar → liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jsr305.jar

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jstl-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jstl-impl.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/log4j.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/slf4j-api.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-aop.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-beans.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-context-support.jar

File binario non mostrato.

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

Caricamento…
Annulla
Salva