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. 22
      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. 107
      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. 24
      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. 96
      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. 42
      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. 17
      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"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</attributes>

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

@ -8,53 +8,39 @@ import com.liferay.portlet.documentlibrary.util.DLPreviewableProcessor;
import java.util.List;
public class P7mPreview extends DLPreviewableProcessor{
public class P7mPreview extends DLPreviewableProcessor {
@Override
public void afterPropertiesSet() throws Exception {
// TODO Auto-generated method stub
}
@Override
public boolean isSupported(String mimeType) {
// TODO Auto-generated method stub
return false;
}
@Override
protected void doExportGeneratedFiles(
PortletDataContext portletDataContext, FileEntry fileEntry,
protected void doExportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry,
Element fileEntryElement) throws Exception {
// TODO Auto-generated method stub
}
@Override
protected void doImportGeneratedFiles(
PortletDataContext portletDataContext, FileEntry fileEntry,
FileEntry importedFileEntry, Element fileEntryElement)
throws Exception {
// TODO Auto-generated method stub
protected void doImportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry,
FileEntry importedFileEntry, Element fileEntryElement) throws Exception {
}
@Override
protected List<Long> getFileVersionIds() {
// TODO Auto-generated method stub
return null;
}
@Override
protected String getPreviewType(FileVersion fileVersion) {
// TODO Auto-generated method stub
return null;
}
@Override
protected String getThumbnailType(FileVersion fileVersion) {
// TODO Auto-generated method stub
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"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</attributes>

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</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.LogFactoryUtil;
public class ProcessorRouterAuditDatabase implements AuditMessageProcessor {
private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class);
@Override
public void process(AuditMessage auditMessage) throws AuditException {
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 {
private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors =
new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors = new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>();
@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.
*
* <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.audit.service.AuditEventLocalService} 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.audit.service.AuditEventLocalService}
* interface.
*
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author ViVieb srl
@ -51,7 +53,8 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
@Override
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.setUserId(auditMessage.getUserId());
@ -69,29 +72,30 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
auditEvent.setServerPort(auditMessage.getServerPort());
estreazioneAdditionalInfo(auditEvent, auditMessage);
return auditEventPersistence.update(auditEvent);
}
private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) {
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_AUDIT_EVENT_TABLE,
StringPool.BLANK));
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_AUDIT_EVENT_TABLE, StringPool.BLANK));
auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY,
StringPool.BLANK));
auditEvent
.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION, StringPool.BLANK));
auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE, StringPool.BLANK));
auditEvent.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION,
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.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK));
auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_PK, "0l"));
auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_NAME,
StringPool.BLANK));
auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_PK, "0l"));
auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_NAME,
StringPool.BLANK));
auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_PARENT_CLASS_PK, "0l"));
auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_PARENT_CLASS_NAME, StringPool.BLANK));
auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(
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_EVENT_CATEGORY);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION);
@ -112,8 +116,8 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
}
@Override
public List<AuditEvent> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
throws SystemException {
public List<AuditEvent> findByCompanyId(long companyId, int start, int end,
OrderByComparator orderByComparator) throws SystemException {
return auditEventPersistence.findByCompanyId(companyId, start, end, orderByComparator);
}
@ -127,18 +131,19 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
return auditEventPersistence.countByC_ClassNameId(companyId, classNameId);
}
public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK, int start,
int end) throws SystemException {
public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK,
int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end);
}
public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK, int start,
int end, OrderByComparator orderByComparator) throws SystemException {
public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK,
int start, int end, OrderByComparator orderByComparator) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end,
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);
}
@ -162,60 +167,63 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
return dynamicQuery;
}
public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable,
int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_AuditEventTable(companyId, classNameId, auditEventTable, start,
end);
public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId,
String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_AuditEventTable(companyId, classNameId,
auditEventTable, start, end);
}
public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable)
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,
String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK,
auditEventTable, start, end);
public List<AuditEvent> findByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId,
String classPK, String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
classPK, auditEventTable, start, end);
}
public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK,
String auditEventTable) throws SystemException {
return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK,
auditEventTable);
return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
classPK, auditEventTable);
}
/*
* public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long companyId, long
* parentClassNameId, String parentClassPK, int start, int end) throws SystemException { return
* auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId,
* parentClassPK, start, end); }
* public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long
* companyId, long parentClassNameId, String parentClassPK, int start, int
* end) throws SystemException { return
* auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassNameId, parentClassPK, start, end); }
*
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long parentClassNameId,
* String parentClassPK) throws SystemException { return
* auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId,
* parentClassPK); }
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long
* parentClassNameId, String parentClassPK) throws SystemException { return
* auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassNameId, parentClassPK); }
*/
public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId, int start, int end)
throws SystemException {
DynamicQuery dynamicQuery =
createC_Parent_Related_ClassNameId(companyId, parentClassNameId, parentClassPK, relatedClassNameId,
relatedClassPK, classNameId);
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId,
int start, int end) throws SystemException {
DynamicQuery dynamicQuery = createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
parentClassPK, relatedClassNameId, relatedClassPK, classNameId);
dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate"));
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK,
long relatedClassNameId, String relatedClassPK, long classNameId) throws SystemException {
public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId)
throws SystemException {
return (int) auditEventPersistence.countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId,
parentClassNameId, parentClassPK, relatedClassNameId, relatedClassPK, classNameId));
return (int) auditEventPersistence
.countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
parentClassPK, relatedClassNameId, relatedClassPK, classNameId));
}
private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK,
long relatedClassNameId, String relatedClassPK, long classNameId) {
private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId) {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
@ -253,27 +261,31 @@ public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
dis.add(related);
dynamicQuery.add(dis);
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("classNameId")));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("classNameId")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
}
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK)
throws SystemException {
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId,
String classPK) throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable")));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("auditEventTable")));
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.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable")));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("auditEventTable")));
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)
throws SystemException {
OrderByComparator orderByComparator =
OrderByComparatorFactoryUtil.create(AuditEventImpl.TABLE_NAME, "createDate", false);
List<AuditEvent> event =
AuditEventLocalServiceUtil.findByC_ClassNameId_ClassPK(companyId, PortalUtil.getClassNameId(className),
classPK, 0, 1, orderByComparator);
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create(AuditEventImpl.TABLE_NAME,
"createDate", false);
List<AuditEvent> event = AuditEventLocalServiceUtil.findByC_ClassNameId_ClassPK(companyId,
PortalUtil.getClassNameId(className), classPK, 0, 1, orderByComparator);
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.number=16
build.date=1569596657517
build.number=17
build.date=1606300425089
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;
}
// 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,
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() {
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());
// TODO da decidere che data, per adesso si mette quella di
// creazione il numero protocollo
// sbagliato dovrebbe essere il primo
// creazione il numero protocollo sbagliato dovrebbe essere il
// primo
sb.append(" del ");
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
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");
// TODO da decidere che data, per adesso si mette quella di
// creazione il numero protocollo
// sbagliato dovrebbe essere il primo
// creazione il numero protocollo sbagliato dovrebbe essere il
// primo
sb.append(" del ");
sb.append(sdf.format(intPratica.getDtPratica()));
} 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;
/**
* The extended model implementation for the FineLavori service. Represents a row in the
* &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this
* class.
* The extended model implementation for the FineLavori service. Represents a
* row in the &quot;portos_bo_FineLavori&quot; database table, with each column
* mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added,
* rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
* Helper methods and all application logic should be put in this class.
* Whenever methods are added, rerun ServiceBuilder to copy their definitions
* into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -44,13 +44,15 @@ public class FineLavoriImpl extends FineLavoriBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a fine lavori model instance
* should use the {@link it.tref.liferay.portos.bo.model.FineLavori} interface instead.
* Never reference this class directly. All methods that expect a fine
* lavori model instance should use the {@link
* it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() {}
public FineLavoriImpl() {
}
public String getTitle(Locale locale) {
@ -70,8 +72,9 @@ public class FineLavoriImpl extends FineLavoriBaseImpl {
if (Validator.isNotNull(getProtocollo())) {
sb.append(intPratica.getNumeroProgetto());
// TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo
// sbagliato dovrebbe essere il primo
// TODO da decidere che data, per adesso si mette quella di
// creazione il numero protocollo sbagliato dovrebbe essere il
// primo
sb.append(" del ");
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
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
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
}
@ -66,11 +64,8 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
cp = ControlloPraticaLocalServiceUtil.getControlloPratica(model.getClassPK());
this.gestioneWFVarianti(cp, model);
} catch (PortalException | SystemException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// TODO Auto-generated method stub
super.onAfterCreate(model);
}
@ -154,45 +149,33 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
@Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeCreate(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model);
}
@Override
public void onBeforeRemove(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model);
}
@Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeUpdate(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
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 {
long kaleoInstanceTokenId = model.getKaleoInstanceTokenId();
KaleoInstanceToken instanceToken =
KaleoInstanceTokenLocalServiceUtil.fetchKaleoInstanceToken(kaleoInstanceTokenId);
KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil
.fetchKaleoInstanceToken(kaleoInstanceTokenId);
if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) {
@ -35,12 +35,12 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK());
if (_log.isDebugEnabled()) {
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK());
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : "
+ instanceToken.getClassPK());
}
}
}
} catch (SearchException e) {
_log.error(e, e);
} catch (SystemException e) {
@ -53,8 +53,6 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
@Override
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
}
@ -64,8 +62,8 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
try {
long kaleoInstanceTokenId = model.getKaleoInstanceTokenId();
KaleoInstanceToken instanceToken =
KaleoInstanceTokenLocalServiceUtil.fetchKaleoInstanceToken(kaleoInstanceTokenId);
KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil
.fetchKaleoInstanceToken(kaleoInstanceTokenId);
if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) {
@ -74,71 +72,56 @@ public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK());
if (_log.isDebugEnabled()) {
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK());
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : "
+ instanceToken.getClassPK());
}
}
}
} catch (SearchException e) {
_log.error(e, e);
} catch (SystemException e) {
_log.error(e, e);
}
super.onAfterRemove(model);
}
@Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
public void onAfterRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onAfterUpdate(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterUpdate(model);
}
@Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeCreate(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model);
}
@Override
public void onBeforeRemove(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model);
}
@Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeUpdate(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
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());
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
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onAfterCreate(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterCreate(model);
}
@ -63,7 +60,8 @@ public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<Kaleo
indexer.reindex(ControlloPratica.class.getName(), model.getClassPK());
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
public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
public void onAfterRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeCreate(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model);
}
@Override
public void onBeforeRemove(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model);
}
@Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeUpdate(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
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" };
_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,
@ -436,27 +436,27 @@ public class ParereGeologoLocalServiceClpInvoker {
return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue());
}
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue());
}
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue());
}
if (_methodName218.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) {
if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue());
}
@ -537,12 +537,12 @@ public class ParereGeologoLocalServiceClpInvoker {
private String[] _methodParameterTypes212;
private String _methodName213;
private String[] _methodParameterTypes213;
private String _methodName214;
private String[] _methodParameterTypes214;
private String _methodName215;
private String[] _methodParameterTypes215;
private String _methodName216;
private String[] _methodParameterTypes216;
private String _methodName217;
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 {
if (codiceBelfiore != null && !codiceBelfiore.startsWith("Z")) {
if (Validator.isNull(codiceProvincia))
throw new CodiceProvinciaException();
if (Validator.isNull(codiceComune))

107
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.
*
* <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.ComunicazioneLocalService} 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.ComunicazioneLocalService}
* interface.
*
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -62,14 +64,14 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to access the comunicazione
* local service.
* it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to
* access the comunicazione local service.
*/
public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext)
throws SystemException, PortalException {
Comunicazione comunicazione =
comunicazionePersistence.create(counterLocalService.increment(Comunicazione.class.getName()));
public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda,
ServiceContext serviceContext) throws SystemException, PortalException {
Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService
.increment(Comunicazione.class.getName()));
User user = userPersistence.findByPrimaryKey(userId);
@ -103,12 +105,14 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
comunicazione = comunicazionePersistence.update(comunicazione);
// resourceLocalService.updateModelResources(comunicazione, serviceContext);
// resourceLocalService.updateModelResources(comunicazione,
// serviceContext);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId())
&& Validator.isNotNull(intPratica.getStatusByUserId())) {
this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(), now);
this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(),
now);
}
return comunicazione;
@ -118,8 +122,8 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
return comunicazionePersistence.findByIntPratica(intPraticaId);
}
public List<Comunicazione> findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator)
throws SystemException {
public List<Comunicazione> findByIntPratica(long intPraticaId, int start, int end,
OrderByComparator orderByComparator) throws SystemException {
return comunicazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator);
}
@ -136,56 +140,16 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery);
}
// private void invioMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws
// PortalException,
// 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 {
private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext)
throws PortalException, 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());
List<Soggetto> titolari = soggettoLocalService.getValidByIntPratica_CodiceFiscale(
intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName());
String eMail = StringPool.BLANK;
String receiver = StringPool.BLANK;
if (!titolari.isEmpty()) {
@ -194,21 +158,21 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
receiver = titolareDigitale.getDescrizioneCompleta();
}
String[] to = {eMail};
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);
String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(),
intPratica.getIntPraticaId(), "/html/fascicolofe/view_fascicolo.jsp", queryString);
JSONObject templateVariable = JSONFactoryUtil.createJSONObject();
templateVariable.put("receiver", receiver);
templateVariable.put("link", url);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), to,
cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
Comunicazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE",
templateVariable, null, serviceContext);
}
private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date)
@ -218,7 +182,7 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId);
String[] to = {tecnicoIstruttore.getEmailAddress()};
String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
String[] ccn = new String[0];
@ -233,16 +197,19 @@ public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBase
JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
templateVariables.put("tipoPratica", tipoPratica);
templateVariables.put("tipoOggetto", LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata"));
templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm").format(date));
templateVariables.put("tipoOggetto",
LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata"));
templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm")
.format(date));
ServiceContext serviceContext = new ServiceContext();
serviceContext.setScopeGroupId(comunicazione.getGroupId());
serviceContext.setCompanyId(comunicazione.getCompanyId());
serviceContext.setUserId(comunicazione.getUserId());
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), to,
cc, ccn, "NOTIFICA-BO", templateVariables, null, serviceContext);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
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;
}
/*
* 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,
SystemException {
@ -652,7 +645,6 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
.getDettPraticaId());
if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
// return "portos1_esito";
return "portos1_integrazioni";
} else {
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();
validate(tipologia, codiceFiscale);
Delega delega = delegaPersistence.create(counterLocalService.increment(Delega.class.getName()));
delega.setCompanyId(serviceContext.getCompanyId());
@ -132,9 +130,7 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
@Override
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);
}
@ -145,11 +141,6 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
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,
OrderByComparator orderByComparator) throws SystemException {
return delegaPersistence.findByIntPratica(intPraticaId, start, end, orderByComparator);
@ -360,7 +351,8 @@ public class DelegaLocalServiceImpl extends DelegaLocalServiceBaseImpl {
DLFolder folderTemplate = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay()
.getCompanyGroupId(), 0L, "Template");
FileEntry fileEntryIdTemplate = DLAppLocalServiceUtil.getFileEntry(serviceContext
.getThemeDisplay().getCompanyGroupId(), folderTemplate.getFolderId(), "Modello Asseverazione");
.getThemeDisplay().getCompanyGroupId(), folderTemplate.getFolderId(),
"Modello Asseverazione");
DLFolder folderAllegati = DLFolderLocalServiceUtil.getFolder(serviceContext.getThemeDisplay()
.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();
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.setModifiedDate(serviceContext.getModifiedDate(now));
@ -1583,9 +1531,6 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
boolean sanatoriaEdilizia47, boolean sanatoriaEdilizia724, boolean sanatoriaEdilizia326,
boolean normLavoriNoDirettore,
ServiceContext serviceContext, boolean bozza) {
// TODO Auto-generated method stub
}
@Indexable(type = IndexableType.REINDEX)
@ -1957,91 +1902,11 @@ public class DettPraticaLocalServiceImpl extends DettPraticaLocalServiceBaseImpl
String geoPresenzaPrescrizioni, String geoNotePrescrizioni, String geoNoteIndagini,
String geoEvidenzeGeomorfiche, String geoEvidenzeGeologiche, Date geoDtRelazione,
ServiceContext serviceContext, boolean bozza) {
// TODO Auto-generated method stub
}
private void validate(long userId, long dettPraticaId, long intPraticaId,
String codiceFiscaleDelegatoCommittente, String codiceFiscaleDelegatoFineLavori,
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)

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.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.repository.model.Folder;
import com.liferay.portal.kernel.util.MimeTypesUtil;
@ -109,10 +107,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
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
.getName()));
@ -232,10 +226,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
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
.getName()));
@ -381,15 +371,6 @@ public class DocPraticaLocalServiceImpl extends DocPraticaLocalServiceBaseImpl {
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)
throws SystemException {

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

@ -30,25 +30,31 @@ import com.liferay.portal.kernel.exception.SystemException;
* The implementation of the history workflow action local service.
*
* <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun ServiceBuilder to copy their definitions into the {@link it.tref.liferay.portos.bo.service.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>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
* @see it.tref.liferay.portos.bo.service.base.HistoryWorkflowActionLocalServiceBaseImpl
* @see it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil
*/
public class HistoryWorkflowActionLocalServiceImpl
extends HistoryWorkflowActionLocalServiceBaseImpl {
public class HistoryWorkflowActionLocalServiceImpl extends HistoryWorkflowActionLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link it.tref.liferay.portos.bo.service.HistoryWorkflowActionLocalServiceUtil} to access the history workflow action local service.
* 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 {
DynamicQuery query = DynamicQueryFactoryUtil.forClass(HistoryWorkflowAction.class);
query.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
@ -57,14 +63,10 @@ public class HistoryWorkflowActionLocalServiceImpl
else
query.addOrder(OrderFactoryUtil.desc("createDate"));
return HistoryWorkflowActionLocalServiceUtil.dynamicQuery(query);
// return historyWorkflowActionPersistence.findByIntPratica(intPraticaId);
}
@Override
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId)
throws SystemException {
// TODO Auto-generated method stub
public List<HistoryWorkflowAction> findByIntPratica(long intPraticaId) throws SystemException {
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);
validate(serviceContext.getScopeGroupId(), 0L, tipoPratica, territorioId, dtSorteggio, statoPratica,
numeroProgetto, validata, esitoControllo, dtPratica);
IntPratica intPratica = intPraticaPersistence.create(counterLocalService.increment(IntPratica.class
.getName()));
@ -960,12 +957,6 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
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 {
// TODO vedere se va cambiato lo stato
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,
ServiceContext serviceContext) throws SystemException, PortalException {
validateParereGeologo(geologoUserId, intPraticaId, dettPraticaId);
long parereGeologoId = counterLocalService.increment(ParereGeologo.class.getName());
ParereGeologo parereGeologo = parereGeologoPersistence.create(parereGeologoId);
@ -87,12 +85,6 @@ public class ParereGeologoLocalServiceImpl extends ParereGeologoLocalServiceBase
return parereGeologoPersistence.update(parereGeologo);
}
private void validateParereGeologo(long geologoUserId, long intPraticaId, long dettPraticaId) {
// TODO
}
public ParereGeologo updateParereGeologo(long parereGeologoId, String parere, byte[] content,
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();
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
.create(counterLocalService.increment(Soggetto.class.getName()));
@ -319,32 +308,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
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
.create(counterLocalService.increment(Soggetto.class.getName()));
@ -467,17 +430,6 @@ public class SoggettoLocalServiceImpl extends SoggettoLocalServiceBaseImpl {
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.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 {
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 {
// XXX verificare se torna uno o piu
// XXX verificare se torna uno o più
List<Sorteggio> sorteggis = sorteggioPersistence.findByIntPraticaId(intPraticaId);
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.number=2739
build.date=1606226972645
build.number=2740
build.date=1606231924945
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) %>
<%= 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 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"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</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
else{
for (Iterator iterator = results.iterator(); iterator.hasNext();) {
Disponibilita disponibilita = (Disponibilita) iterator.next();
for (Iterator<Disponibilita> iterator = results.iterator(); iterator.hasNext();) {
Disponibilita disponibilita = iterator.next();
disponibilita.setDisponibile(true);
disponibilitaLocalService.updateDisponibilita(disponibilita);
}
@ -307,8 +307,8 @@ public class DisponibilitaLocalServiceImpl extends DisponibilitaLocalServiceBase
}
//Bug 32935
else{
for (Iterator iterator = results.iterator(); iterator.hasNext();) {
Disponibilita disponibilita = (Disponibilita) iterator.next();
for (Iterator<Disponibilita> iterator = results.iterator(); iterator.hasNext();) {
Disponibilita disponibilita = iterator.next();
disponibilita.setDisponibile(true);
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 {
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
Date end = DateUtils.addHours(start, 22);
DynamicQuery dynamicQuery = dynamicQuery();

96
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.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.regex.Matcher;
@ -14,8 +13,6 @@ import java.util.regex.Pattern;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import org.apache.log4j.net.TelnetAppender;
import com.liferay.mail.service.MailServiceUtil;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.mail.MailMessage;
@ -27,39 +24,42 @@ import com.liferay.util.portlet.PortletProps;
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 boUser = UserLocalServiceUtil.fetchUser(userIdFunzionario);
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(professionista.getEmailAddress()) : null;
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(emailFeUser) ? new InternetAddress(emailFeUser) : null;
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(
professionista.getEmailAddress()) : null;
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(
boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(emailFeUser) ? new InternetAddress(
emailFeUser) : null;
MailMessage mailMessage = new MailMessage();
//Product Backlog Item 32934
// Product Backlog Item 32934
List<InternetAddress> toAddresses = new ArrayList<InternetAddress>();
if(toAddress != null)
if (toAddress != null)
toAddresses.add(toAddress);
if(toAddressToFeUser != null)
if (toAddressToFeUser != null)
toAddresses.add(toAddressToFeUser);
mailMessage.setTo(toAddresses.toArray(new InternetAddress[0]));
mailMessage.setFrom(fromAddress);
if(bccAddress != null)
if (bccAddress != null)
mailMessage.setBCC(bccAddress);
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);
/*
* Invio email
*/
@ -67,31 +67,35 @@ 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 boUser = UserLocalServiceUtil.fetchUser(prenotazione.getFunzionarioId());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(professionista.getEmailAddress()) : null;
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(prenotazione.getEmail()) ? new InternetAddress(prenotazione.getEmail()) : null;
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(
professionista.getEmailAddress()) : 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();
//Product Backlog Item 32934
// Product Backlog Item 32934
List<InternetAddress> toAddresses = new ArrayList<InternetAddress>();
if(toAddress != null)
if (toAddress != null)
toAddresses.add(toAddress);
if(toAddressToFeUser != null)
if (toAddressToFeUser != null)
toAddresses.add(toAddressToFeUser);
mailMessage.setTo(toAddresses.toArray(new InternetAddress[0]));
mailMessage.setFrom(fromAddress);
if(bccAddress != null)
if (bccAddress != null)
mailMessage.setBCC(bccAddress);
mailMessage.setSubject("Notifica Annullamento Appuntamento Portos");
@ -105,17 +109,18 @@ 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");
MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Reminder appuntamenti Portos di domani");
mailMessage.setBody(creaCorpoMailReminder(lista,userBo, tomorrow));
mailMessage.setBody(creaCorpoMailReminder(lista, userBo, tomorrow));
mailMessage.setHTMLFormat(true);
/*
@ -125,8 +130,8 @@ public class CalendarUtil {
}
private static String creaCorpoMailReminder(List<Prenotazione> lista , User boUser, Date tomorrow) throws SystemException{
private static String creaCorpoMailReminder(List<Prenotazione> lista, User boUser, Date tomorrow)
throws SystemException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
@ -137,9 +142,7 @@ public class CalendarUtil {
/*
* Gestione header
*/
sb.append("<html><head><title>Appuntamenti del "
+ sdf.format(tomorrow)
+ "</title></head><body>");
sb.append("<html><head><title>Appuntamenti del " + sdf.format(tomorrow) + "</title></head><body>");
sb.append("<div style='width:100%;'>");
sb.append("Gentile " + boUser.getFullName() + " ,");
@ -159,7 +162,7 @@ public class CalendarUtil {
User professionistaUser = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId());
sb.append("<div style='width:100%;'>");
sb.append("Ore " +sdfOra.format(prenotazione.getStartDate()));
sb.append("Ore " + sdfOra.format(prenotazione.getStartDate()));
sb.append(" : appuntamento con " + professionistaUser.getFullName() + ". Motivo: ");
sb.append(HtmlUtil.escape(prenotazione.getDescLong()));
sb.append("</div>");
@ -168,19 +171,17 @@ public class CalendarUtil {
}
sb.append("</body></html>");
return sb.toString();
}
private static String creaCorpoMailRichiestaAppuntamento(User professionista, User boUser, Date dataAppuntamento, String telefono, String mail){
private static String creaCorpoMailRichiestaAppuntamento(User professionista, User boUser,
Date dataAppuntamento, String telefono, String mail) {
SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder();
/*
@ -203,7 +204,7 @@ public class CalendarUtil {
sb.append(" &egrave; stato stato prenotato con successo.");
sb.append("</div>");
//Product Backlog Item 32934
// Product Backlog Item 32934
sb.append("<br/><div>Di seguito i recapiti che ha specificato:</div>");
sb.append("<div>Telefono:&#9;").append(telefono).append("</div>");
sb.append("<div>Email:&#9;").append(mail).append("</div>");
@ -213,12 +214,11 @@ public class CalendarUtil {
return sb.toString();
}
private static String creaCorpoMailAnnullamento(User professionista, User boUser, Date dataAppuntamento){
private static String creaCorpoMailAnnullamento(User professionista, User boUser, Date dataAppuntamento) {
SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder();
/*
@ -245,28 +245,30 @@ public class CalendarUtil {
return sb.toString();
}
//Bug 32935
public static int calculateTimeSlots(Date start, Date end, int slotInterval){
// Bug 32935
public static int calculateTimeSlots(Date start, Date end, int slotInterval) {
Long count = null;
count = (((end.getTime() - start.getTime()) / 1000L) / 60L) / slotInterval + 1;
return count.intValue();
}
private static boolean isAllowedEmailAddress(String emailAddress){
final String[] NOT_ALLOWED_EMAIL_DOMAINS = PortletProps.getArray(PortletPropsKeys.EMAIL_DOMAINS_NOT_ALLOWED);
final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(PortletProps.get(PortletPropsKeys.EMAIL_VALIDATOR_REGEXP), Pattern.CASE_INSENSITIVE);
private static boolean isAllowedEmailAddress(String emailAddress) {
final String[] NOT_ALLOWED_EMAIL_DOMAINS = PortletProps
.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;
if(Validator.isNotNull(emailAddress)){
if (Validator.isNotNull(emailAddress)) {
Matcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(emailAddress);
isAllowed = matcher.find();
String emailDomain = emailAddress.substring(emailAddress.indexOf("@") + 1);
if(isAllowed && Arrays.asList(NOT_ALLOWED_EMAIL_DOMAINS).contains(emailDomain)){
if (isAllowed && Arrays.asList(NOT_ALLOWED_EMAIL_DOMAINS).contains(emailDomain)) {
isAllowed = false;
}
}else{
} else {
isAllowed = false;
}

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</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);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica)) {
ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(), intPratica.getIntPraticaId(), domanda,
serviceContext);
ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(),
intPratica.getIntPraticaId(), domanda, serviceContext);
}
} catch (PortalException | SystemException 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");
String risposta = ParamUtil.getString(actionRequest, "risposta");
try {

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</attributes>

42
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;
import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.exception.PortalException;
@ -35,8 +34,8 @@ public class StartUpAction extends SimpleAction {
try {
long companyId = GetterUtil.getLong(id);
String[] defaultActions = {ActionKeys.VIEW, ActionKeys.UPDATE};
String[] guestActions = {ActionKeys.VIEW};
String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE };
String[] guestActions = { ActionKeys.VIEW };
// Organization custom fields
addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId",
@ -47,29 +46,32 @@ public class StartUpAction extends SimpleAction {
}
}
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type,
boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException {
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name,
int type, boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions)
throws SystemException {
long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null;
try {
expandoTable =
ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME);
expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e) {
try {
expandoTable =
ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME);
expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) {
}
}
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil
.getColumn(expandoTable.getTableId(), name);
if (expandoColumn == null) {
try {
expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type);
expandoColumn = ExpandoColumnLocalServiceUtil
.addColumn(expandoTable.getTableId(), name, type);
} catch (PortalException e) {
}
@ -104,15 +106,15 @@ public class StartUpAction extends SimpleAction {
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(),
guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(),
defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(),
defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions);
} catch (PortalException e) {
}

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</attributes>
@ -18,5 +18,6 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</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"/>
</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.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures>
</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
public void run(final String[] ids) throws ActionException {
/*
* ServiceContext serviceContext = DeployAlertUtil.getServiceContext(); try {
* PermissionThreadLocal
* .setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil
* .getUser(serviceContext.getUserId()))); } catch (Exception e) { _log.error(e, e); }
* ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
* try { PermissionThreadLocal
* .setPermissionChecker(PermissionCheckerFactoryUtil
* .create(UserLocalServiceUtil .getUser(serviceContext.getUserId())));
* } catch (Exception e) { _log.error(e, e); }
* DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext);
* DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext);
*/
@ -61,8 +62,8 @@ public class DeployAction extends SimpleAction {
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
notifications =
NotificationMailLocalServiceUtil.findNotifications(PortalUtil.getDefaultCompanyId(), nomePlugin);
notifications = NotificationMailLocalServiceUtil.findNotifications(
PortalUtil.getDefaultCompanyId(), nomePlugin);
for (int i = 0; i < notifications.size(); i++) {
@ -79,8 +80,8 @@ public class DeployAction extends SimpleAction {
JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento);
ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
MailManagerUtil.sendMailByTemplateName(Company.class.toString(), serviceContext.getCompanyId(),
templateName, parametri, serviceContext);
MailManagerUtil.sendMailByTemplateName(Company.class.toString(),
serviceContext.getCompanyId(), templateName, parametri, serviceContext);
}
} 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.
* <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.NotificationLogLocalService} 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.NotificationLogLocalService}
* interface.
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Matteo
@ -42,7 +44,8 @@ import java.util.Date;
*/
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();

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.
* <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.NotificationMailLocalService} 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.NotificationMailLocalService}
* interface.
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Matteo
@ -51,8 +53,8 @@ import java.util.List;
*/
public class NotificationMailLocalServiceImpl extends NotificationMailLocalServiceBaseImpl {
public NotificationMail addNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext)
throws PortalException, SystemException {
public NotificationMail addNotification(String nomePlugin, String nomeTemplate,
ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(serviceContext.getUserId());
@ -89,8 +91,8 @@ public class NotificationMailLocalServiceImpl extends NotificationMailLocalServi
}
}
public NotificationMail updateNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext,
long notificationId) throws SystemException, PortalException {
public NotificationMail updateNotification(String nomePlugin, String nomeTemplate,
ServiceContext serviceContext, long notificationId) throws SystemException, PortalException {
Date now = new Date();
@ -108,9 +110,11 @@ public class NotificationMailLocalServiceImpl extends NotificationMailLocalServi
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();
query.addOrder(OrderFactoryUtil.asc("nomePlugin"));
List<NotificationMail> notifications = null;
@ -132,7 +136,8 @@ public class NotificationMailLocalServiceImpl extends NotificationMailLocalServi
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();

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.
*
* <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>
* This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
* This is a remote service. Methods of this service are expected to have
* security checks based on the propagated JAAS credentials because this service
* can be accessed remotely.
* </p>
*
* @author Matteo
@ -34,6 +39,8 @@ public class NotificationMailServiceImpl extends NotificationMailServiceBaseImpl
/*
* 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.
*/
}

17
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.setScopeGroupId(company.getGroupId());
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil.getUser(userAdminId)));
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil
.create(UserLocalServiceUtil.getUser(userAdminId)));
} catch (Exception e) {
_log.error(e, e);
}
@ -55,12 +56,11 @@ public class DeployAlertUtil {
boolean add = false;
String subject = "Deploy Plugin";
String body = "E' stato effettuato il $evento del plugin $nomePlugin in data $data.";
String[] to = {"matteoguggia97@gmail.com"};
String[] to = { "matteoguggia97@gmail.com" };
try {
add =
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE, "test@3fconsulting.it", to, null,
null, subject, body, false, serviceContext);
add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE,
"test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
} catch (SystemException e) {
_log.error(e, e);
}
@ -74,12 +74,11 @@ public class DeployAlertUtil {
boolean add = false;
String subject = "Undeploy Plugin";
String body = "E' stato effettuato l'$evento del plugin $nomePlugin in data $data.";
String[] to = {"matteoguggia97@gmail.com"};
String[] to = { "matteoguggia97@gmail.com" };
try {
add =
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE, "test@3fconsulting.it", to, null,
null, subject, body, false, serviceContext);
add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE,
"test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
} catch (SystemException 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.number=8
build.date=1569596730980
build.number=9
build.date=1606299034524
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"
>
<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>
<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-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>
</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;
/**
* Portlet implementation class FascicoloFePortlet
*/
public class AllegatiPraticaPortlet extends MVCPortlet {
private static Log _log = LogFactoryUtil.getLog(AllegatiPraticaPortlet.class);
@ -151,8 +148,7 @@ public class AllegatiPraticaPortlet extends MVCPortlet {
long dettPraticaIdRimozione = 0;
Date dtDataRimozione = null;
// TODO attenzione perche' questo controllo potrebbe non
// andare bene per integrazioni e
// varianti
// andare bene per integrazioni e varianti
boolean isUnivoco = DocumentiPraticaUtil.getDocUnivoci().contains(tipologia);
if (isUnivoco
&& 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.util.bridges.mvc.MVCPortlet;
/**
* Portlet implementation class FascicoloFePortlet
*/
public class FascicoloFePortlet extends MVCPortlet {
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.ActionResponse;
/**
* Portlet implementation class FascicoloFePortlet
*/
public class ParereGeologoPortlet extends MVCPortlet {
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;
/**
* Portlet implementation class RicercaAvvisiGenioCivilePortlet
*/
public class RicercaPratichePortlet extends MVCPortlet {
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{
/**
*
*/
private static final long serialVersionUID = 4921215218965971793L;
public ReportFascicoloBean(){

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

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</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;
public boolean isSuccess() {
return success;
}
public List<String> getCf() {
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_EFFETTUARE_LOGIN", "Effettuare il login per continuare");
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("APRI_PRATICA_DISABILITATO_PER_DOCUMENTO", "v");
configurazione.put("MESSAGGIO_FIRMA_ATTESA", "Attesa");
configurazione.put("MESSAGGIO_NO_UTENTE", "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("MESSAGGIO_NO_UTENTE",
"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("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("RIFIUTA_ASSEGNA_PER_PRATICA", " - ");
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_RIFIUTO_OK", "Rifiuto del 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_SELEZIONARE_FILE_FIRMA", "Selezionare almeno un file prima di premere firma");
configurazione.put("MESSAGGIO_NO_CARTA_IMPOSTATA",
"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("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("CARTELLA_FILE_VISUALIZZATI", "/file-firma-tmp/");
configurazione.put("RIFIUTA_CAMBIA_FASE_PER_PRATICA", " - ");
configurazione.put("MODALITA_VISIONE_FILE_ALLA_FIRMA_PER_DOCUMENTO", "v");
configurazione.put("RIFIUTA_ASSEGNA_PER_DOCUMENTO", " - ");
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("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("VISUALIZZA_FILE", "true");
configurazione.put("APRI_PRATICA_DISABILITATO_PER_PRATICA", " - ");
configurazione.put("SMART_CARD_LETTURA_NOME", "GIVENNAME");
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("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("APRI_PRATICA", "true");
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("MESSAGGIO_FIRMA_COPLETATA", "Procedura di firma 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_RIFIUTO_ERRORE_BLOCCANTE", "Attenzione errore imprevisto durante la procedura di rifiuto");
configurazione.put("MESSAGGIO_FIRMA_ERRORE_BLOCCANTE",
"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("SELEZIONA_DOCUMENTO_SENZA_VISUALIZZAZIONE", "Documento senza visualizzazione");
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"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</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.
*
* <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>
* This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author 3FC
* @see it.tref.liferay.portos.kaleo.controller.service.base.KaleoInstanceLocalServiceBaseImpl
* @see it.tref.liferay.portos.kaleo.controller.service.KaleoInstanceLocalServiceUtil
*/
public class KaleoInstanceLocalServiceImpl
extends KaleoInstanceLocalServiceBaseImpl {
public class KaleoInstanceLocalServiceImpl extends KaleoInstanceLocalServiceBaseImpl {
/*
* 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"?>
<classpath>
<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>
<attribute name="owner.project.facets" value="java"/>
</attributes>
@ -18,5 +18,6 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</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"/>
</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.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.apache.ivyde.eclipse.ivynature</nature>
</natures>
</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">
<import file="../build-common-portlet.xml" />
<property name="import.shared" value="portos-log-shared" />
</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