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. 26
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/ProcessorRouterAuditDatabase.java
  7. 83
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/ProcessorRouterAuditDefault.java
  8. 480
      liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/impl/AuditEventLocalServiceImpl.java
  9. 17
      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. 151
      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. 231
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/listener/KaleoLogModelListener.java
  18. 152
      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. 349
      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. 32
      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. 244
      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. 59
      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. 138
      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. 127
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/action/DeployAction.java
  43. 16
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/control/DeployAlertControl.java
  44. 53
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationLogLocalServiceImpl.java
  45. 153
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationMailLocalServiceImpl.java
  46. 15
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/service/impl/NotificationMailServiceImpl.java
  47. 111
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/util/DeployAlertUtil.java
  48. 4
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/service.properties
  49. 4
      liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/ivy.xml
  50. 6
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/AllegatiPraticaPortlet.java
  51. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  52. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/ParereGeologoPortlet.java
  53. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/RicercaPratichePortlet.java
  54. 5
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/Constants.java
  55. 3
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/util/ReportFascicoloBean.java
  56. 2
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.classpath
  57. BIN
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/lib/commons-logging.jar
  58. 20
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/ExtractorResponse.java
  59. 354
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/firma/util/FirmaGetUtil.java
  60. 2
      liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/.classpath
  61. 19
      liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/service/impl/KaleoInstanceLocalServiceImpl.java
  62. 3
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.classpath
  63. 1
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/.project
  64. 1
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/build.xml
  65. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/UserAgentUtils.jar
  66. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-broker.jar
  67. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-camel.jar
  68. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-client.jar
  69. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-jms-pool.jar
  70. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-openwire-legacy.jar
  71. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-pool.jar
  72. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/activemq-spring.jar
  73. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/aopalliance.jar
  74. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-core.jar
  75. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-jms.jar
  76. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/camel-spring.jar
  77. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-codec.jar
  78. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-logging.jar
  79. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/commons-pool.jar
  80. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-j2ee-management_1.1_spec.jar
  81. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jms_1.1_spec.jar
  82. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/geronimo-jta_1.0.1B_spec.jar
  83. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/guava.jar
  84. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/hawtbuf.jar
  85. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpclient.jar
  86. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/httpcore.jar
  87. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-annotations.jar
  88. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core-asl.jar
  89. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-core.jar
  90. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jackson-databind.jar
  91. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/javax.inject.jar
  92. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jaxb-core.jar
  93. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jaxb-impl.jar
  94. 0
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jsr305.jar
  95. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jstl-api.jar
  96. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/jstl-impl.jar
  97. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/log4j.jar
  98. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/slf4j-api.jar
  99. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-aop.jar
  100. BIN
      liferay-plugins-sdk-6.2/portlets/portos-log-portlet/docroot/WEB-INF/lib/spring-beans.jar
  101. Some files were not shown because too many files have changed in this diff Show More

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

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

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

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

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; import java.util.List;
public class P7mPreview extends DLPreviewableProcessor{ public class P7mPreview extends DLPreviewableProcessor {
@Override @Override
public void afterPropertiesSet() throws Exception { public void afterPropertiesSet() throws Exception {
// TODO Auto-generated method stub
} }
@Override @Override
public boolean isSupported(String mimeType) { public boolean isSupported(String mimeType) {
// TODO Auto-generated method stub
return false; return false;
} }
@Override @Override
protected void doExportGeneratedFiles( protected void doExportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry,
PortletDataContext portletDataContext, FileEntry fileEntry,
Element fileEntryElement) throws Exception { Element fileEntryElement) throws Exception {
// TODO Auto-generated method stub
} }
@Override @Override
protected void doImportGeneratedFiles( protected void doImportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry,
PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement) throws Exception {
FileEntry importedFileEntry, Element fileEntryElement)
throws Exception {
// TODO Auto-generated method stub
} }
@Override @Override
protected List<Long> getFileVersionIds() { protected List<Long> getFileVersionIds() {
// TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
protected String getPreviewType(FileVersion fileVersion) { protected String getPreviewType(FileVersion fileVersion) {
// TODO Auto-generated method stub
return null; return null;
} }
@Override @Override
protected String getThumbnailType(FileVersion fileVersion) { protected String getThumbnailType(FileVersion fileVersion) {
// TODO Auto-generated method stub
return null; return null;
} }
} }

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

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

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

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

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

@ -8,23 +8,21 @@ import com.liferay.portal.kernel.audit.AuditMessageProcessor;
import com.liferay.portal.kernel.log.Log; import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; import com.liferay.portal.kernel.log.LogFactoryUtil;
public class ProcessorRouterAuditDatabase implements AuditMessageProcessor { public class ProcessorRouterAuditDatabase implements AuditMessageProcessor {
private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class); private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class);
@Override @Override
public void process(AuditMessage auditMessage) throws AuditException { public void process(AuditMessage auditMessage) throws AuditException {
try { try {
doProcess(auditMessage); doProcess(auditMessage);
} catch (Exception e) { } catch (Exception e) {
_log.fatal("Unable to process audit message " + auditMessage, e); _log.fatal("Unable to process audit message " + auditMessage, e);
} }
} }
protected void doProcess(AuditMessage auditMessage) throws Exception { protected void doProcess(AuditMessage auditMessage) throws Exception {
AuditEventLocalServiceUtil.addAuditEvent(auditMessage); AuditEventLocalServiceUtil.addAuditEvent(auditMessage);
} }
} }

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

@ -14,66 +14,65 @@ import java.util.concurrent.CopyOnWriteArrayList;
public class ProcessorRouterAuditDefault implements AuditRouter { public class ProcessorRouterAuditDefault implements AuditRouter {
private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors = private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors = new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
new ConcurrentHashMap<String, Set<AuditMessageProcessor>>(); private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>();
private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>();
@Override @Override
public boolean isDeployed() { public boolean isDeployed() {
int auditMessageProcessorsCount = 0; int auditMessageProcessorsCount = 0;
if (_auditMessageProcessors != null) { if (_auditMessageProcessors != null) {
auditMessageProcessorsCount = _auditMessageProcessors.size(); auditMessageProcessorsCount = _auditMessageProcessors.size();
} }
if ((auditMessageProcessorsCount > 0) || !_globalAuditMessageProcessors.isEmpty()) { if ((auditMessageProcessorsCount > 0) || !_globalAuditMessageProcessors.isEmpty()) {
return true; return true;
} else { } else {
return false; return false;
} }
} }
@Override @Override
public void route(AuditMessage auditMessage) throws AuditException { public void route(AuditMessage auditMessage) throws AuditException {
for (AuditMessageProcessor globalAuditMessageProcessor : _globalAuditMessageProcessors) { for (AuditMessageProcessor globalAuditMessageProcessor : _globalAuditMessageProcessors) {
globalAuditMessageProcessor.process(auditMessage); globalAuditMessageProcessor.process(auditMessage);
} }
String eventType = auditMessage.getEventType(); String eventType = auditMessage.getEventType();
Set<AuditMessageProcessor> auditMessageProcessors = _auditMessageProcessors.get(eventType); Set<AuditMessageProcessor> auditMessageProcessors = _auditMessageProcessors.get(eventType);
if (auditMessageProcessors != null) { if (auditMessageProcessors != null) {
for (AuditMessageProcessor auditMessageProcessor : auditMessageProcessors) { for (AuditMessageProcessor auditMessageProcessor : auditMessageProcessors) {
auditMessageProcessor.process(auditMessage); auditMessageProcessor.process(auditMessage);
} }
} }
} }
public void setAuditMessageProcessors(Map<String, List<AuditMessageProcessor>> auditMessageProcessors) { public void setAuditMessageProcessors(Map<String, List<AuditMessageProcessor>> auditMessageProcessors) {
for (Map.Entry<String, List<AuditMessageProcessor>> entry : auditMessageProcessors.entrySet()) { for (Map.Entry<String, List<AuditMessageProcessor>> entry : auditMessageProcessors.entrySet()) {
String eventType = entry.getKey(); String eventType = entry.getKey();
Set<AuditMessageProcessor> auditMessageProcessorsSet = _auditMessageProcessors.get(eventType); Set<AuditMessageProcessor> auditMessageProcessorsSet = _auditMessageProcessors.get(eventType);
if (auditMessageProcessorsSet == null) { if (auditMessageProcessorsSet == null) {
auditMessageProcessorsSet = new HashSet<AuditMessageProcessor>(); auditMessageProcessorsSet = new HashSet<AuditMessageProcessor>();
_auditMessageProcessors.put(eventType, auditMessageProcessorsSet); _auditMessageProcessors.put(eventType, auditMessageProcessorsSet);
} }
auditMessageProcessorsSet.addAll(entry.getValue()); auditMessageProcessorsSet.addAll(entry.getValue());
} }
} }
public void setGlobalAuditMessageProcessors(List<AuditMessageProcessor> globalAuditMessageProcessors) { public void setGlobalAuditMessageProcessors(List<AuditMessageProcessor> globalAuditMessageProcessors) {
_globalAuditMessageProcessors.addAll(globalAuditMessageProcessors); _globalAuditMessageProcessors.addAll(globalAuditMessageProcessors);
} }
} }

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

@ -33,13 +33,15 @@ import com.liferay.portal.kernel.util.StringPool;
* The implementation of the audit event local service. * The implementation of the audit event local service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.audit.service.AuditEventLocalService} interface. * {@link it.tref.liferay.portos.audit.service.AuditEventLocalService}
* interface.
* *
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author ViVieb srl * @author ViVieb srl
@ -48,233 +50,243 @@ import com.liferay.portal.kernel.util.StringPool;
*/ */
public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl { public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
@Override @Override
public AuditEvent addAuditEvent(AuditMessage auditMessage) throws SystemException { public AuditEvent addAuditEvent(AuditMessage auditMessage) throws SystemException {
AuditEvent auditEvent = auditEventPersistence.create(counterLocalService.increment(AuditEvent.class.getName())); AuditEvent auditEvent = auditEventPersistence.create(counterLocalService.increment(AuditEvent.class
.getName()));
auditEvent.setCompanyId(auditMessage.getCompanyId());
auditEvent.setUserId(auditMessage.getUserId()); auditEvent.setCompanyId(auditMessage.getCompanyId());
auditEvent.setUserName(auditMessage.getUserName()); auditEvent.setUserId(auditMessage.getUserId());
auditEvent.setCreateDate(auditMessage.getTimestamp()); auditEvent.setUserName(auditMessage.getUserName());
auditEvent.setEventType(auditMessage.getEventType()); auditEvent.setCreateDate(auditMessage.getTimestamp());
auditEvent.setClassName(auditMessage.getClassName()); auditEvent.setEventType(auditMessage.getEventType());
auditEvent.setClassPK(auditMessage.getClassPK()); auditEvent.setClassName(auditMessage.getClassName());
auditEvent.setMessage(auditMessage.getMessage()); auditEvent.setClassPK(auditMessage.getClassPK());
auditEvent.setClientHost(auditMessage.getClientHost()); auditEvent.setMessage(auditMessage.getMessage());
auditEvent.setClientIP(auditMessage.getClientIP()); auditEvent.setClientHost(auditMessage.getClientHost());
auditEvent.setServerName(auditMessage.getServerName()); auditEvent.setClientIP(auditMessage.getClientIP());
auditEvent.setServerPort(auditMessage.getServerPort()); auditEvent.setServerName(auditMessage.getServerName());
auditEvent.setSessionID(auditMessage.getSessionID()); auditEvent.setServerPort(auditMessage.getServerPort());
auditEvent.setServerPort(auditMessage.getServerPort()); auditEvent.setSessionID(auditMessage.getSessionID());
estreazioneAdditionalInfo(auditEvent, auditMessage); auditEvent.setServerPort(auditMessage.getServerPort());
estreazioneAdditionalInfo(auditEvent, auditMessage);
return auditEventPersistence.update(auditEvent); return auditEventPersistence.update(auditEvent);
} }
private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) { private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) {
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_AUDIT_EVENT_TABLE, AuditKey.FIELD_AUDIT_EVENT_TABLE, StringPool.BLANK));
StringPool.BLANK)); auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY,
auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY, StringPool.BLANK));
StringPool.BLANK)); auditEvent.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION,
auditEvent StringPool.BLANK));
.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION, StringPool.BLANK)); auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE,
auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE, StringPool.BLANK)); StringPool.BLANK));
auditEvent.setEnteGroupId(auditMessage.getAdditionalInfo().getLong(AuditKey.FIELD_ENTE_GROUP_ID, 0l)); auditEvent.setEnteGroupId(auditMessage.getAdditionalInfo().getLong(AuditKey.FIELD_ENTE_GROUP_ID, 0l));
auditEvent.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK)); auditEvent.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK));
auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_PK, "0l")); auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(
auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_NAME, AuditKey.FIELD_PARENT_CLASS_PK, "0l"));
StringPool.BLANK)); auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(
auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_PK, "0l")); AuditKey.FIELD_PARENT_CLASS_NAME, StringPool.BLANK));
auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_NAME, auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(
StringPool.BLANK)); AuditKey.FIELD_RELATED_CLASS_PK, "0l"));
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_AUDIT_EVENT_TABLE); auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_CATEGORY); AuditKey.FIELD_RELATED_CLASS_NAME, StringPool.BLANK));
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_AUDIT_EVENT_TABLE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_CODICE); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_CATEGORY);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_GROUP_ID); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_DIFF); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_CODICE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_NAME); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_GROUP_ID);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_PK); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_DIFF);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_RELATED_CLASS_NAME); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_NAME);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_RELATED_CLASS_PK); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_PK);
auditEvent.setAdditionalInfo(String.valueOf(auditMessage.getAdditionalInfo())); auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_RELATED_CLASS_NAME);
} auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_RELATED_CLASS_PK);
auditEvent.setAdditionalInfo(String.valueOf(auditMessage.getAdditionalInfo()));
@Override }
public int countByCompanyId(long companyId) throws SystemException {
@Override
return auditEventPersistence.countByCompanyId(companyId); public int countByCompanyId(long companyId) throws SystemException {
}
return auditEventPersistence.countByCompanyId(companyId);
@Override }
public List<AuditEvent> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
throws SystemException { @Override
public List<AuditEvent> findByCompanyId(long companyId, int start, int end,
return auditEventPersistence.findByCompanyId(companyId, start, end, orderByComparator); OrderByComparator orderByComparator) throws SystemException {
}
return auditEventPersistence.findByCompanyId(companyId, start, end, orderByComparator);
public List<AuditEvent> findByC_ClassNameId(long companyId, long classNameId, int start, int end) }
throws SystemException {
return auditEventPersistence.findByC_ClassNameId(companyId, classNameId, start, end); public List<AuditEvent> findByC_ClassNameId(long companyId, long classNameId, int start, int end)
} throws SystemException {
return auditEventPersistence.findByC_ClassNameId(companyId, classNameId, start, end);
public int countByC_ClassNameId(long companyId, long classNameId) throws SystemException { }
return auditEventPersistence.countByC_ClassNameId(companyId, classNameId);
} public int countByC_ClassNameId(long companyId, long classNameId) throws SystemException {
return auditEventPersistence.countByC_ClassNameId(companyId, classNameId);
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) 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 {
return auditEventPersistence.findByC_ClassNameId_ClassPK(companyId, classNameId, classPK, start, end, public List<AuditEvent> findByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK,
orderByComparator); 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 { }
return auditEventPersistence.countByC_ClassNameId_ClassPK(companyId, classNameId, classPK);
} public int countByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK)
throws SystemException {
public List<String> findAllClassPkByClassName(long companyId, long classNameId, int start, int end) return auditEventPersistence.countByC_ClassNameId_ClassPK(companyId, classNameId, classPK);
throws SystemException { }
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end); public List<String> findAllClassPkByClassName(long companyId, long classNameId, int start, int end)
} throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
public int countClassPkByClassName(long companyId, long classNameId) throws SystemException { return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId); }
return (int) auditEventLocalService.dynamicQueryCount(dynamicQuery); public int countClassPkByClassName(long companyId, long classNameId) throws SystemException {
} DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
private DynamicQuery dynamicQueryClassPkByClassName(long companyId, long classNameId) { return (int) auditEventLocalService.dynamicQueryCount(dynamicQuery);
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); }
dynamicQuery.setProjection(ProjectionFactoryUtil.property("classPK"));
dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("classPK")); private DynamicQuery dynamicQueryClassPkByClassName(long companyId, long classNameId) {
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId)); DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
return dynamicQuery; dynamicQuery.setProjection(ProjectionFactoryUtil.property("classPK"));
} dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("classPK"));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable, return dynamicQuery;
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,
public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable) auditEventTable, start, end);
throws SystemException { }
return auditEventPersistence.countByC_ClassNameId_AuditEventTable(companyId, classNameId, auditEventTable);
} public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable)
throws SystemException {
public List<AuditEvent> findByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK, return auditEventPersistence.countByC_ClassNameId_AuditEventTable(companyId, classNameId,
String auditEventTable, int start, int end) throws SystemException { auditEventTable);
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 {
public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK, return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
String auditEventTable) throws SystemException { classPK, auditEventTable, start, end);
return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK, }
auditEventTable);
} public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK,
String auditEventTable) throws SystemException {
/* return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
* public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long companyId, long classPK, auditEventTable);
* 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
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long parentClassNameId, * companyId, long parentClassNameId, String parentClassPK, int start, int
* String parentClassPK) throws SystemException { return * end) throws SystemException { return
* auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId, * auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassPK); } * parentClassNameId, parentClassPK, start, end); }
*/ *
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long
public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, * parentClassNameId, String parentClassPK) throws SystemException { return
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId, int start, int end) * auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId,
throws SystemException { * parentClassNameId, parentClassPK); }
DynamicQuery dynamicQuery = */
createC_Parent_Related_ClassNameId(companyId, parentClassNameId, parentClassPK, relatedClassNameId,
relatedClassPK, classNameId); public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate")); String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId,
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end); int start, int end) throws SystemException {
} DynamicQuery dynamicQuery = createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
parentClassPK, relatedClassNameId, relatedClassPK, classNameId);
public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK, dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate"));
long relatedClassNameId, String relatedClassPK, long classNameId) throws SystemException { return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
return (int) auditEventPersistence.countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId,
parentClassNameId, parentClassPK, relatedClassNameId, relatedClassPK, classNameId)); public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
} String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId)
throws SystemException {
private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK,
long relatedClassNameId, String relatedClassPK, long classNameId) { return (int) auditEventPersistence
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); .countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); parentClassPK, relatedClassNameId, relatedClassPK, classNameId));
Disjunction dis = RestrictionsFactoryUtil.disjunction(); }
Conjunction parent = RestrictionsFactoryUtil.conjunction();
Conjunction related = RestrictionsFactoryUtil.conjunction(); private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId) {
parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId)); DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK)); dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId)); Conjunction parent = RestrictionsFactoryUtil.conjunction();
related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK)); Conjunction related = RestrictionsFactoryUtil.conjunction();
dis.add(parent); parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId));
dis.add(related); parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK));
dynamicQuery.add(dis);
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId)); related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId));
return dynamicQuery; related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK));
}
dis.add(parent);
public List<Long> findEventClassNameByC_Parent_and_Related(long companyId, long parentClassNameId, dis.add(related);
String parentClassPK, long relatedClassNameId, String relatedClassPK) throws SystemException { dynamicQuery.add(dis);
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); return dynamicQuery;
Disjunction dis = RestrictionsFactoryUtil.disjunction(); }
Conjunction parent = RestrictionsFactoryUtil.conjunction();
Conjunction related = RestrictionsFactoryUtil.conjunction(); public List<Long> findEventClassNameByC_Parent_and_Related(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK) throws SystemException {
parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId)); DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK)); dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId)); Conjunction parent = RestrictionsFactoryUtil.conjunction();
related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK)); Conjunction related = RestrictionsFactoryUtil.conjunction();
dis.add(parent); parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId));
dis.add(related); parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK));
dynamicQuery.add(dis);
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("classNameId"))); related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery); dis.add(parent);
} dis.add(related);
dynamicQuery.add(dis);
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK)
throws SystemException { dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); .property("classNameId")));
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId)); return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK)); }
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable")));
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId,
return auditEventPersistence.findWithDynamicQuery(dynamicQuery); String classPK) throws SystemException {
} DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
public List<String> findEventTableNameByC_ClassNameId(long companyId, long classNameId) throws SystemException { dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery(); dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK));
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId)); dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId)); .property("auditEventTable")));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
return auditEventPersistence.findWithDynamicQuery(dynamicQuery); }
}
public List<String> findEventTableNameByC_ClassNameId(long companyId, long classNameId)
throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("auditEventTable")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
}
} }

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -28,85 +28,88 @@ import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.util.Validator;
/** /**
* The extended model implementation for the FineLavori service. Represents a row in the * The extended model implementation for the FineLavori service. Represents a
* &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this * row in the &quot;portos_bo_FineLavori&quot; database table, with each column
* class. * mapped to a property of this class.
* *
* <p> * <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added, * Helper methods and all application logic should be put in this class.
* rerun ServiceBuilder to copy their definitions into the * Whenever methods are added, rerun ServiceBuilder to copy their definitions
* {@link it.tref.liferay.portos.bo.model.FineLavori} interface. * into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
*/ */
public class FineLavoriImpl extends FineLavoriBaseImpl { public class FineLavoriImpl extends FineLavoriBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this class directly. All methods that expect a fine lavori model instance * Never reference this class directly. All methods that expect a fine
* should use the {@link it.tref.liferay.portos.bo.model.FineLavori} interface instead. * lavori model instance should use the {@link
*/ * it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() {}
public FineLavoriImpl() {
public String getTitle(Locale locale) { }
StringBuilder sb = new StringBuilder(); public String getTitle(Locale locale) {
try { StringBuilder sb = new StringBuilder();
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId()); try {
// sb.append("Progetto ");
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) { IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId());
sb.append("Deposito "); // sb.append("Progetto ");
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) { if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {
sb.append("Autorizzazione "); sb.append("Deposito ");
} } else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
sb.append("n. "); sb.append("Autorizzazione ");
}
if (Validator.isNotNull(getProtocollo())) { sb.append("n. ");
sb.append(intPratica.getNumeroProgetto());
if (Validator.isNotNull(getProtocollo())) {
// TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo sb.append(intPratica.getNumeroProgetto());
// sbagliato dovrebbe essere il primo
sb.append(" del "); // TODO da decidere che data, per adesso si mette quella di
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica())); // creazione il numero protocollo sbagliato dovrebbe essere il
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); // primo
sb.append(" id "); sb.append(" del ");
sb.append(intPratica.getIntPraticaId()); sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
} else { sb.append(" id ");
if (Validator.isNotNull(intPratica.getNumeroProgetto())) { sb.append(intPratica.getIntPraticaId());
sb.append(intPratica.getNumeroProgetto());
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); } else {
} if (Validator.isNotNull(intPratica.getNumeroProgetto())) {
sb.append(getFineLavoriId()); sb.append(intPratica.getNumeroProgetto());
sb.append(" (Temporaneo) "); sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE); }
sb.append(" id "); sb.append(getFineLavoriId());
sb.append(intPratica.getIntPraticaId()); sb.append(" (Temporaneo) ");
} sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
sb.append(" id ");
} catch (PortalException e) { sb.append(intPratica.getIntPraticaId());
_log.error(e, e); }
} catch (SystemException e) {
_log.error(e, e); } catch (PortalException e) {
} _log.error(e, e);
} catch (SystemException e) {
return sb.toString(); _log.error(e, e);
}
}
return sb.toString();
public String getTitle() {
}
return getTitle(LocaleUtil.getSiteDefault());
} public String getTitle() {
public String getFullDescription() { return getTitle(LocaleUtil.getSiteDefault());
}
return getTitle();
} public String getFullDescription() {
return getTitle();
}
} }

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

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

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

@ -17,128 +17,111 @@ import com.liferay.portal.workflow.kaleo.service.KaleoInstanceTokenLocalServiceU
public class KaleoLogModelListener extends BaseModelListener<KaleoLog> { public class KaleoLogModelListener extends BaseModelListener<KaleoLog> {
private static final Log _log = LogFactoryUtil.getLog(KaleoLogModelListener.class); private static final Log _log = LogFactoryUtil.getLog(KaleoLogModelListener.class);
@Override @Override
public void onAfterCreate(KaleoLog model) throws ModelListenerException { public void onAfterCreate(KaleoLog model) throws ModelListenerException {
try { try {
long kaleoInstanceTokenId = model.getKaleoInstanceTokenId(); long kaleoInstanceTokenId = model.getKaleoInstanceTokenId();
KaleoInstanceToken instanceToken = KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil
KaleoInstanceTokenLocalServiceUtil.fetchKaleoInstanceToken(kaleoInstanceTokenId); .fetchKaleoInstanceToken(kaleoInstanceTokenId);
if (Validator.isNotNull(instanceToken)) { if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) { if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) {
Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class);
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK()); indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK());
if (_log.isDebugEnabled()) { if (_log.isDebugEnabled()) {
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK()); _log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : "
} + instanceToken.getClassPK());
} }
} }
}
} catch (SearchException e) { } catch (SearchException e) {
_log.error(e, e); _log.error(e, e);
} catch (SystemException e) { } catch (SystemException e) {
_log.error(e, e); _log.error(e, e);
} }
super.onAfterUpdate(model); super.onAfterUpdate(model);
} }
@Override @Override
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
// TODO Auto-generated method stub }
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
} @Override
public void onAfterRemove(KaleoLog model) throws ModelListenerException {
@Override
public void onAfterRemove(KaleoLog model) throws ModelListenerException { try {
try { long kaleoInstanceTokenId = model.getKaleoInstanceTokenId();
KaleoInstanceToken instanceToken = KaleoInstanceTokenLocalServiceUtil
long kaleoInstanceTokenId = model.getKaleoInstanceTokenId(); .fetchKaleoInstanceToken(kaleoInstanceTokenId);
KaleoInstanceToken instanceToken =
KaleoInstanceTokenLocalServiceUtil.fetchKaleoInstanceToken(kaleoInstanceTokenId); if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) {
if (Validator.isNotNull(instanceToken)) {
if (instanceToken.getClassName().equals(ControlloPratica.class.getName())) { Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class);
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK());
Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class);
indexer.reindex(ControlloPratica.class.getName(), instanceToken.getClassPK()); if (_log.isDebugEnabled()) {
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : "
if (_log.isDebugEnabled()) { + instanceToken.getClassPK());
_log.debug("KaleoLogModelListener - Chiamato Reindex ControlloPraticaId : " + instanceToken.getClassPK()); }
} }
} }
}
} catch (SearchException e) {
_log.error(e, e);
} catch (SearchException e) { } catch (SystemException e) {
_log.error(e, e); _log.error(e, e);
} catch (SystemException e) { }
_log.error(e, e);
} super.onAfterRemove(model);
}
super.onAfterRemove(model); @Override
} public void onAfterRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
@Override super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) }
throws ModelListenerException {
@Override
// TODO Auto-generated method stub public void onAfterUpdate(KaleoLog model) throws ModelListenerException {
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); super.onAfterUpdate(model);
} }
@Override @Override
public void onAfterUpdate(KaleoLog model) throws ModelListenerException { public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
super.onAfterUpdate(model); }
}
@Override
@Override public void onBeforeCreate(KaleoLog model) throws ModelListenerException {
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) super.onBeforeCreate(model);
throws ModelListenerException { }
// TODO Auto-generated method stub @Override
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); public void onBeforeRemove(KaleoLog model) throws ModelListenerException {
} super.onBeforeRemove(model);
}
@Override
public void onBeforeCreate(KaleoLog model) throws ModelListenerException { @Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
// TODO Auto-generated method stub Object associationClassPK) throws ModelListenerException {
super.onBeforeCreate(model); super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
} }
@Override @Override
public void onBeforeRemove(KaleoLog model) throws ModelListenerException { public void onBeforeUpdate(KaleoLog model) throws ModelListenerException {
super.onBeforeUpdate(model);
// 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(KaleoLog model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeUpdate(model);
}
} }

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

@ -13,110 +13,96 @@ import com.liferay.portal.workflow.kaleo.model.KaleoTaskInstanceToken;
public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<KaleoTaskInstanceToken> { public class KaleoTaskInstanceTokenModelListener extends BaseModelListener<KaleoTaskInstanceToken> {
private static final Log _log = LogFactoryUtil.getLog(KaleoTaskInstanceTokenModelListener.class); private static final Log _log = LogFactoryUtil.getLog(KaleoTaskInstanceTokenModelListener.class);
@Override @Override
public void onAfterUpdate(KaleoTaskInstanceToken model) throws ModelListenerException { public void onAfterUpdate(KaleoTaskInstanceToken model) throws ModelListenerException {
try { try {
if (model.getClassName().equals(ControlloPratica.class.getName())) { if (model.getClassName().equals(ControlloPratica.class.getName())) {
Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class);
indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); indexer.reindex(ControlloPratica.class.getName(), model.getClassPK());
if (_log.isDebugEnabled()) { if (_log.isDebugEnabled()) {
_log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : " + model.getClassPK()); _log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : "
} + model.getClassPK());
} }
}
} catch (SearchException e) { } catch (SearchException e) {
_log.error(e, e); _log.error(e, e);
} }
super.onAfterUpdate(model); super.onAfterUpdate(model);
} }
@Override @Override
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException { throws ModelListenerException {
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
}
// TODO Auto-generated method stub @Override
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK); public void onAfterCreate(KaleoTaskInstanceToken model) throws ModelListenerException {
} super.onAfterCreate(model);
}
@Override @Override
public void onAfterCreate(KaleoTaskInstanceToken model) throws ModelListenerException { public void onAfterRemove(KaleoTaskInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub try {
super.onAfterCreate(model);
}
@Override if (model.getClassName().equals(ControlloPratica.class.getName())) {
public void onAfterRemove(KaleoTaskInstanceToken model) throws ModelListenerException {
try { Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class);
indexer.reindex(ControlloPratica.class.getName(), model.getClassPK());
if (model.getClassName().equals(ControlloPratica.class.getName())) { if (_log.isDebugEnabled()) {
_log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : "
+ model.getClassPK());
}
}
Indexer indexer = IndexerRegistryUtil.getIndexer(ControlloPratica.class); } catch (SearchException e) {
indexer.reindex(ControlloPratica.class.getName(), model.getClassPK()); _log.error(e, e);
}
if (_log.isDebugEnabled()) { super.onAfterRemove(model);
_log.debug("KaleoTaskInstanceToken - Chiamato Reindex ControlloPraticaId : " + model.getClassPK()); }
}
}
} catch (SearchException e) { @Override
_log.error(e, e); public void onAfterRemoveAssociation(Object classPK, String associationClassName,
} Object associationClassPK) throws ModelListenerException {
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
}
super.onAfterRemove(model); @Override
} public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
}
@Override @Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeCreate(KaleoTaskInstanceToken model) throws ModelListenerException {
throws ModelListenerException { super.onBeforeCreate(model);
}
// TODO Auto-generated method stub @Override
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK); public void onBeforeRemove(KaleoTaskInstanceToken model) throws ModelListenerException {
} super.onBeforeRemove(model);
}
@Override @Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK) public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
throws ModelListenerException { Object associationClassPK) throws ModelListenerException {
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
}
// TODO Auto-generated method stub @Override
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK); public void onBeforeUpdate(KaleoTaskInstanceToken model) throws ModelListenerException {
} super.onBeforeUpdate(model);
}
@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
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" }; _methodParameterTypes213 = new String[] { "long" };
_methodName215 = "findNotParereByGeologoId"; _methodName214 = "findNotParereByGeologoId";
_methodParameterTypes215 = new String[] { "long", "int", "int" }; _methodParameterTypes214 = new String[] { "long", "int", "int" };
_methodName216 = "findWithParereByGeologoId"; _methodName215 = "findWithParereByGeologoId";
_methodParameterTypes216 = new String[] { "long", "int", "int" }; _methodParameterTypes215 = new String[] { "long", "int", "int" };
_methodName217 = "countFindNotParereByGeologoId"; _methodName216 = "countFindNotParereByGeologoId";
_methodParameterTypes217 = new String[] { "long" }; _methodParameterTypes216 = new String[] { "long" };
_methodName218 = "countFindWithParereByGeologoId"; _methodName217 = "countFindWithParereByGeologoId";
_methodParameterTypes218 = new String[] { "long" }; _methodParameterTypes217 = new String[] { "long" };
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -436,27 +436,27 @@ public class ParereGeologoLocalServiceClpInvoker {
return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName215.equals(name) && if (_methodName214.equals(name) &&
Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes214, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findNotParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName216.equals(name) && if (_methodName215.equals(name) &&
Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes215, parameterTypes)) {
return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(), return ParereGeologoLocalServiceUtil.findWithParereByGeologoId(((Long)arguments[0]).longValue(),
((Integer)arguments[1]).intValue(), ((Integer)arguments[1]).intValue(),
((Integer)arguments[2]).intValue()); ((Integer)arguments[2]).intValue());
} }
if (_methodName217.equals(name) && if (_methodName216.equals(name) &&
Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes216, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindNotParereByGeologoId(((Long)arguments[0]).longValue());
} }
if (_methodName218.equals(name) && if (_methodName217.equals(name) &&
Arrays.deepEquals(_methodParameterTypes218, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes217, parameterTypes)) {
return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue()); return ParereGeologoLocalServiceUtil.countFindWithParereByGeologoId(((Long)arguments[0]).longValue());
} }
@ -537,12 +537,12 @@ public class ParereGeologoLocalServiceClpInvoker {
private String[] _methodParameterTypes212; private String[] _methodParameterTypes212;
private String _methodName213; private String _methodName213;
private String[] _methodParameterTypes213; private String[] _methodParameterTypes213;
private String _methodName214;
private String[] _methodParameterTypes214;
private String _methodName215; private String _methodName215;
private String[] _methodParameterTypes215; private String[] _methodParameterTypes215;
private String _methodName216; private String _methodName216;
private String[] _methodParameterTypes216; private String[] _methodParameterTypes216;
private String _methodName217; private String _methodName217;
private String[] _methodParameterTypes217; private String[] _methodParameterTypes217;
private String _methodName218;
private String[] _methodParameterTypes218;
} }

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

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

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

@ -44,13 +44,15 @@ import com.liferay.portal.service.ServiceContext;
* The implementation of the comunicazione local service. * The implementation of the comunicazione local service.
* *
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService} interface. * {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService}
* interface.
* *
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Davide Barbagallo, 3F Consulting * @author Davide Barbagallo, 3F Consulting
@ -58,191 +60,156 @@ import com.liferay.portal.service.ServiceContext;
* @see it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil * @see it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil
*/ */
public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBaseImpl { public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBaseImpl {
/* /*
* NOTE FOR DEVELOPERS: * NOTE FOR DEVELOPERS:
* *
* Never reference this interface directly. Always use {@link * Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to access the comunicazione * it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to
* local service. * access the comunicazione local service.
*/ */
public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext) public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda,
throws SystemException, PortalException { ServiceContext serviceContext) throws SystemException, PortalException {
Comunicazione comunicazione = Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService
comunicazionePersistence.create(counterLocalService.increment(Comunicazione.class.getName())); .increment(Comunicazione.class.getName()));
User user = userPersistence.findByPrimaryKey(userId); User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date(); Date now = new Date();
comunicazione.setCompanyId(serviceContext.getCompanyId()); comunicazione.setCompanyId(serviceContext.getCompanyId());
comunicazione.setUserId(user.getUserId()); comunicazione.setUserId(user.getUserId());
comunicazione.setUserName(user.getFullName()); comunicazione.setUserName(user.getFullName());
comunicazione.setCreateDate(serviceContext.getCreateDate(now)); comunicazione.setCreateDate(serviceContext.getCreateDate(now));
comunicazione.setModifiedDate(serviceContext.getModifiedDate(now)); comunicazione.setModifiedDate(serviceContext.getModifiedDate(now));
comunicazione.setGroupId(serviceContext.getScopeGroupId()); comunicazione.setGroupId(serviceContext.getScopeGroupId());
comunicazione.setIntPraticaId(intPraticaId); comunicazione.setIntPraticaId(intPraticaId);
comunicazione.setDomanda(domanda); comunicazione.setDomanda(domanda);
comunicazione = comunicazionePersistence.update(comunicazione); comunicazione = comunicazionePersistence.update(comunicazione);
// Send notification mail for new Comunicazione Mediata // Send notification mail for new Comunicazione Mediata
this.invioAddMailNotifica(comunicazione.getComunicazioneId(), serviceContext); this.invioAddMailNotifica(comunicazione.getComunicazioneId(), serviceContext);
return comunicazione; return comunicazione;
} }
public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException, public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException,
PortalException { PortalException {
Comunicazione comunicazione = comunicazionePersistence.fetchByPrimaryKey(comunicazioneId); Comunicazione comunicazione = comunicazionePersistence.fetchByPrimaryKey(comunicazioneId);
Date now = new Date(); Date now = new Date();
comunicazione.setDtRisposta(now); comunicazione.setDtRisposta(now);
comunicazione.setRisposta(risposta); comunicazione.setRisposta(risposta);
comunicazione = comunicazionePersistence.update(comunicazione); comunicazione = comunicazionePersistence.update(comunicazione);
// resourceLocalService.updateModelResources(comunicazione, serviceContext); // resourceLocalService.updateModelResources(comunicazione,
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); // serviceContext);
if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId()) IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
&& Validator.isNotNull(intPratica.getStatusByUserId())) { 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; }
}
return comunicazione;
public List<Comunicazione> findByIntPratica(long intPraticaId) throws SystemException { }
return comunicazionePersistence.findByIntPratica(intPraticaId);
} public List<Comunicazione> findByIntPratica(long intPraticaId) throws SystemException {
return comunicazionePersistence.findByIntPratica(intPraticaId);
public List<Comunicazione> findByIntPratica(long intPraticaId, int start, int end, OrderByComparator orderByComparator) }
throws SystemException {
return comunicazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator); public List<Comunicazione> findByIntPratica(long intPraticaId, int start, int end,
} OrderByComparator orderByComparator) throws SystemException {
return comunicazionePersistence.findByIntPratica(intPraticaId, start, end, orderByComparator);
public int countByIntPratica(long intPraticaId) throws SystemException { }
return comunicazionePersistence.countByIntPratica(intPraticaId);
} public int countByIntPratica(long intPraticaId) throws SystemException {
return comunicazionePersistence.countByIntPratica(intPraticaId);
public int countNotAnsweredByIntPratica(long intPraticaId) throws SystemException { }
DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId)); public int countNotAnsweredByIntPratica(long intPraticaId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtRisposta")); dynamicQuery.add(RestrictionsFactoryUtil.eq("intPraticaId", intPraticaId));
return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery); dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtRisposta"));
}
return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery);
// private void invioMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws }
// PortalException,
// SystemException { private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext)
// throws PortalException, SystemException {
// Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
// Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
// IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
// IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
// User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
// List<Soggetto> titolari = User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
// soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(), List<Soggetto> titolari = soggettoLocalService.getValidByIntPratica_CodiceFiscale(
// titolaredigitaleUser.getScreenName()); intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName());
// String eMail = StringPool.BLANK; String eMail = StringPool.BLANK;
// String title = StringPool.BLANK; String receiver = StringPool.BLANK;
// if (!titolari.isEmpty()) { if (!titolari.isEmpty()) {
// Soggetto titolareDigitale = titolari.get(0); Soggetto titolareDigitale = titolari.get(0);
// eMail = titolareDigitale.getEmail(); eMail = titolareDigitale.getEmail();
// title = titolareDigitale.getDescrizioneCompleta(); receiver = titolareDigitale.getDescrizioneCompleta();
// } }
//
// String[] to = {eMail}; String[] to = { eMail };
// String[] cc = new String[0]; String[] cc = new String[0];
// String[] ccn = new String[0]; String[] ccn = new String[0];
//
// String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni"; String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni";
// String url = String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(),
// FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(), intPratica.getIntPraticaId(), "/html/fascicolofe/view_fascicolo.jsp", queryString);
// "/html/fascicolofe/view_fascicolo.jsp", queryString);
// JSONObject templateVariable = JSONFactoryUtil.createJSONObject();
// JSONObject templateVariables = JSONFactoryUtil.createJSONObject(); templateVariable.put("receiver", receiver);
// templateVariables.put("receiver", title); templateVariable.put("link", url);
// templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
// templateVariables.put("link", url); MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
// Comunicazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE",
// MailManagerUtil.sendMailByTemplatName(Comunicazione.class.getName(), comunicazioneId, templateVariable, null, serviceContext);
// "NUOVA-COMUNICAZIONE", to, }
// cc, ccn, templateVariables, null, serviceContext);
// } private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date)
throws PortalException, SystemException {
private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws PortalException,
SystemException { Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId); User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId()); String[] to = { tecnicoIstruttore.getEmailAddress() };
String[] cc = new String[0];
User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId()); String[] ccn = new String[0];
List<Soggetto> titolari =
soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(), String tipoPratica = StringPool.BLANK;
titolaredigitaleUser.getScreenName()); long intPraticaId = comunicazione.getIntPraticaId();
String eMail = StringPool.BLANK; if (AzioniPraticheUtil.isDeposito(intPraticaId)) {
String receiver = StringPool.BLANK; tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
if (!titolari.isEmpty()) { } else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
Soggetto titolareDigitale = titolari.get(0); tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
eMail = titolareDigitale.getEmail(); }
receiver = titolareDigitale.getDescrizioneCompleta();
} JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
templateVariables.put("receiver", tecnicoIstruttore.getFullName());
String[] to = {eMail}; templateVariables.put("tipoPratica", tipoPratica);
String[] cc = new String[0]; templateVariables.put("tipoOggetto",
String[] ccn = new String[0]; LanguageUtil.get(LocaleUtil.ITALIAN, "label.comunicazione.mediata"));
templateVariables.put("dataInvio", FastDateFormatFactoryUtil.getSimpleDateFormat("dd/MM/yyyy HH:mm")
String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni"; .format(date));
String url =
FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(), ServiceContext serviceContext = new ServiceContext();
"/html/fascicolofe/view_fascicolo.jsp", queryString); serviceContext.setScopeGroupId(comunicazione.getGroupId());
serviceContext.setCompanyId(comunicazione.getCompanyId());
JSONObject templateVariable = JSONFactoryUtil.createJSONObject(); serviceContext.setUserId(comunicazione.getUserId());
templateVariable.put("receiver", receiver);
templateVariable.put("link", url); MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
Comunicazione.class.getName(), to, cc, ccn, "NOTIFICA-BO", templateVariables, null,
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), to, serviceContext);
cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext); }
}
private void invioUpdateMailNotifica(long comunicazioneId, long tecnicoIstruttoreId, Date date)
throws PortalException, SystemException {
Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
User tecnicoIstruttore = userLocalService.getUser(tecnicoIstruttoreId);
String[] to = {tecnicoIstruttore.getEmailAddress()};
String[] cc = new String[0];
String[] ccn = new String[0];
String tipoPratica = StringPool.BLANK;
long intPraticaId = comunicazione.getIntPraticaId();
if (AzioniPraticheUtil.isDeposito(intPraticaId)) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-01");
} else if (AzioniPraticheUtil.isAutorizzazione(intPraticaId)) {
tipoPratica = LanguageUtil.get(LocaleUtil.ITALIAN, "tipo-pratica-02");
}
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));
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);
}
} }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -5,7 +5,6 @@ import it.tref.portos.calendar.appointments.model.Prenotazione;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Calendar;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.regex.Matcher; import java.util.regex.Matcher;
@ -14,8 +13,6 @@ import java.util.regex.Pattern;
import javax.mail.internet.AddressException; import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress; import javax.mail.internet.InternetAddress;
import org.apache.log4j.net.TelnetAppender;
import com.liferay.mail.service.MailServiceUtil; import com.liferay.mail.service.MailServiceUtil;
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.mail.MailMessage; import com.liferay.portal.kernel.mail.MailMessage;
@ -27,174 +24,178 @@ import com.liferay.util.portlet.PortletProps;
public class CalendarUtil { public class CalendarUtil {
public static void inviaEmailRichiestaAppuntamento(long userIdProfessionista, long userIdFunzionario, Date startDate, String telefono, String emailFeUser) throws SystemException, AddressException{ public static void inviaEmailRichiestaAppuntamento(long userIdProfessionista, long userIdFunzionario,
Date startDate, String telefono, String emailFeUser) throws SystemException, AddressException {
User professionista = UserLocalServiceUtil.fetchUser(userIdProfessionista); User professionista = UserLocalServiceUtil.fetchUser(userIdProfessionista);
User boUser = UserLocalServiceUtil.fetchUser(userIdFunzionario); User boUser = UserLocalServiceUtil.fetchUser(userIdFunzionario);
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(professionista.getEmailAddress()) : null; InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(boUser.getEmailAddress()) : null; professionista.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(emailFeUser) ? new InternetAddress(emailFeUser) : null; InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(
boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(emailFeUser) ? new InternetAddress(
emailFeUser) : null;
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
//Product Backlog Item 32934 // Product Backlog Item 32934
List<InternetAddress> toAddresses = new ArrayList<InternetAddress>(); List<InternetAddress> toAddresses = new ArrayList<InternetAddress>();
if(toAddress != null) if (toAddress != null)
toAddresses.add(toAddress); toAddresses.add(toAddress);
if(toAddressToFeUser != null) if (toAddressToFeUser != null)
toAddresses.add(toAddressToFeUser); toAddresses.add(toAddressToFeUser);
mailMessage.setTo(toAddresses.toArray(new InternetAddress[0])); mailMessage.setTo(toAddresses.toArray(new InternetAddress[0]));
mailMessage.setFrom(fromAddress); mailMessage.setFrom(fromAddress);
if(bccAddress != null) if (bccAddress != null)
mailMessage.setBCC(bccAddress); mailMessage.setBCC(bccAddress);
mailMessage.setSubject("Notifica Richiesta Appuntamento Portos"); mailMessage.setSubject("Notifica Richiesta Appuntamento Portos");
mailMessage.setBody(creaCorpoMailRichiestaAppuntamento(professionista, boUser, startDate, telefono, emailFeUser)); mailMessage.setBody(creaCorpoMailRichiestaAppuntamento(professionista, boUser, startDate, telefono,
emailFeUser));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/* /*
* Invio email * Invio email
*/ */
MailServiceUtil.sendEmail(mailMessage); MailServiceUtil.sendEmail(mailMessage);
} }
public static void inviaEmailAnnullamentoAppuntamento(Prenotazione prenotazione) throws SystemException, AddressException{ public static void inviaEmailAnnullamentoAppuntamento(Prenotazione prenotazione) throws SystemException,
AddressException {
User professionista = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId()); User professionista = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId());
User boUser = UserLocalServiceUtil.fetchUser(prenotazione.getFunzionarioId()); User boUser = UserLocalServiceUtil.fetchUser(prenotazione.getFunzionarioId());
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(professionista.getEmailAddress()) : null; InternetAddress toAddress = isAllowedEmailAddress(professionista.getEmailAddress()) ? new InternetAddress(
InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(boUser.getEmailAddress()) : null; professionista.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(prenotazione.getEmail()) ? new InternetAddress(prenotazione.getEmail()) : null; InternetAddress bccAddress = isAllowedEmailAddress(boUser.getEmailAddress()) ? new InternetAddress(
boUser.getEmailAddress()) : null;
InternetAddress toAddressToFeUser = isAllowedEmailAddress(prenotazione.getEmail()) ? new InternetAddress(
prenotazione.getEmail()) : null;
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
//Product Backlog Item 32934 // Product Backlog Item 32934
List<InternetAddress> toAddresses = new ArrayList<InternetAddress>(); List<InternetAddress> toAddresses = new ArrayList<InternetAddress>();
if(toAddress != null) if (toAddress != null)
toAddresses.add(toAddress); toAddresses.add(toAddress);
if(toAddressToFeUser != null) if (toAddressToFeUser != null)
toAddresses.add(toAddressToFeUser); toAddresses.add(toAddressToFeUser);
mailMessage.setTo(toAddresses.toArray(new InternetAddress[0])); mailMessage.setTo(toAddresses.toArray(new InternetAddress[0]));
mailMessage.setFrom(fromAddress); mailMessage.setFrom(fromAddress);
if(bccAddress != null) if (bccAddress != null)
mailMessage.setBCC(bccAddress); mailMessage.setBCC(bccAddress);
mailMessage.setSubject("Notifica Annullamento Appuntamento Portos"); mailMessage.setSubject("Notifica Annullamento Appuntamento Portos");
mailMessage.setBody(creaCorpoMailAnnullamento(professionista, boUser, prenotazione.getStartDate())); mailMessage.setBody(creaCorpoMailAnnullamento(professionista, boUser, prenotazione.getStartDate()));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/* /*
* Invio email * Invio email
*/ */
MailServiceUtil.sendEmail(mailMessage); MailServiceUtil.sendEmail(mailMessage);
} }
public static void inviaEmailReminderAppuntamenti(List<Prenotazione> lista, User userBo, Date tomorrow)
public static void inviaEmailReminderAppuntamenti(List<Prenotazione> lista, User userBo, Date tomorrow) throws SystemException, AddressException{ throws SystemException, AddressException {
InternetAddress toAddress = isAllowedEmailAddress(userBo.getEmailAddress()) ? new InternetAddress(userBo.getEmailAddress()) : null; InternetAddress toAddress = isAllowedEmailAddress(userBo.getEmailAddress()) ? new InternetAddress(
userBo.getEmailAddress()) : null;
InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it"); InternetAddress fromAddress = new InternetAddress("portos@regione.toscana.it");
MailMessage mailMessage = new MailMessage(); MailMessage mailMessage = new MailMessage();
mailMessage.setTo(toAddress); mailMessage.setTo(toAddress);
mailMessage.setFrom(fromAddress); mailMessage.setFrom(fromAddress);
mailMessage.setSubject("Reminder appuntamenti Portos di domani"); mailMessage.setSubject("Reminder appuntamenti Portos di domani");
mailMessage.setBody(creaCorpoMailReminder(lista,userBo, tomorrow)); mailMessage.setBody(creaCorpoMailReminder(lista, userBo, tomorrow));
mailMessage.setHTMLFormat(true); mailMessage.setHTMLFormat(true);
/* /*
* Invio email * Invio email
*/ */
MailServiceUtil.sendEmail(mailMessage); MailServiceUtil.sendEmail(mailMessage);
} }
private static String creaCorpoMailReminder(List<Prenotazione> lista, User boUser, Date tomorrow)
private static String creaCorpoMailReminder(List<Prenotazione> lista , User boUser, Date tomorrow) throws SystemException{ throws SystemException {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm"); SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/* /*
* Gestione header * Gestione header
*/ */
sb.append("<html><head><title>Appuntamenti del " sb.append("<html><head><title>Appuntamenti del " + sdf.format(tomorrow) + "</title></head><body>");
+ sdf.format(tomorrow)
+ "</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Gentile " + boUser.getFullName() + " ,"); sb.append("Gentile " + boUser.getFullName() + " ,");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("nella seguente email le ricordiamo i suoi appuntamenti per domani."); sb.append("nella seguente email le ricordiamo i suoi appuntamenti per domani.");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<br/>"); sb.append("<br/>");
for (Prenotazione prenotazione : lista) { for (Prenotazione prenotazione : lista) {
User professionistaUser = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId()); User professionistaUser = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId());
sb.append("<div style='width:100%;'>"); 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(" : appuntamento con " + professionistaUser.getFullName() + ". Motivo: ");
sb.append(HtmlUtil.escape(prenotazione.getDescLong())); sb.append(HtmlUtil.escape(prenotazione.getDescLong()));
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
} }
sb.append("</body></html>"); sb.append("</body></html>");
return sb.toString(); return sb.toString();
} }
private static String creaCorpoMailRichiestaAppuntamento(User professionista, User boUser,
private static String creaCorpoMailRichiestaAppuntamento(User professionista, User boUser, Date dataAppuntamento, String telefono, String mail){ Date dataAppuntamento, String telefono, String mail) {
SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy"); SimpleDateFormat sdfGiorno = new SimpleDateFormat("d MMMMM yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm"); SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/* /*
* Gestione header * Gestione header
*/ */
sb.append("<html><head><title>Notifica Richiesta Appuntamento Portos</title></head><body>"); sb.append("<html><head><title>Notifica Richiesta Appuntamento Portos</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Gentile " + professionista.getFullName() + " ,"); sb.append("Gentile " + professionista.getFullName() + " ,");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("con la presente mail la informiamo che il suo appuntamento del "); sb.append("con la presente mail la informiamo che il suo appuntamento del ");
sb.append(sdfGiorno.format(dataAppuntamento)); sb.append(sdfGiorno.format(dataAppuntamento));
@ -202,74 +203,75 @@ public class CalendarUtil {
sb.append(" con " + boUser.getFullName()); sb.append(" con " + boUser.getFullName());
sb.append(" &egrave; stato stato prenotato con successo."); sb.append(" &egrave; stato stato prenotato con successo.");
sb.append("</div>"); 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("<br/><div>Di seguito i recapiti che ha specificato:</div>");
sb.append("<div>Telefono:&#9;").append(telefono).append("</div>"); sb.append("<div>Telefono:&#9;").append(telefono).append("</div>");
sb.append("<div>Email:&#9;").append(mail).append("</div>"); sb.append("<div>Email:&#9;").append(mail).append("</div>");
sb.append("</body></html>"); sb.append("</body></html>");
return sb.toString(); 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 sdfGiorno = new SimpleDateFormat("d MMMMM yyyy");
SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm"); SimpleDateFormat sdfOra = new SimpleDateFormat("HH:mm");
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
/* /*
* Gestione header * Gestione header
*/ */
sb.append("<html><head><title>Notifica Annullamento Appuntamento Portos</title></head><body>"); sb.append("<html><head><title>Notifica Annullamento Appuntamento Portos</title></head><body>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("Gentile " + professionista.getFullName() + " ,"); sb.append("Gentile " + professionista.getFullName() + " ,");
sb.append("</div>"); sb.append("</div>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<br/>"); sb.append("<br/>");
sb.append("<div style='width:100%;'>"); sb.append("<div style='width:100%;'>");
sb.append("con la presente mail la informiamo che il suo appuntamento del "); sb.append("con la presente mail la informiamo che il suo appuntamento del ");
sb.append(sdfGiorno.format(dataAppuntamento)); sb.append(sdfGiorno.format(dataAppuntamento));
sb.append(" delle ore " + sdfOra.format(dataAppuntamento)); sb.append(" delle ore " + sdfOra.format(dataAppuntamento));
sb.append(" &egrave; stato annullato per sopraggiunti impedimenti del tecnico istruttore."); sb.append(" &egrave; stato annullato per sopraggiunti impedimenti del tecnico istruttore.");
sb.append("</div>"); sb.append("</div>");
sb.append("</body></html>"); sb.append("</body></html>");
return sb.toString(); return sb.toString();
} }
//Bug 32935 // Bug 32935
public static int calculateTimeSlots(Date start, Date end, int slotInterval){ public static int calculateTimeSlots(Date start, Date end, int slotInterval) {
Long count = null; Long count = null;
count = (((end.getTime() - start.getTime()) / 1000L) / 60L) / slotInterval + 1; count = (((end.getTime() - start.getTime()) / 1000L) / 60L) / slotInterval + 1;
return count.intValue(); return count.intValue();
} }
private static boolean isAllowedEmailAddress(String emailAddress){ private static boolean isAllowedEmailAddress(String emailAddress) {
final String[] NOT_ALLOWED_EMAIL_DOMAINS = PortletProps.getArray(PortletPropsKeys.EMAIL_DOMAINS_NOT_ALLOWED); final String[] NOT_ALLOWED_EMAIL_DOMAINS = PortletProps
final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(PortletProps.get(PortletPropsKeys.EMAIL_VALIDATOR_REGEXP), Pattern.CASE_INSENSITIVE); .getArray(PortletPropsKeys.EMAIL_DOMAINS_NOT_ALLOWED);
final Pattern VALID_EMAIL_ADDRESS_REGEX = Pattern.compile(
PortletProps.get(PortletPropsKeys.EMAIL_VALIDATOR_REGEXP), Pattern.CASE_INSENSITIVE);
boolean isAllowed = true; boolean isAllowed = true;
if(Validator.isNotNull(emailAddress)){ if (Validator.isNotNull(emailAddress)) {
Matcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(emailAddress); Matcher matcher = VALID_EMAIL_ADDRESS_REGEX.matcher(emailAddress);
isAllowed = matcher.find(); isAllowed = matcher.find();
String emailDomain = emailAddress.substring(emailAddress.indexOf("@") + 1); 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; isAllowed = false;
} }
}else{ } else {
isAllowed = false; isAllowed = false;
} }
return isAllowed; return isAllowed;
} }
} }

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

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

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

@ -22,34 +22,35 @@ import javax.portlet.ActionResponse;
*/ */
public class ComunicazioneMediata extends MVCPortlet { public class ComunicazioneMediata extends MVCPortlet {
private static Log _log = LogFactoryUtil.getLog(ComunicazioneMediata.class); private static Log _log = LogFactoryUtil.getLog(ComunicazioneMediata.class);
public void addComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) { public void addComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId"); long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
String domanda = ParamUtil.getString(actionRequest, "domanda"); String domanda = ParamUtil.getString(actionRequest, "domanda");
try { try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest); ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId); IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica)) { if (Validator.isNotNull(intPratica)) {
ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(), intPratica.getIntPraticaId(), domanda, ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(),
serviceContext); intPratica.getIntPraticaId(), domanda, serviceContext);
} }
} catch (PortalException | SystemException e) { } catch (PortalException | SystemException e) {
_log.error(e, e); _log.error(e, e);
} }
} }
public void updateComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException { public void updateComunicazione(ActionRequest actionRequest, ActionResponse actionResponse)
long comunicazioneId = ParamUtil.getLong(actionRequest, "comunicazioneId"); throws PortalException {
String risposta = ParamUtil.getString(actionRequest, "risposta"); long comunicazioneId = ParamUtil.getLong(actionRequest, "comunicazioneId");
try { String risposta = ParamUtil.getString(actionRequest, "risposta");
ComunicazioneServiceUtil.updateComunicazione(comunicazioneId, risposta); try {
ComunicazioneServiceUtil.updateComunicazione(comunicazioneId, risposta);
} catch (SystemException e) {
_log.error(e, e); } catch (SystemException e) {
} _log.error(e, e);
} }
}
} }

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

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

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

@ -1,6 +1,5 @@
package it.tref.liferay.portos.cookies.action; package it.tref.liferay.portos.cookies.action;
import com.liferay.portal.kernel.events.ActionException; import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction; import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.PortalException;
@ -26,97 +25,100 @@ import com.liferay.portlet.expando.service.ExpandoTableLocalServiceUtil;
public class StartUpAction extends SimpleAction { public class StartUpAction extends SimpleAction {
private final static Log _log = LogFactoryUtil.getLog(StartUpAction.class); private final static Log _log = LogFactoryUtil.getLog(StartUpAction.class);
@Override @Override
public void run(String[] companyIds) throws ActionException { public void run(String[] companyIds) throws ActionException {
for (String id : companyIds) { for (String id : companyIds) {
try { try {
long companyId = GetterUtil.getLong(id); long companyId = GetterUtil.getLong(id);
String[] defaultActions = {ActionKeys.VIEW, ActionKeys.UPDATE}; String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE };
String[] guestActions = {ActionKeys.VIEW}; String[] guestActions = { ActionKeys.VIEW };
// Organization custom fields // Organization custom fields
addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId", addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId",
ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions); ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions);
} catch (Exception e) { } catch (Exception e) {
_log.error("Errore nella procedura automatizzata di configurazione", e); _log.error("Errore nella procedura automatizzata di configurazione", e);
} }
} }
} }
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type, private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name,
boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException { int type, boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions)
throws SystemException {
long classNameId = PortalUtil.getClassNameId(className); long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null; ExpandoTable expandoTable = null;
try { try {
expandoTable = expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME); ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e) { } catch (PortalException e) {
try { try {
expandoTable = expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME); ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) { } catch (PortalException e1) {
} }
} }
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name); ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil
.getColumn(expandoTable.getTableId(), name);
if (expandoColumn == null) { if (expandoColumn == null) {
try { try {
expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type); expandoColumn = ExpandoColumnLocalServiceUtil
.addColumn(expandoTable.getTableId(), name, type);
} catch (PortalException e) { } catch (PortalException e) {
} }
} }
try { try {
if (indexed) { if (indexed) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE, typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE,
String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT)); String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties); expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
} }
if (hidden) { if (hidden) {
UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties(); UnicodeProperties typeSettingsProperties = expandoColumn.getTypeSettingsProperties();
typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1)); typeSettingsProperties.put(ExpandoColumnConstants.PROPERTY_HIDDEN, String.valueOf(1));
expandoColumn.setTypeSettingsProperties(typeSettingsProperties); expandoColumn.setTypeSettingsProperties(typeSettingsProperties);
expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn); expandoColumn = ExpandoColumnLocalServiceUtil.updateExpandoColumn(expandoColumn);
} }
Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST); Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST);
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER); Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER); Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
guestActions); String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
defaultActions); String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(), ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
defaultActions); String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions);
} catch (PortalException e) { } catch (PortalException e) {
} }
return expandoColumn; return expandoColumn;
} }
} }

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

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

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

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

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

@ -27,67 +27,68 @@ import java.util.List;
public class DeployAction extends SimpleAction { public class DeployAction extends SimpleAction {
private final static Log _log = LogFactoryUtil.getLog(DeployAction.class); private final static Log _log = LogFactoryUtil.getLog(DeployAction.class);
@Override @Override
public void run(final String[] ids) throws ActionException { public void run(final String[] ids) throws ActionException {
/* /*
* ServiceContext serviceContext = DeployAlertUtil.getServiceContext(); try { * ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
* PermissionThreadLocal * try { PermissionThreadLocal
* .setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil * .setPermissionChecker(PermissionCheckerFactoryUtil
* .getUser(serviceContext.getUserId()))); } catch (Exception e) { _log.error(e, e); } * .create(UserLocalServiceUtil .getUser(serviceContext.getUserId())));
* DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext); * } catch (Exception e) { _log.error(e, e); }
* DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext); * DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext);
*/ * DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext);
*/
MessageBusUtil.registerMessageListener(DestinationNames.HOT_DEPLOY, new MessageListener() {
MessageBusUtil.registerMessageListener(DestinationNames.HOT_DEPLOY, new MessageListener() {
@Override
public void receive(Message message) throws MessageListenerException { @Override
public void receive(Message message) throws MessageListenerException {
String evento = message.getString("command");
String nomePlugin = message.getString("servletContextName"); String evento = message.getString("command");
String nomePlugin = message.getString("servletContextName");
if (evento.equals("undeploy") && nomePlugin.equals("portos-deploy-alert-portlet")) {
try { if (evento.equals("undeploy") && nomePlugin.equals("portos-deploy-alert-portlet")) {
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento); try {
} catch (PortalException | SystemException e) { NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
_log.error(e, e); } catch (PortalException | SystemException e) {
} _log.error(e, e);
MessageBusUtil.unregisterMessageListener(DestinationNames.HOT_DEPLOY, this); }
} else if (evento.equals("deploy") || evento.equals("undeploy")) { MessageBusUtil.unregisterMessageListener(DestinationNames.HOT_DEPLOY, this);
try { } else if (evento.equals("deploy") || evento.equals("undeploy")) {
List<NotificationMail> notifications; try {
List<NotificationMail> notifications;
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
notifications =
NotificationMailLocalServiceUtil.findNotifications(PortalUtil.getDefaultCompanyId(), nomePlugin); notifications = NotificationMailLocalServiceUtil.findNotifications(
PortalUtil.getDefaultCompanyId(), nomePlugin);
for (int i = 0; i < notifications.size(); i++) {
for (int i = 0; i < notifications.size(); i++) {
String templateName = notifications.get(i).getNomeTemplate();
String templateName = notifications.get(i).getNomeTemplate();
if (templateName.equals(MailConstants.DEFAULT_TEMPLATE)) {
if (evento.equals("deploy")) { if (templateName.equals(MailConstants.DEFAULT_TEMPLATE)) {
templateName = MailConstants.DEFAULT_DEPLOY_TEMPLATE; if (evento.equals("deploy")) {
} else { templateName = MailConstants.DEFAULT_DEPLOY_TEMPLATE;
templateName = MailConstants.DEFAULT_UNDEPLOY_TEMPLATE; } else {
} templateName = MailConstants.DEFAULT_UNDEPLOY_TEMPLATE;
} }
}
JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento);
JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento);
ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
MailManagerUtil.sendMailByTemplateName(Company.class.toString(), serviceContext.getCompanyId(), ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
templateName, parametri, serviceContext); MailManagerUtil.sendMailByTemplateName(Company.class.toString(),
} serviceContext.getCompanyId(), templateName, parametri, serviceContext);
}
} catch (Exception e) {
_log.error(e, e); } catch (Exception e) {
} _log.error(e, e);
} }
} }
}); }
} });
}
} }

16
liferay-plugins-sdk-6.2/portlets/portos-deploy-alert-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/deployalert/control/DeployAlertControl.java

@ -8,17 +8,17 @@ import com.liferay.portlet.BaseControlPanelEntry;
public class DeployAlertControl extends BaseControlPanelEntry { public class DeployAlertControl extends BaseControlPanelEntry {
public boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet) public boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet)
throws Exception { throws Exception {
long companyId = PortalUtil.getDefaultCompanyId(); long companyId = PortalUtil.getDefaultCompanyId();
if (companyId == permissionChecker.getCompanyId()) { if (companyId == permissionChecker.getCompanyId()) {
return true; return true;
} }
return false; return false;
} }
} }

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

@ -28,12 +28,14 @@ import java.util.Date;
/** /**
* The implementation of the notification log local service. * The implementation of the notification log local service.
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationLogLocalService} interface. * {@link it.tref.liferay.portos.deployalert.service.NotificationLogLocalService}
* interface.
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Matteo * @author Matteo
@ -42,33 +44,34 @@ import java.util.Date;
*/ */
public class NotificationLogLocalServiceImpl extends NotificationLogLocalServiceBaseImpl { public class NotificationLogLocalServiceImpl extends NotificationLogLocalServiceBaseImpl {
public NotificationLog addNotification(String nomePlugin, String tipo) throws SystemException, PortalException { public NotificationLog addNotification(String nomePlugin, String tipo) throws SystemException,
PortalException {
Date now = new Date(); Date now = new Date();
validate(nomePlugin, tipo); validate(nomePlugin, tipo);
long notificationId = counterLocalService.increment(NotificationLog.class.getName()); long notificationId = counterLocalService.increment(NotificationLog.class.getName());
NotificationLog notification = notificationLogPersistence.create(notificationId); NotificationLog notification = notificationLogPersistence.create(notificationId);
notification.setTipo(tipo); notification.setTipo(tipo);
notification.setNomePlugin(nomePlugin); notification.setNomePlugin(nomePlugin);
notification.setData(now); notification.setData(now);
notificationLogPersistence.update(notification); notificationLogPersistence.update(notification);
return notification; return notification;
} }
private void validate(String nomePlugin, String tipo) throws NotificationTipoException, private void validate(String nomePlugin, String tipo) throws NotificationTipoException,
NotificationNomePluginException { NotificationNomePluginException {
if (Validator.isNull(nomePlugin)) { if (Validator.isNull(nomePlugin)) {
throw new NotificationNomePluginException(); throw new NotificationNomePluginException();
} }
if (Validator.isNull(tipo)) { if (Validator.isNull(tipo)) {
throw new NotificationTipoException(); throw new NotificationTipoException();
} }
} }
} }

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

@ -37,12 +37,14 @@ import java.util.List;
/** /**
* The implementation of the notification mail local service. * The implementation of the notification mail local service.
* <p> * <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun * All custom service methods should be put in this class. Whenever methods are
* ServiceBuilder to copy their definitions into the * added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationMailLocalService} interface. * {@link it.tref.liferay.portos.deployalert.service.NotificationMailLocalService}
* interface.
* <p> * <p>
* This is a local service. Methods of this service will not have security checks based on the * This is a local service. Methods of this service will not have security
* propagated JAAS credentials because this service can only be accessed from within the same VM. * checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p> * </p>
* *
* @author Matteo * @author Matteo
@ -51,101 +53,104 @@ import java.util.List;
*/ */
public class NotificationMailLocalServiceImpl extends NotificationMailLocalServiceBaseImpl { public class NotificationMailLocalServiceImpl extends NotificationMailLocalServiceBaseImpl {
public NotificationMail addNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext) public NotificationMail addNotification(String nomePlugin, String nomeTemplate,
throws PortalException, SystemException { ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(serviceContext.getUserId()); User user = userPersistence.findByPrimaryKey(serviceContext.getUserId());
Date now = new Date(); Date now = new Date();
validate(nomePlugin, nomeTemplate); validate(nomePlugin, nomeTemplate);
long notificationId = counterLocalService.increment(NotificationMail.class.getName()); long notificationId = counterLocalService.increment(NotificationMail.class.getName());
NotificationMail notification = notificationMailPersistence.create(notificationId); NotificationMail notification = notificationMailPersistence.create(notificationId);
notification.setUserId(user.getUserId()); notification.setUserId(user.getUserId());
notification.setCompanyId(user.getCompanyId()); notification.setCompanyId(user.getCompanyId());
notification.setUserName(user.getFullName()); notification.setUserName(user.getFullName());
notification.setCreateDate(serviceContext.getCreateDate(now)); notification.setCreateDate(serviceContext.getCreateDate(now));
notification.setModifiedDate(serviceContext.getModifiedDate(now)); notification.setModifiedDate(serviceContext.getModifiedDate(now));
notification.setExpandoBridgeAttributes(serviceContext); notification.setExpandoBridgeAttributes(serviceContext);
notification.setNomePlugin(nomePlugin); notification.setNomePlugin(nomePlugin);
notification.setNomeTemplate(nomeTemplate); notification.setNomeTemplate(nomeTemplate);
notificationMailPersistence.update(notification); notificationMailPersistence.update(notification);
return notification; return notification;
} }
private void validate(String nomePlugin, String nomeTemplate) throws NotificationNomePluginException, private void validate(String nomePlugin, String nomeTemplate) throws NotificationNomePluginException,
NotificationNomeTemplateException { NotificationNomeTemplateException {
if (Validator.isNull(nomePlugin)) { if (Validator.isNull(nomePlugin)) {
throw new NotificationNomePluginException(); throw new NotificationNomePluginException();
} }
if (Validator.isNull(nomeTemplate)) { if (Validator.isNull(nomeTemplate)) {
throw new NotificationNomeTemplateException(); throw new NotificationNomeTemplateException();
} }
} }
public NotificationMail updateNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext, public NotificationMail updateNotification(String nomePlugin, String nomeTemplate,
long notificationId) throws SystemException, PortalException { ServiceContext serviceContext, long notificationId) throws SystemException, PortalException {
Date now = new Date(); Date now = new Date();
NotificationMail notification = getNotificationMail(notificationId); NotificationMail notification = getNotificationMail(notificationId);
validate(nomePlugin, nomeTemplate); validate(nomePlugin, nomeTemplate);
notification.setModifiedDate(serviceContext.getModifiedDate(now)); notification.setModifiedDate(serviceContext.getModifiedDate(now));
notification.setNomePlugin(nomePlugin); notification.setNomePlugin(nomePlugin);
notification.setNomeTemplate(nomeTemplate); notification.setNomeTemplate(nomeTemplate);
notification.setExpandoBridgeAttributes(serviceContext); notification.setExpandoBridgeAttributes(serviceContext);
notificationMailPersistence.update(notification); notificationMailPersistence.update(notification);
return notification; return notification;
} }
public List<NotificationMail> findNotifications(long companyId, int start, int end) throws SystemException { public List<NotificationMail> findNotifications(long companyId, int start, int end)
throws SystemException {
// return notificationMailPersistence.findBycompanyId(companyId, start, end); // return notificationMailPersistence.findBycompanyId(companyId, start,
DynamicQuery query = notificationMailLocalService.dynamicQuery(); // end);
query.addOrder(OrderFactoryUtil.asc("nomePlugin")); DynamicQuery query = notificationMailLocalService.dynamicQuery();
List<NotificationMail> notifications = null; query.addOrder(OrderFactoryUtil.asc("nomePlugin"));
try { List<NotificationMail> notifications = null;
notifications = NotificationMailLocalServiceUtil.dynamicQuery(query); try {
} catch (SystemException e) { notifications = NotificationMailLocalServiceUtil.dynamicQuery(query);
e.printStackTrace(); } catch (SystemException e) {
} e.printStackTrace();
return notifications; }
} return notifications;
}
public List<NotificationMail> findNotifications(long companyId) throws SystemException { public List<NotificationMail> findNotifications(long companyId) throws SystemException {
return notificationMailPersistence.findBycompanyId(companyId); return notificationMailPersistence.findBycompanyId(companyId);
} }
public int getNotificationCount(long companyId) throws SystemException { public int getNotificationCount(long companyId) throws SystemException {
return notificationMailPersistence.countBycompanyId(companyId); return notificationMailPersistence.countBycompanyId(companyId);
} }
public List<NotificationMail> findNotifications(long companyId, String servletContextName) throws SystemException { public List<NotificationMail> findNotifications(long companyId, String servletContextName)
throws SystemException {
DynamicQuery dynamicQuery = notificationMailLocalService.dynamicQuery(); DynamicQuery dynamicQuery = notificationMailLocalService.dynamicQuery();
if (Validator.isNull(servletContextName)) { if (Validator.isNull(servletContextName)) {
Disjunction or = RestrictionsFactoryUtil.disjunction(); Disjunction or = RestrictionsFactoryUtil.disjunction();
or.add(RestrictionsFactoryUtil.isNull("nomePlugin")); or.add(RestrictionsFactoryUtil.isNull("nomePlugin"));
or.add(RestrictionsFactoryUtil.eq("nomePlugin", StringPool.BLANK)); or.add(RestrictionsFactoryUtil.eq("nomePlugin", StringPool.BLANK));
dynamicQuery.add(or); dynamicQuery.add(or);
} else { } else {
dynamicQuery.add(RestrictionsFactoryUtil.eq("nomePlugin", servletContextName)); dynamicQuery.add(RestrictionsFactoryUtil.eq("nomePlugin", servletContextName));
} }
return notificationMailPersistence.findWithDynamicQuery(dynamicQuery); return notificationMailPersistence.findWithDynamicQuery(dynamicQuery);
} }
} }

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

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

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

@ -24,81 +24,80 @@ import java.util.Date;
public class DeployAlertUtil { public class DeployAlertUtil {
private final static Log _log = LogFactoryUtil.getLog(DeployAlertUtil.class); private final static Log _log = LogFactoryUtil.getLog(DeployAlertUtil.class);
public static final ServiceContext getServiceContext() { public static final ServiceContext getServiceContext() {
long companyId = PortalUtil.getDefaultCompanyId(); long companyId = PortalUtil.getDefaultCompanyId();
ServiceContext serviceContext = new ServiceContext(); ServiceContext serviceContext = new ServiceContext();
Company company; Company company;
serviceContext.setCompanyId(companyId); serviceContext.setCompanyId(companyId);
try { try {
company = CompanyLocalServiceUtil.getCompany(companyId); company = CompanyLocalServiceUtil.getCompany(companyId);
Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), RoleConstants.ADMINISTRATOR); Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), RoleConstants.ADMINISTRATOR);
long userAdminId = UserLocalServiceUtil.getRoleUserIds(role.getRoleId())[0]; long userAdminId = UserLocalServiceUtil.getRoleUserIds(role.getRoleId())[0];
serviceContext.setUserId(userAdminId); serviceContext.setUserId(userAdminId);
serviceContext.setScopeGroupId(company.getGroupId()); serviceContext.setScopeGroupId(company.getGroupId());
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil.getUser(userAdminId))); PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil
} catch (Exception e) { .create(UserLocalServiceUtil.getUser(userAdminId)));
_log.error(e, e); } catch (Exception e) {
} _log.error(e, e);
}
return serviceContext; return serviceContext;
} }
public static final boolean addDefaultDeployMailTemplate(ServiceContext serviceContext) { public static final boolean addDefaultDeployMailTemplate(ServiceContext serviceContext) {
boolean add = false; boolean add = false;
String subject = "Deploy Plugin"; String subject = "Deploy Plugin";
String body = "E' stato effettuato il $evento del plugin $nomePlugin in data $data."; String body = "E' stato effettuato il $evento del plugin $nomePlugin in data $data.";
String[] to = {"matteoguggia97@gmail.com"}; String[] to = { "matteoguggia97@gmail.com" };
try { try {
add = add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE,
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE, "test@3fconsulting.it", to, null, "test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
null, subject, body, false, serviceContext); } catch (SystemException e) {
} catch (SystemException e) { _log.error(e, e);
_log.error(e, e); }
} PermissionThreadLocal.setPermissionChecker(null);
PermissionThreadLocal.setPermissionChecker(null);
return add; return add;
} }
public static final boolean addDefaultUndeployMailTemplate(ServiceContext serviceContext) { public static final boolean addDefaultUndeployMailTemplate(ServiceContext serviceContext) {
boolean add = false; boolean add = false;
String subject = "Undeploy Plugin"; String subject = "Undeploy Plugin";
String body = "E' stato effettuato l'$evento del plugin $nomePlugin in data $data."; String body = "E' stato effettuato l'$evento del plugin $nomePlugin in data $data.";
String[] to = {"matteoguggia97@gmail.com"}; String[] to = { "matteoguggia97@gmail.com" };
try { try {
add = add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE,
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE, "test@3fconsulting.it", to, null, "test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
null, subject, body, false, serviceContext); } catch (SystemException e) {
} catch (SystemException e) { _log.error(e, e);
_log.error(e, e); }
} PermissionThreadLocal.setPermissionChecker(null);
PermissionThreadLocal.setPermissionChecker(null);
return add; return add;
} }
public static final JSONObject getParametri(String nomePlugin, String evento) { public static final JSONObject getParametri(String nomePlugin, String evento) {
JSONObject parametri = JSONFactoryUtil.createJSONObject(); JSONObject parametri = JSONFactoryUtil.createJSONObject();
String data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format(new Date()); String data = new SimpleDateFormat("dd/MM/yyyy HH:mm").format(new Date());
parametri.put("data", data); parametri.put("data", data);
parametri.put("evento", evento); parametri.put("evento", evento);
parametri.put("nomePlugin", nomePlugin); parametri.put("nomePlugin", nomePlugin);
return parametri; return parametri;
} }
} }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File binario non mostrato.

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

@ -4,18 +4,14 @@ import java.util.List;
public class ExtractorResponse { public class ExtractorResponse {
private boolean success; private boolean success;
private List<String> cf; private List<String> cf;
public boolean isSuccess() {
return success;
}
public List<String> getCf() {
return cf;
}
public boolean isSuccess() {
return success;
}
public List<String> getCf() {
return cf;
}
} }

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

File diff suppressed because one or more lines are too long

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File binario non mostrato.

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

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

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

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

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

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

File binario non mostrato.

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

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

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

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

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

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

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

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

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

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

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

File binario non mostrato.

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

File binario non mostrato.

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

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

Caricamento…
Annulla
Salva