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. 24
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/HistoryWorkflowActionLocalServiceImpl.java
  27. 9
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/IntPraticaLocalServiceImpl.java
  28. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ParereGeologoLocalServiceImpl.java
  29. 67
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SoggettoLocalServiceImpl.java
  30. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/SorteggioLocalServiceImpl.java
  31. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  32. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/gestioneattivita/view_columns.jspf
  33. 2
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath
  34. 9
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java
  35. 96
      liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java
  36. 2
      liferay-plugins-sdk-6.2/portlets/portos-comunicazioni-portlet/.classpath
  37. 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. 13
      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. 17
      liferay-plugins-sdk-6.2/portlets/portos-kaleo-controller-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/kaleo/controller/service/impl/KaleoInstanceLocalServiceImpl.java
  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"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

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

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

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

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

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

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

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.LogFactoryUtil;
public class ProcessorRouterAuditDatabase implements AuditMessageProcessor {
private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class);
private static Log _log = LogFactoryUtil.getLog(ProcessorRouterAuditDatabase.class);
@Override
public void process(AuditMessage auditMessage) throws AuditException {
try {
doProcess(auditMessage);
} catch (Exception e) {
_log.fatal("Unable to process audit message " + auditMessage, e);
}
}
@Override
public void process(AuditMessage auditMessage) throws AuditException {
try {
doProcess(auditMessage);
} catch (Exception e) {
_log.fatal("Unable to process audit message " + auditMessage, e);
}
}
protected void doProcess(AuditMessage auditMessage) throws Exception {
AuditEventLocalServiceUtil.addAuditEvent(auditMessage);
}
protected void doProcess(AuditMessage auditMessage) throws Exception {
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 {
private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors =
new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>();
private Map<String, Set<AuditMessageProcessor>> _auditMessageProcessors = new ConcurrentHashMap<String, Set<AuditMessageProcessor>>();
private List<AuditMessageProcessor> _globalAuditMessageProcessors = new CopyOnWriteArrayList<AuditMessageProcessor>();
@Override
public boolean isDeployed() {
int auditMessageProcessorsCount = 0;
@Override
public boolean isDeployed() {
int auditMessageProcessorsCount = 0;
if (_auditMessageProcessors != null) {
auditMessageProcessorsCount = _auditMessageProcessors.size();
}
if (_auditMessageProcessors != null) {
auditMessageProcessorsCount = _auditMessageProcessors.size();
}
if ((auditMessageProcessorsCount > 0) || !_globalAuditMessageProcessors.isEmpty()) {
if ((auditMessageProcessorsCount > 0) || !_globalAuditMessageProcessors.isEmpty()) {
return true;
} else {
return false;
}
}
return true;
} else {
return false;
}
}
@Override
public void route(AuditMessage auditMessage) throws AuditException {
@Override
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) {
for (AuditMessageProcessor auditMessageProcessor : auditMessageProcessors) {
auditMessageProcessor.process(auditMessage);
}
}
}
if (auditMessageProcessors != null) {
for (AuditMessageProcessor auditMessageProcessor : auditMessageProcessors) {
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) {
auditMessageProcessorsSet = new HashSet<AuditMessageProcessor>();
if (auditMessageProcessorsSet == null) {
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.
*
* <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.audit.service.AuditEventLocalService} interface.
* All custom service methods should be put in this class. Whenever methods are
* added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.audit.service.AuditEventLocalService}
* interface.
*
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author ViVieb srl
@ -48,233 +50,243 @@ import com.liferay.portal.kernel.util.StringPool;
*/
public class AuditEventLocalServiceImpl extends AuditEventLocalServiceBaseImpl {
@Override
public AuditEvent addAuditEvent(AuditMessage auditMessage) throws SystemException {
AuditEvent auditEvent = auditEventPersistence.create(counterLocalService.increment(AuditEvent.class.getName()));
auditEvent.setCompanyId(auditMessage.getCompanyId());
auditEvent.setUserId(auditMessage.getUserId());
auditEvent.setUserName(auditMessage.getUserName());
auditEvent.setCreateDate(auditMessage.getTimestamp());
auditEvent.setEventType(auditMessage.getEventType());
auditEvent.setClassName(auditMessage.getClassName());
auditEvent.setClassPK(auditMessage.getClassPK());
auditEvent.setMessage(auditMessage.getMessage());
auditEvent.setClientHost(auditMessage.getClientHost());
auditEvent.setClientIP(auditMessage.getClientIP());
auditEvent.setServerName(auditMessage.getServerName());
auditEvent.setServerPort(auditMessage.getServerPort());
auditEvent.setSessionID(auditMessage.getSessionID());
auditEvent.setServerPort(auditMessage.getServerPort());
estreazioneAdditionalInfo(auditEvent, auditMessage);
return auditEventPersistence.update(auditEvent);
}
private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) {
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_AUDIT_EVENT_TABLE,
StringPool.BLANK));
auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY,
StringPool.BLANK));
auditEvent
.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION, StringPool.BLANK));
auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE, StringPool.BLANK));
auditEvent.setEnteGroupId(auditMessage.getAdditionalInfo().getLong(AuditKey.FIELD_ENTE_GROUP_ID, 0l));
auditEvent.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK));
auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_PK, "0l"));
auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_PARENT_CLASS_NAME,
StringPool.BLANK));
auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_PK, "0l"));
auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_RELATED_CLASS_NAME,
StringPool.BLANK));
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_AUDIT_EVENT_TABLE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_CATEGORY);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_CODICE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_GROUP_ID);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_DIFF);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_NAME);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_PK);
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 {
return auditEventPersistence.countByCompanyId(companyId);
}
@Override
public List<AuditEvent> findByCompanyId(long companyId, int start, int end, 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 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, 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 List<String> findAllClassPkByClassName(long companyId, long classNameId, int start, int end)
throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
public int countClassPkByClassName(long companyId, long classNameId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
return (int) auditEventLocalService.dynamicQueryCount(dynamicQuery);
}
private DynamicQuery dynamicQueryClassPkByClassName(long companyId, long classNameId) {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.setProjection(ProjectionFactoryUtil.property("classPK"));
dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("classPK"));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
return dynamicQuery;
}
public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable,
int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_AuditEventTable(companyId, classNameId, auditEventTable, start,
end);
}
public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable)
throws SystemException {
return auditEventPersistence.countByC_ClassNameId_AuditEventTable(companyId, classNameId, auditEventTable);
}
public List<AuditEvent> findByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK,
String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK,
auditEventTable, start, end);
}
public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK,
String auditEventTable) throws SystemException {
return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId, classPK,
auditEventTable);
}
/*
* public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long companyId, long
* parentClassNameId, String parentClassPK, int start, int end) throws SystemException { return
* auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId,
* parentClassPK, start, end); }
*
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long parentClassNameId,
* String parentClassPK) throws SystemException { return
* auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId, parentClassNameId,
* parentClassPK); }
*/
public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId, int start, int end)
throws SystemException {
DynamicQuery dynamicQuery =
createC_Parent_Related_ClassNameId(companyId, parentClassNameId, parentClassPK, relatedClassNameId,
relatedClassPK, classNameId);
dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate"));
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK,
long relatedClassNameId, String relatedClassPK, long classNameId) throws SystemException {
return (int) auditEventPersistence.countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId,
parentClassNameId, parentClassPK, relatedClassNameId, relatedClassPK, classNameId));
}
private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId, String parentClassPK,
long relatedClassNameId, String relatedClassPK, long classNameId) {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
Conjunction parent = RestrictionsFactoryUtil.conjunction();
Conjunction related = RestrictionsFactoryUtil.conjunction();
parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId));
parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK));
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId));
related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK));
dis.add(parent);
dis.add(related);
dynamicQuery.add(dis);
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
return dynamicQuery;
}
public List<Long> findEventClassNameByC_Parent_and_Related(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK) throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
Conjunction parent = RestrictionsFactoryUtil.conjunction();
Conjunction related = RestrictionsFactoryUtil.conjunction();
parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId));
parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK));
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId));
related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK));
dis.add(parent);
dis.add(related);
dynamicQuery.add(dis);
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("classNameId")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
}
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId, String classPK)
throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("auditEventTable")));
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);
}
@Override
public AuditEvent addAuditEvent(AuditMessage auditMessage) throws SystemException {
AuditEvent auditEvent = auditEventPersistence.create(counterLocalService.increment(AuditEvent.class
.getName()));
auditEvent.setCompanyId(auditMessage.getCompanyId());
auditEvent.setUserId(auditMessage.getUserId());
auditEvent.setUserName(auditMessage.getUserName());
auditEvent.setCreateDate(auditMessage.getTimestamp());
auditEvent.setEventType(auditMessage.getEventType());
auditEvent.setClassName(auditMessage.getClassName());
auditEvent.setClassPK(auditMessage.getClassPK());
auditEvent.setMessage(auditMessage.getMessage());
auditEvent.setClientHost(auditMessage.getClientHost());
auditEvent.setClientIP(auditMessage.getClientIP());
auditEvent.setServerName(auditMessage.getServerName());
auditEvent.setServerPort(auditMessage.getServerPort());
auditEvent.setSessionID(auditMessage.getSessionID());
auditEvent.setServerPort(auditMessage.getServerPort());
estreazioneAdditionalInfo(auditEvent, auditMessage);
return auditEventPersistence.update(auditEvent);
}
private void estreazioneAdditionalInfo(AuditEvent auditEvent, AuditMessage auditMessage) {
auditEvent.setAuditEventTable(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_AUDIT_EVENT_TABLE, StringPool.BLANK));
auditEvent.setEventCategory(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_CATEGORY,
StringPool.BLANK));
auditEvent.setEventAction(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_EVENT_ACTION,
StringPool.BLANK));
auditEvent.setEnteCodice(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_ENTE_CODICE,
StringPool.BLANK));
auditEvent.setEnteGroupId(auditMessage.getAdditionalInfo().getLong(AuditKey.FIELD_ENTE_GROUP_ID, 0l));
auditEvent.setDiff(auditMessage.getAdditionalInfo().getString(AuditKey.FIELD_DIFF, StringPool.BLANK));
auditEvent.setParentClassPK(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_PARENT_CLASS_PK, "0l"));
auditEvent.setParentClassName(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_PARENT_CLASS_NAME, StringPool.BLANK));
auditEvent.setRelatedClassPK(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_RELATED_CLASS_PK, "0l"));
auditEvent.setRelatedClassName(auditMessage.getAdditionalInfo().getString(
AuditKey.FIELD_RELATED_CLASS_NAME, StringPool.BLANK));
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_AUDIT_EVENT_TABLE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_CATEGORY);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_EVENT_ACTION);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_CODICE);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_ENTE_GROUP_ID);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_DIFF);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_NAME);
auditMessage.getAdditionalInfo().remove(AuditKey.FIELD_PARENT_CLASS_PK);
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 {
return auditEventPersistence.countByCompanyId(companyId);
}
@Override
public List<AuditEvent> findByCompanyId(long companyId, int start, int end,
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 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, 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 List<String> findAllClassPkByClassName(long companyId, long classNameId, int start, int end)
throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
public int countClassPkByClassName(long companyId, long classNameId) throws SystemException {
DynamicQuery dynamicQuery = dynamicQueryClassPkByClassName(companyId, classNameId);
return (int) auditEventLocalService.dynamicQueryCount(dynamicQuery);
}
private DynamicQuery dynamicQueryClassPkByClassName(long companyId, long classNameId) {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.setProjection(ProjectionFactoryUtil.property("classPK"));
dynamicQuery.setProjection(ProjectionFactoryUtil.groupProperty("classPK"));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
return dynamicQuery;
}
public List<AuditEvent> findByC_ClassNameId_AuditEventTable(long companyId, long classNameId,
String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_AuditEventTable(companyId, classNameId,
auditEventTable, start, end);
}
public int countByC_ClassNameId_AuditEventTable(long companyId, long classNameId, String auditEventTable)
throws SystemException {
return auditEventPersistence.countByC_ClassNameId_AuditEventTable(companyId, classNameId,
auditEventTable);
}
public List<AuditEvent> findByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId,
String classPK, String auditEventTable, int start, int end) throws SystemException {
return auditEventPersistence.findByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
classPK, auditEventTable, start, end);
}
public int countByC_ClassNameId_ClassPK_AuditEventTable(long companyId, long classNameId, String classPK,
String auditEventTable) throws SystemException {
return auditEventPersistence.countByC_ClassNameId_ClassPK_AuditEventTable(companyId, classNameId,
classPK, auditEventTable);
}
/*
* public List<AuditEvent> findByC_ParentClassNameId_ParentClassPK(long
* companyId, long parentClassNameId, String parentClassPK, int start, int
* end) throws SystemException { return
* auditEventPersistence.findByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassNameId, parentClassPK, start, end); }
*
* public int countByC_ParentClassNameId_ParentClassPK(long companyId, long
* parentClassNameId, String parentClassPK) throws SystemException { return
* auditEventPersistence.countByC_ParentClassNameId_ParentClassPK(companyId,
* parentClassNameId, parentClassPK); }
*/
public List<AuditEvent> findByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId,
int start, int end) throws SystemException {
DynamicQuery dynamicQuery = createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
parentClassPK, relatedClassNameId, relatedClassPK, classNameId);
dynamicQuery.addOrder(OrderFactoryUtil.desc("createDate"));
return auditEventLocalService.dynamicQuery(dynamicQuery, start, end);
}
public int countByC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId)
throws SystemException {
return (int) auditEventPersistence
.countWithDynamicQuery(createC_Parent_Related_ClassNameId(companyId, parentClassNameId,
parentClassPK, relatedClassNameId, relatedClassPK, classNameId));
}
private DynamicQuery createC_Parent_Related_ClassNameId(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK, long classNameId) {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
Conjunction parent = RestrictionsFactoryUtil.conjunction();
Conjunction related = RestrictionsFactoryUtil.conjunction();
parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId));
parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK));
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId));
related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK));
dis.add(parent);
dis.add(related);
dynamicQuery.add(dis);
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
return dynamicQuery;
}
public List<Long> findEventClassNameByC_Parent_and_Related(long companyId, long parentClassNameId,
String parentClassPK, long relatedClassNameId, String relatedClassPK) throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
Disjunction dis = RestrictionsFactoryUtil.disjunction();
Conjunction parent = RestrictionsFactoryUtil.conjunction();
Conjunction related = RestrictionsFactoryUtil.conjunction();
parent.add(RestrictionsFactoryUtil.eq("parentClassNameId", parentClassNameId));
parent.add(RestrictionsFactoryUtil.eq("parentClassPK", parentClassPK));
related.add(RestrictionsFactoryUtil.eq("relatedClassNameId", relatedClassNameId));
related.add(RestrictionsFactoryUtil.eq("relatedClassPK", relatedClassPK));
dis.add(parent);
dis.add(related);
dynamicQuery.add(dis);
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("classNameId")));
return auditEventPersistence.findWithDynamicQuery(dynamicQuery);
}
public List<String> findEventTableNameByC_ClassNameId_ClassPK(long companyId, long classNameId,
String classPK) throws SystemException {
DynamicQuery dynamicQuery = auditEventLocalService.dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("companyId", companyId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classNameId", classNameId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("classPK", classPK));
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil
.property("auditEventTable")));
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 static String getVisualName(String className, String classPK, long companyId, Locale locale)
throws SystemException {
OrderByComparator orderByComparator =
OrderByComparatorFactoryUtil.create(AuditEventImpl.TABLE_NAME, "createDate", false);
List<AuditEvent> event =
AuditEventLocalServiceUtil.findByC_ClassNameId_ClassPK(companyId, PortalUtil.getClassNameId(className),
classPK, 0, 1, orderByComparator);
return event.get(0).getVisualName(locale);
}
public static String getVisualName(String className, String classPK, long companyId, Locale locale)
throws SystemException {
OrderByComparator orderByComparator = OrderByComparatorFactoryUtil.create(AuditEventImpl.TABLE_NAME,
"createDate", false);
List<AuditEvent> event = AuditEventLocalServiceUtil.findByC_ClassNameId_ClassPK(companyId,
PortalUtil.getClassNameId(className), classPK, 0, 1, orderByComparator);
return event.get(0).getVisualName(locale);
}
}

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

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

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

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

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

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

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

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

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

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

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;
/**
* The extended model implementation for the FineLavori service. Represents a row in the
* &quot;portos_bo_FineLavori&quot; database table, with each column mapped to a property of this
* class.
* The extended model implementation for the FineLavori service. Represents a
* row in the &quot;portos_bo_FineLavori&quot; database table, with each column
* mapped to a property of this class.
*
* <p>
* Helper methods and all application logic should be put in this class. Whenever methods are added,
* rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
* Helper methods and all application logic should be put in this class.
* Whenever methods are added, rerun ServiceBuilder to copy their definitions
* into the {@link it.tref.liferay.portos.bo.model.FineLavori} interface.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
*/
public class FineLavoriImpl extends FineLavoriBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a fine lavori model instance
* should use the {@link it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() {}
public String getTitle(Locale locale) {
StringBuilder sb = new StringBuilder();
try {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId());
// sb.append("Progetto ");
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {
sb.append("Deposito ");
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
sb.append("Autorizzazione ");
}
sb.append("n. ");
if (Validator.isNotNull(getProtocollo())) {
sb.append(intPratica.getNumeroProgetto());
// TODO da decidere che data, per adesso si mette quella di creazione il numero protocollo
// sbagliato dovrebbe essere il primo
sb.append(" del ");
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
sb.append(" id ");
sb.append(intPratica.getIntPraticaId());
} else {
if (Validator.isNotNull(intPratica.getNumeroProgetto())) {
sb.append(intPratica.getNumeroProgetto());
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
}
sb.append(getFineLavoriId());
sb.append(" (Temporaneo) ");
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
sb.append(" id ");
sb.append(intPratica.getIntPraticaId());
}
} catch (PortalException e) {
_log.error(e, e);
} catch (SystemException e) {
_log.error(e, e);
}
return sb.toString();
}
public String getTitle() {
return getTitle(LocaleUtil.getSiteDefault());
}
public String getFullDescription() {
return getTitle();
}
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this class directly. All methods that expect a fine
* lavori model instance should use the {@link
* it.tref.liferay.portos.bo.model.FineLavori} interface instead.
*/
private static final Log _log = LogFactoryUtil.getLog(FineLavoriImpl.class);
public FineLavoriImpl() {
}
public String getTitle(Locale locale) {
StringBuilder sb = new StringBuilder();
try {
IntPratica intPratica = IntPraticaLocalServiceUtil.fetchIntPratica(getIntPraticaId());
// sb.append("Progetto ");
if (AzioniPraticheUtil.isDeposito(intPratica.getIntPraticaId())) {
sb.append("Deposito ");
} else if (AzioniPraticheUtil.isAutorizzazione(intPratica.getIntPraticaId())) {
sb.append("Autorizzazione ");
}
sb.append("n. ");
if (Validator.isNotNull(getProtocollo())) {
sb.append(intPratica.getNumeroProgetto());
// TODO da decidere che data, per adesso si mette quella di
// creazione il numero protocollo sbagliato dovrebbe essere il
// primo
sb.append(" del ");
sb.append(FastDateFormatFactoryUtil.getDate(locale).format(intPratica.getDtPratica()));
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
sb.append(" id ");
sb.append(intPratica.getIntPraticaId());
} else {
if (Validator.isNotNull(intPratica.getNumeroProgetto())) {
sb.append(intPratica.getNumeroProgetto());
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
}
sb.append(getFineLavoriId());
sb.append(" (Temporaneo) ");
sb.append(StringPool.SPACE + StringPool.DASH + StringPool.SPACE);
sb.append(" id ");
sb.append(intPratica.getIntPraticaId());
}
} catch (PortalException e) {
_log.error(e, e);
} catch (SystemException e) {
_log.error(e, e);
}
return sb.toString();
}
public String getTitle() {
return getTitle(LocaleUtil.getSiteDefault());
}
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
public void onAfterAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterAddAssociation(classPK, associationClassName, associationClassPK);
}
@ -66,11 +64,8 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
cp = ControlloPraticaLocalServiceUtil.getControlloPratica(model.getClassPK());
this.gestioneWFVarianti(cp, model);
} catch (PortalException | SystemException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// TODO Auto-generated method stub
super.onAfterCreate(model);
}
@ -154,45 +149,33 @@ public class KaleoInstanceTokenModelListener extends BaseModelListener<KaleoInst
@Override
public void onAfterRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onAfterRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeAddAssociation(Object classPK, String associationClassName, Object associationClassPK)
throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeAddAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeCreate(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeCreate(model);
}
@Override
public void onBeforeRemove(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemove(model);
}
@Override
public void onBeforeRemoveAssociation(Object classPK, String associationClassName,
Object associationClassPK) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeRemoveAssociation(classPK, associationClassName, associationClassPK);
}
@Override
public void onBeforeUpdate(KaleoInstanceToken model) throws ModelListenerException {
// TODO Auto-generated method stub
super.onBeforeUpdate(model);
}

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

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

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

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

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

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.
*
* <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService} interface.
* All custom service methods should be put in this class. Whenever methods are
* added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.bo.service.ComunicazioneLocalService}
* interface.
*
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Davide Barbagallo, 3F Consulting
@ -58,191 +60,156 @@ import com.liferay.portal.service.ServiceContext;
* @see it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil
*/
public class ComunicazioneLocalServiceImpl extends ComunicazioneLocalServiceBaseImpl {
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to access the comunicazione
* local service.
*/
public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda, ServiceContext serviceContext)
throws SystemException, PortalException {
Comunicazione comunicazione =
comunicazionePersistence.create(counterLocalService.increment(Comunicazione.class.getName()));
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
comunicazione.setCompanyId(serviceContext.getCompanyId());
comunicazione.setUserId(user.getUserId());
comunicazione.setUserName(user.getFullName());
comunicazione.setCreateDate(serviceContext.getCreateDate(now));
comunicazione.setModifiedDate(serviceContext.getModifiedDate(now));
comunicazione.setGroupId(serviceContext.getScopeGroupId());
comunicazione.setIntPraticaId(intPraticaId);
comunicazione.setDomanda(domanda);
comunicazione = comunicazionePersistence.update(comunicazione);
// Send notification mail for new Comunicazione Mediata
this.invioAddMailNotifica(comunicazione.getComunicazioneId(), serviceContext);
return comunicazione;
}
public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException,
PortalException {
Comunicazione comunicazione = comunicazionePersistence.fetchByPrimaryKey(comunicazioneId);
Date now = new Date();
comunicazione.setDtRisposta(now);
comunicazione.setRisposta(risposta);
comunicazione = comunicazionePersistence.update(comunicazione);
// resourceLocalService.updateModelResources(comunicazione, serviceContext);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId())
&& Validator.isNotNull(intPratica.getStatusByUserId())) {
this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(), now);
}
return comunicazione;
}
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 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));
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtRisposta"));
return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery);
}
// private void invioMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws
// PortalException,
// SystemException {
//
// Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
//
// IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
//
// User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
// List<Soggetto> titolari =
// soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(),
// titolaredigitaleUser.getScreenName());
// String eMail = StringPool.BLANK;
// String title = StringPool.BLANK;
// if (!titolari.isEmpty()) {
// Soggetto titolareDigitale = titolari.get(0);
// eMail = titolareDigitale.getEmail();
// title = titolareDigitale.getDescrizioneCompleta();
// }
//
// String[] to = {eMail};
// String[] cc = new String[0];
// String[] ccn = new String[0];
//
// String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni";
// String url =
// FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(),
// "/html/fascicolofe/view_fascicolo.jsp", queryString);
//
// JSONObject templateVariables = JSONFactoryUtil.createJSONObject();
// templateVariables.put("receiver", title);
// templateVariables.put("praticaNum", intPratica.getNumeroProgetto());
// templateVariables.put("link", url);
//
// MailManagerUtil.sendMailByTemplatName(Comunicazione.class.getName(), comunicazioneId,
// "NUOVA-COMUNICAZIONE", to,
// cc, ccn, templateVariables, null, serviceContext);
// }
private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext) throws PortalException,
SystemException {
Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
List<Soggetto> titolari =
soggettoLocalService.getValidByIntPratica_CodiceFiscale(intPratica.getIntPraticaId(),
titolaredigitaleUser.getScreenName());
String eMail = StringPool.BLANK;
String receiver = StringPool.BLANK;
if (!titolari.isEmpty()) {
Soggetto titolareDigitale = titolari.get(0);
eMail = titolareDigitale.getEmail();
receiver = titolareDigitale.getDescrizioneCompleta();
}
String[] to = {eMail};
String[] cc = new String[0];
String[] ccn = new String[0];
String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni";
String url =
FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(), intPratica.getIntPraticaId(),
"/html/fascicolofe/view_fascicolo.jsp", queryString);
JSONObject templateVariable = JSONFactoryUtil.createJSONObject();
templateVariable.put("receiver", receiver);
templateVariable.put("link", url);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId, Comunicazione.class.getName(), to,
cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE", templateVariable, null, serviceContext);
}
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);
}
/*
* NOTE FOR DEVELOPERS:
*
* Never reference this interface directly. Always use {@link
* it.tref.liferay.portos.bo.service.ComunicazioneLocalServiceUtil} to
* access the comunicazione local service.
*/
public Comunicazione addComunicazione(long userId, long intPraticaId, String domanda,
ServiceContext serviceContext) throws SystemException, PortalException {
Comunicazione comunicazione = comunicazionePersistence.create(counterLocalService
.increment(Comunicazione.class.getName()));
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
comunicazione.setCompanyId(serviceContext.getCompanyId());
comunicazione.setUserId(user.getUserId());
comunicazione.setUserName(user.getFullName());
comunicazione.setCreateDate(serviceContext.getCreateDate(now));
comunicazione.setModifiedDate(serviceContext.getModifiedDate(now));
comunicazione.setGroupId(serviceContext.getScopeGroupId());
comunicazione.setIntPraticaId(intPraticaId);
comunicazione.setDomanda(domanda);
comunicazione = comunicazionePersistence.update(comunicazione);
// Send notification mail for new Comunicazione Mediata
this.invioAddMailNotifica(comunicazione.getComunicazioneId(), serviceContext);
return comunicazione;
}
public Comunicazione updateComunicazione(long comunicazioneId, String risposta) throws SystemException,
PortalException {
Comunicazione comunicazione = comunicazionePersistence.fetchByPrimaryKey(comunicazioneId);
Date now = new Date();
comunicazione.setDtRisposta(now);
comunicazione.setRisposta(risposta);
comunicazione = comunicazionePersistence.update(comunicazione);
// resourceLocalService.updateModelResources(comunicazione,
// serviceContext);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
if (WorkflowUtil.isWorkflowDisattivabile(intPratica.getIntPraticaId())
&& Validator.isNotNull(intPratica.getStatusByUserId())) {
this.invioUpdateMailNotifica(comunicazione.getComunicazioneId(), intPratica.getStatusByUserId(),
now);
}
return comunicazione;
}
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 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));
dynamicQuery.add(RestrictionsFactoryUtil.isNull("dtRisposta"));
return (int) comunicazionePersistence.countWithDynamicQuery(dynamicQuery);
}
private void invioAddMailNotifica(long comunicazioneId, ServiceContext serviceContext)
throws PortalException, SystemException {
Comunicazione comunicazione = comunicazioneLocalService.getComunicazione(comunicazioneId);
IntPratica intPratica = intPraticaLocalService.getIntPratica(comunicazione.getIntPraticaId());
User titolaredigitaleUser = userLocalService.getUser(intPratica.getUserId());
List<Soggetto> titolari = soggettoLocalService.getValidByIntPratica_CodiceFiscale(
intPratica.getIntPraticaId(), titolaredigitaleUser.getScreenName());
String eMail = StringPool.BLANK;
String receiver = StringPool.BLANK;
if (!titolari.isEmpty()) {
Soggetto titolareDigitale = titolari.get(0);
eMail = titolareDigitale.getEmail();
receiver = titolareDigitale.getDescrizioneCompleta();
}
String[] to = { eMail };
String[] cc = new String[0];
String[] ccn = new String[0];
String queryString = "_" + PortletKeys.FASCICOLOFE + "_toolbarItem=view-comunicazioni";
String url = FascicoloURLUtil.getFascicoloFEViewURL(intPratica.getCompanyId(),
intPratica.getIntPraticaId(), "/html/fascicolofe/view_fascicolo.jsp", queryString);
JSONObject templateVariable = JSONFactoryUtil.createJSONObject();
templateVariable.put("receiver", receiver);
templateVariable.put("link", url);
MailUtil.invioMailNotifica(comunicazione.getIntPraticaId(), 0l, comunicazioneId,
Comunicazione.class.getName(), to, cc, ccn, "INVIO-RICHIESTA-ASSEVERAZIONE",
templateVariable, null, serviceContext);
}
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;
}
/*
* TODO Controllare bene il processo. Ci deve essere un modo per capire se
* sono pratiche da importare o nuove. A mio parere (scuti) dovrebbe essere:
* if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE
* .equalsIgnoreCase(dettPratica.getTipoIntegrazione())) { return
* "portos1_integrazioni"; } else { return "portos1_esito"; }
*/
public String getReturnValueScriptIniziale(long controlloPraticaId) throws PortalException,
SystemException {
@ -652,7 +645,6 @@ public class ControlloPraticaLocalServiceImpl extends ControlloPraticaLocalServi
.getDettPraticaId());
if (TipoIntegrazioneUtil.RICHIESTA_INTEGRAZIONE.equalsIgnoreCase(dettPratica.getTipoIntegrazione())) {
// return "portos1_esito";
return "portos1_integrazioni";
} else {
return "assegnazione";

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 {
private static Log _log = LogFactoryUtil.getLog(ComunicazioneMediata.class);
public void addComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
String domanda = ParamUtil.getString(actionRequest, "domanda");
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica)) {
ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(), intPratica.getIntPraticaId(), domanda,
serviceContext);
}
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
}
public void updateComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) throws PortalException {
long comunicazioneId = ParamUtil.getLong(actionRequest, "comunicazioneId");
String risposta = ParamUtil.getString(actionRequest, "risposta");
try {
ComunicazioneServiceUtil.updateComunicazione(comunicazioneId, risposta);
} catch (SystemException e) {
_log.error(e, e);
}
}
private static Log _log = LogFactoryUtil.getLog(ComunicazioneMediata.class);
public void addComunicazione(ActionRequest actionRequest, ActionResponse actionResponse) {
long intPraticaId = ParamUtil.getLong(actionRequest, "intPraticaId");
String domanda = ParamUtil.getString(actionRequest, "domanda");
try {
ServiceContext serviceContext = ServiceContextFactory.getInstance(actionRequest);
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(intPraticaId);
if (Validator.isNotNull(intPratica)) {
ComunicazioneServiceUtil.addComunicazione(serviceContext.getUserId(),
intPratica.getIntPraticaId(), domanda, serviceContext);
}
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
}
public void updateComunicazione(ActionRequest actionRequest, ActionResponse actionResponse)
throws PortalException {
long comunicazioneId = ParamUtil.getLong(actionRequest, "comunicazioneId");
String risposta = ParamUtil.getString(actionRequest, "risposta");
try {
ComunicazioneServiceUtil.updateComunicazione(comunicazioneId, risposta);
} 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"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

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;
import com.liferay.portal.kernel.events.ActionException;
import com.liferay.portal.kernel.events.SimpleAction;
import com.liferay.portal.kernel.exception.PortalException;
@ -26,97 +25,100 @@ import com.liferay.portlet.expando.service.ExpandoTableLocalServiceUtil;
public class StartUpAction extends SimpleAction {
private final static Log _log = LogFactoryUtil.getLog(StartUpAction.class);
private final static Log _log = LogFactoryUtil.getLog(StartUpAction.class);
@Override
public void run(String[] companyIds) throws ActionException {
@Override
public void run(String[] companyIds) throws ActionException {
for (String id : companyIds) {
try {
long companyId = GetterUtil.getLong(id);
for (String id : companyIds) {
try {
long companyId = GetterUtil.getLong(id);
String[] defaultActions = {ActionKeys.VIEW, ActionKeys.UPDATE};
String[] guestActions = {ActionKeys.VIEW};
String[] defaultActions = { ActionKeys.VIEW, ActionKeys.UPDATE };
String[] guestActions = { ActionKeys.VIEW };
// Organization custom fields
addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId",
ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions);
} catch (Exception e) {
_log.error("Errore nella procedura automatizzata di configurazione", e);
}
}
}
// Organization custom fields
addExpandoColumnIfNotExists(companyId, Group.class.getName(), "cookiesJournalarticleId",
ExpandoColumnConstants.STRING, true, false, defaultActions, guestActions);
} catch (Exception e) {
_log.error("Errore nella procedura automatizzata di configurazione", e);
}
}
}
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name, int type,
boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions) throws SystemException {
private ExpandoColumn addExpandoColumnIfNotExists(long companyId, String className, String name,
int type, boolean indexed, boolean hidden, String[] defaultActions, String[] guestActions)
throws SystemException {
long classNameId = PortalUtil.getClassNameId(className);
long classNameId = PortalUtil.getClassNameId(className);
ExpandoTable expandoTable = null;
try {
expandoTable =
ExpandoTableLocalServiceUtil.getTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e) {
try {
expandoTable =
ExpandoTableLocalServiceUtil.addTable(companyId, classNameId, ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) {
}
}
ExpandoTable expandoTable = null;
try {
expandoTable = ExpandoTableLocalServiceUtil.getTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e) {
try {
expandoTable = ExpandoTableLocalServiceUtil.addTable(companyId, classNameId,
ExpandoTableConstants.DEFAULT_TABLE_NAME);
} catch (PortalException e1) {
}
}
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil.getColumn(expandoTable.getTableId(), name);
ExpandoColumn expandoColumn = ExpandoColumnLocalServiceUtil
.getColumn(expandoTable.getTableId(), name);
if (expandoColumn == null) {
if (expandoColumn == null) {
try {
expandoColumn = ExpandoColumnLocalServiceUtil.addColumn(expandoTable.getTableId(), name, type);
try {
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,
String.valueOf(ExpandoColumnConstants.INDEX_TYPE_TEXT));
typeSettingsProperties.put(ExpandoColumnConstants.INDEX_TYPE,
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 rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
Role roleGuest = RoleLocalServiceUtil.getRole(companyId, RoleConstants.GUEST);
Role rolePowerUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.POWER_USER);
Role roleUser = RoleLocalServiceUtil.getRole(companyId, RoleConstants.USER);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(),
guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(),
defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId, ExpandoColumn.class.getName(),
ResourceConstants.SCOPE_INDIVIDUAL, String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(),
defaultActions);
} catch (PortalException e) {
}
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), roleGuest.getRoleId(), guestActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), rolePowerUser.getRoleId(), defaultActions);
ResourcePermissionLocalServiceUtil.setResourcePermissions(companyId,
ExpandoColumn.class.getName(), ResourceConstants.SCOPE_INDIVIDUAL,
String.valueOf(expandoColumn.getColumnId()), roleUser.getRoleId(), defaultActions);
} catch (PortalException e) {
}
return expandoColumn;
}
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"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
@ -18,5 +18,6 @@
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=portos-deploy-alert-portlet&amp;ivyXmlPath=ivy.xml&amp;confs=*"/>
<classpathentry kind="output" path="docroot/WEB-INF/classes"/>
</classpath>

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

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

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 {
private final static Log _log = LogFactoryUtil.getLog(DeployAction.class);
@Override
public void run(final String[] ids) throws ActionException {
/*
* ServiceContext serviceContext = DeployAlertUtil.getServiceContext(); try {
* PermissionThreadLocal
* .setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil
* .getUser(serviceContext.getUserId()))); } catch (Exception e) { _log.error(e, e); }
* DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext);
* DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext);
*/
MessageBusUtil.registerMessageListener(DestinationNames.HOT_DEPLOY, new MessageListener() {
@Override
public void receive(Message message) throws MessageListenerException {
String evento = message.getString("command");
String nomePlugin = message.getString("servletContextName");
if (evento.equals("undeploy") && nomePlugin.equals("portos-deploy-alert-portlet")) {
try {
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
MessageBusUtil.unregisterMessageListener(DestinationNames.HOT_DEPLOY, this);
} else if (evento.equals("deploy") || evento.equals("undeploy")) {
try {
List<NotificationMail> notifications;
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
notifications =
NotificationMailLocalServiceUtil.findNotifications(PortalUtil.getDefaultCompanyId(), nomePlugin);
for (int i = 0; i < notifications.size(); i++) {
String templateName = notifications.get(i).getNomeTemplate();
if (templateName.equals(MailConstants.DEFAULT_TEMPLATE)) {
if (evento.equals("deploy")) {
templateName = MailConstants.DEFAULT_DEPLOY_TEMPLATE;
} else {
templateName = MailConstants.DEFAULT_UNDEPLOY_TEMPLATE;
}
}
JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento);
ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
MailManagerUtil.sendMailByTemplateName(Company.class.toString(), serviceContext.getCompanyId(),
templateName, parametri, serviceContext);
}
} catch (Exception e) {
_log.error(e, e);
}
}
}
});
}
private final static Log _log = LogFactoryUtil.getLog(DeployAction.class);
@Override
public void run(final String[] ids) throws ActionException {
/*
* ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
* try { PermissionThreadLocal
* .setPermissionChecker(PermissionCheckerFactoryUtil
* .create(UserLocalServiceUtil .getUser(serviceContext.getUserId())));
* } catch (Exception e) { _log.error(e, e); }
* DeployAlertUtil.addDefaultDeployMailTemplate(serviceContext);
* DeployAlertUtil.addDefaultUndeployMailTemplate(serviceContext);
*/
MessageBusUtil.registerMessageListener(DestinationNames.HOT_DEPLOY, new MessageListener() {
@Override
public void receive(Message message) throws MessageListenerException {
String evento = message.getString("command");
String nomePlugin = message.getString("servletContextName");
if (evento.equals("undeploy") && nomePlugin.equals("portos-deploy-alert-portlet")) {
try {
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
} catch (PortalException | SystemException e) {
_log.error(e, e);
}
MessageBusUtil.unregisterMessageListener(DestinationNames.HOT_DEPLOY, this);
} else if (evento.equals("deploy") || evento.equals("undeploy")) {
try {
List<NotificationMail> notifications;
NotificationLogLocalServiceUtil.addNotification(nomePlugin, evento);
notifications = NotificationMailLocalServiceUtil.findNotifications(
PortalUtil.getDefaultCompanyId(), nomePlugin);
for (int i = 0; i < notifications.size(); i++) {
String templateName = notifications.get(i).getNomeTemplate();
if (templateName.equals(MailConstants.DEFAULT_TEMPLATE)) {
if (evento.equals("deploy")) {
templateName = MailConstants.DEFAULT_DEPLOY_TEMPLATE;
} else {
templateName = MailConstants.DEFAULT_UNDEPLOY_TEMPLATE;
}
}
JSONObject parametri = DeployAlertUtil.getParametri(nomePlugin, evento);
ServiceContext serviceContext = DeployAlertUtil.getServiceContext();
MailManagerUtil.sendMailByTemplateName(Company.class.toString(),
serviceContext.getCompanyId(), templateName, parametri, serviceContext);
}
} 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 boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet)
throws Exception {
public boolean hasAccessPermission(PermissionChecker permissionChecker, Group group, Portlet portlet)
throws Exception {
long companyId = PortalUtil.getDefaultCompanyId();
long companyId = PortalUtil.getDefaultCompanyId();
if (companyId == permissionChecker.getCompanyId()) {
return true;
}
if (companyId == permissionChecker.getCompanyId()) {
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.
* <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationLogLocalService} interface.
* All custom service methods should be put in this class. Whenever methods are
* added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationLogLocalService}
* interface.
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Matteo
@ -42,33 +44,34 @@ import java.util.Date;
*/
public class NotificationLogLocalServiceImpl extends NotificationLogLocalServiceBaseImpl {
public NotificationLog addNotification(String nomePlugin, String tipo) throws SystemException, PortalException {
public NotificationLog addNotification(String nomePlugin, String tipo) throws SystemException,
PortalException {
Date now = new Date();
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.setNomePlugin(nomePlugin);
notification.setData(now);
notificationLogPersistence.update(notification);
notification.setTipo(tipo);
notification.setNomePlugin(nomePlugin);
notification.setData(now);
notificationLogPersistence.update(notification);
return notification;
}
return notification;
}
private void validate(String nomePlugin, String tipo) throws NotificationTipoException,
NotificationNomePluginException {
private void validate(String nomePlugin, String tipo) throws NotificationTipoException,
NotificationNomePluginException {
if (Validator.isNull(nomePlugin)) {
throw new NotificationNomePluginException();
}
if (Validator.isNull(tipo)) {
throw new NotificationTipoException();
}
if (Validator.isNull(nomePlugin)) {
throw new NotificationNomePluginException();
}
if (Validator.isNull(tipo)) {
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.
* <p>
* All custom service methods should be put in this class. Whenever methods are added, rerun
* ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationMailLocalService} interface.
* All custom service methods should be put in this class. Whenever methods are
* added, rerun ServiceBuilder to copy their definitions into the
* {@link it.tref.liferay.portos.deployalert.service.NotificationMailLocalService}
* interface.
* <p>
* This is a local service. Methods of this service will not have security checks based on the
* propagated JAAS credentials because this service can only be accessed from within the same VM.
* This is a local service. Methods of this service will not have security
* checks based on the propagated JAAS credentials because this service can only
* be accessed from within the same VM.
* </p>
*
* @author Matteo
@ -51,101 +53,104 @@ import java.util.List;
*/
public class NotificationMailLocalServiceImpl extends NotificationMailLocalServiceBaseImpl {
public NotificationMail addNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext)
throws PortalException, SystemException {
public NotificationMail addNotification(String nomePlugin, String nomeTemplate,
ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(serviceContext.getUserId());
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.setCompanyId(user.getCompanyId());
notification.setUserName(user.getFullName());
notification.setCreateDate(serviceContext.getCreateDate(now));
notification.setModifiedDate(serviceContext.getModifiedDate(now));
notification.setExpandoBridgeAttributes(serviceContext);
notification.setNomePlugin(nomePlugin);
notification.setNomeTemplate(nomeTemplate);
notification.setUserId(user.getUserId());
notification.setCompanyId(user.getCompanyId());
notification.setUserName(user.getFullName());
notification.setCreateDate(serviceContext.getCreateDate(now));
notification.setModifiedDate(serviceContext.getModifiedDate(now));
notification.setExpandoBridgeAttributes(serviceContext);
notification.setNomePlugin(nomePlugin);
notification.setNomeTemplate(nomeTemplate);
notificationMailPersistence.update(notification);
notificationMailPersistence.update(notification);
return notification;
}
return notification;
}
private void validate(String nomePlugin, String nomeTemplate) throws NotificationNomePluginException,
NotificationNomeTemplateException {
private void validate(String nomePlugin, String nomeTemplate) throws NotificationNomePluginException,
NotificationNomeTemplateException {
if (Validator.isNull(nomePlugin)) {
throw new NotificationNomePluginException();
}
if (Validator.isNull(nomeTemplate)) {
throw new NotificationNomeTemplateException();
}
}
if (Validator.isNull(nomePlugin)) {
throw new NotificationNomePluginException();
}
if (Validator.isNull(nomeTemplate)) {
throw new NotificationNomeTemplateException();
}
}
public NotificationMail updateNotification(String nomePlugin, String nomeTemplate, ServiceContext serviceContext,
long notificationId) throws SystemException, PortalException {
public NotificationMail updateNotification(String nomePlugin, String nomeTemplate,
ServiceContext serviceContext, long notificationId) throws SystemException, PortalException {
Date now = new Date();
Date now = new Date();
NotificationMail notification = getNotificationMail(notificationId);
NotificationMail notification = getNotificationMail(notificationId);
validate(nomePlugin, nomeTemplate);
validate(nomePlugin, nomeTemplate);
notification.setModifiedDate(serviceContext.getModifiedDate(now));
notification.setNomePlugin(nomePlugin);
notification.setNomeTemplate(nomeTemplate);
notification.setExpandoBridgeAttributes(serviceContext);
notification.setModifiedDate(serviceContext.getModifiedDate(now));
notification.setNomePlugin(nomePlugin);
notification.setNomeTemplate(nomeTemplate);
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);
DynamicQuery query = notificationMailLocalService.dynamicQuery();
query.addOrder(OrderFactoryUtil.asc("nomePlugin"));
List<NotificationMail> notifications = null;
try {
notifications = NotificationMailLocalServiceUtil.dynamicQuery(query);
} catch (SystemException e) {
e.printStackTrace();
}
return notifications;
}
// return notificationMailPersistence.findBycompanyId(companyId, start,
// end);
DynamicQuery query = notificationMailLocalService.dynamicQuery();
query.addOrder(OrderFactoryUtil.asc("nomePlugin"));
List<NotificationMail> notifications = null;
try {
notifications = NotificationMailLocalServiceUtil.dynamicQuery(query);
} catch (SystemException e) {
e.printStackTrace();
}
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)) {
Disjunction or = RestrictionsFactoryUtil.disjunction();
or.add(RestrictionsFactoryUtil.isNull("nomePlugin"));
or.add(RestrictionsFactoryUtil.eq("nomePlugin", StringPool.BLANK));
if (Validator.isNull(servletContextName)) {
Disjunction or = RestrictionsFactoryUtil.disjunction();
or.add(RestrictionsFactoryUtil.isNull("nomePlugin"));
or.add(RestrictionsFactoryUtil.eq("nomePlugin", StringPool.BLANK));
dynamicQuery.add(or);
} else {
dynamicQuery.add(RestrictionsFactoryUtil.eq("nomePlugin", servletContextName));
}
dynamicQuery.add(or);
} else {
dynamicQuery.add(RestrictionsFactoryUtil.eq("nomePlugin", servletContextName));
}
return notificationMailPersistence.findWithDynamicQuery(dynamicQuery);
}
return notificationMailPersistence.findWithDynamicQuery(dynamicQuery);
}
}

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

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

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 {
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();
Company company;
serviceContext.setCompanyId(companyId);
ServiceContext serviceContext = new ServiceContext();
Company company;
serviceContext.setCompanyId(companyId);
try {
company = CompanyLocalServiceUtil.getCompany(companyId);
Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), RoleConstants.ADMINISTRATOR);
long userAdminId = UserLocalServiceUtil.getRoleUserIds(role.getRoleId())[0];
try {
company = CompanyLocalServiceUtil.getCompany(companyId);
Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), RoleConstants.ADMINISTRATOR);
long userAdminId = UserLocalServiceUtil.getRoleUserIds(role.getRoleId())[0];
serviceContext.setUserId(userAdminId);
serviceContext.setScopeGroupId(company.getGroupId());
serviceContext.setUserId(userAdminId);
serviceContext.setScopeGroupId(company.getGroupId());
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil.create(UserLocalServiceUtil.getUser(userAdminId)));
} catch (Exception e) {
_log.error(e, e);
}
PermissionThreadLocal.setPermissionChecker(PermissionCheckerFactoryUtil
.create(UserLocalServiceUtil.getUser(userAdminId)));
} 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;
String subject = "Deploy Plugin";
String body = "E' stato effettuato il $evento del plugin $nomePlugin in data $data.";
String[] to = {"matteoguggia97@gmail.com"};
boolean add = false;
String subject = "Deploy Plugin";
String body = "E' stato effettuato il $evento del plugin $nomePlugin in data $data.";
String[] to = { "matteoguggia97@gmail.com" };
try {
add =
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE, "test@3fconsulting.it", to, null,
null, subject, body, false, serviceContext);
} catch (SystemException e) {
_log.error(e, e);
}
PermissionThreadLocal.setPermissionChecker(null);
try {
add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_DEPLOY_TEMPLATE,
"test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
} catch (SystemException e) {
_log.error(e, e);
}
PermissionThreadLocal.setPermissionChecker(null);
return add;
}
return add;
}
public static final boolean addDefaultUndeployMailTemplate(ServiceContext serviceContext) {
public static final boolean addDefaultUndeployMailTemplate(ServiceContext serviceContext) {
boolean add = false;
String subject = "Undeploy Plugin";
String body = "E' stato effettuato l'$evento del plugin $nomePlugin in data $data.";
String[] to = {"matteoguggia97@gmail.com"};
boolean add = false;
String subject = "Undeploy Plugin";
String body = "E' stato effettuato l'$evento del plugin $nomePlugin in data $data.";
String[] to = { "matteoguggia97@gmail.com" };
try {
add =
MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE, "test@3fconsulting.it", to, null,
null, subject, body, false, serviceContext);
} catch (SystemException e) {
_log.error(e, e);
}
PermissionThreadLocal.setPermissionChecker(null);
try {
add = MailManagerUtil.addMailTemplate(MailConstants.DEFAULT_UNDEPLOY_TEMPLATE,
"test@3fconsulting.it", to, null, null, subject, body, false, serviceContext);
} catch (SystemException e) {
_log.error(e, e);
}
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("evento", evento);
parametri.put("nomePlugin", nomePlugin);
parametri.put("data", data);
parametri.put("evento", evento);
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.number=8
build.date=1569596730980
build.number=9
build.date=1606299034524
build.auto.upgrade=true
##

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File binario non mostrato.

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 {
private boolean success;
private List<String> cf;
public boolean isSuccess() {
return success;
}
public List<String> getCf() {
return cf;
}
private boolean success;
private List<String> 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"?>
<classpath>
<classpathentry kind="src" path="docroot/WEB-INF/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_80">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File binario non mostrato.

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

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

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

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

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

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

File binario non mostrato.

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

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

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

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

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

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

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

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

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

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

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

File binario non mostrato.

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

File binario non mostrato.

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

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

File binario non mostrato.

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

Caricamento…
Annulla
Salva