diff --git a/liferay-plugins-sdk-6.2/.idea/.gitignore b/liferay-plugins-sdk-6.2/.idea/.gitignore
new file mode 100644
index 00000000..0a8642fa
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Zeppelin ignored files
+/ZeppelinRemoteNotebooks/
diff --git a/liferay-plugins-sdk-6.2/.idea/ant.xml b/liferay-plugins-sdk-6.2/.idea/ant.xml
new file mode 100644
index 00000000..a2a47698
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/.idea/ant.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/.idea/jpa-buddy.xml b/liferay-plugins-sdk-6.2/.idea/jpa-buddy.xml
new file mode 100644
index 00000000..966d5f56
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/.idea/jpa-buddy.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/.idea/misc.xml b/liferay-plugins-sdk-6.2/.idea/misc.xml
new file mode 100644
index 00000000..d33591e1
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/.idea/vcs.xml b/liferay-plugins-sdk-6.2/.idea/vcs.xml
new file mode 100644
index 00000000..6c0b8635
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/build.ebusu.properties b/liferay-plugins-sdk-6.2/build.ebusu.properties
new file mode 100644
index 00000000..1308417d
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/build.ebusu.properties
@@ -0,0 +1,10 @@
+# Managed by Liferay IDE (remove this comment to prevent future updates)
+
+#Managed by Liferay IDE (remove this comment to prevent future updates)
+#Tue Feb 07 14:49:02 CET 2023
+app.server.tomcat.lib.global.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\lib\\ext
+app.server.tomcat.deploy.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps
+app.server.parent.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5
+app.server.tomcat.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62
+app.server.type = tomcat
+app.server.tomcat.portal.dir = C:\\progetti\\paesaggistica\\liferay-portal-6.2-ce-ga6-patched6.2.5\\tomcat-7.0.62\\webapps\\ROOT
diff --git a/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5
index 42e42084..ccd674b0 100644
--- a/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/aQute.bnd/ivy.xml.MD5
@@ -1 +1 @@
-45b38289274e4397c600a212c5477afa
+b2996cd58c16b53d0e5cba6f59304ace
diff --git a/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5
index 0bfa3aa2..c2efd29f 100644
--- a/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/com.liferay.ant.bnd/ivy.xml.MD5
@@ -1 +1 @@
-9e586203944d7fe5baccd02ed7bf20c1
+edfd9cc2944faf63dd7d39e25283a4b6
diff --git a/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5
index d5ec36d5..158f1a5d 100644
--- a/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/com.liferay.jasper.jspc/ivy.xml.MD5
@@ -1 +1 @@
-cf39082434c04fdd3a9563acce7cb551
+a7d8aaa34b7d1028a4d449b5ab8f767e
diff --git a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5
index e312ada4..3cbade7b 100644
--- a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/ivy.xml.MD5
@@ -1 +1 @@
-6ad0549f4c64b52b40d871393d72f9aa
+4b40da73b53b5860b9adbb52cde18473
diff --git a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar
index 00556b11..90035a4f 100644
Binary files a/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar and b/liferay-plugins-sdk-6.2/dependencies/net.sourceforge.pmd/lib/commons-io.jar differ
diff --git a/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5
index eac6c7a9..348d2b3f 100644
--- a/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/org.apache.maven.maven.ant.tasks/ivy.xml.MD5
@@ -1 +1 @@
-2aae42c5c43b993944b8c0fe9e31d5fb
+0b9e4199159f29548166ac11ab8d12c0
diff --git a/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5
index 3c011ccf..c928e5f7 100644
--- a/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/org.codehaus.groovy/ivy.xml.MD5
@@ -1 +1 @@
-e1a7d560dfc36faf61c7d7da67bb03df
+8f22881d5bfb74c587681be94ad54598
diff --git a/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5
index 5dff026e..81034da7 100644
--- a/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/org.freemarker/ivy.xml.MD5
@@ -1 +1 @@
-f6d028f89713fdbf3004b38da2b16dcf
+4102c750f16136e66085045251a34292
diff --git a/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5
index 6d913802..7ac73185 100644
--- a/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/dependencies/org.sonar.ant/ivy.xml.MD5
@@ -1 +1 @@
-3325db6f628a33488c6c832368b134e4
+f6d022d60b1ed1cc45a21c61c21c8f22
diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath
index e0ca4766..cc87ab46 100644
--- a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath
+++ b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.classpath
@@ -1,7 +1,7 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f42de363
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
index 92ef9c01..81e6d2f5 100644
--- a/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/liferay-plugins-sdk-6.2/hooks/hms-taglib-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,8 +1,8 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath
index 991a105e..cc87ab46 100644
--- a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath
+++ b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.classpath
@@ -1,7 +1,7 @@
-
+
@@ -18,6 +18,5 @@
-
diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.project b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.project
index c3a8b7b2..3b0bb4f1 100644
--- a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.project
+++ b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.project
@@ -32,6 +32,5 @@
org.eclipse.wst.common.project.facet.core.natureorg.eclipse.jdt.core.javanatureorg.eclipse.wst.jsdt.core.jsNature
- org.apache.ivyde.eclipse.ivynature
diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f42de363
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
index 92ef9c01..81e6d2f5 100644
--- a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,8 +1,8 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/ivy.xml.MD5
index 65d421b8..4b259b98 100644
--- a/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/hooks/portos-p7m-preview-hook/ivy.xml.MD5
@@ -1 +1 @@
-2c267788e15963b22e4e720e12f5611c
+db650d63ad964c1897f8af97aac0e727
diff --git a/liferay-plugins-sdk-6.2/ivy-settings.xml b/liferay-plugins-sdk-6.2/ivy-settings.xml
index 30a41fe2..db0e651c 100644
--- a/liferay-plugins-sdk-6.2/ivy-settings.xml
+++ b/liferay-plugins-sdk-6.2/ivy-settings.xml
@@ -1,7 +1,7 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/ivy.xml.MD5
index feae7b2a..d88ae605 100644
--- a/liferay-plugins-sdk-6.2/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/ivy.xml.MD5
@@ -1 +1 @@
-ae2292c03b059802eec34967b7e85b8a
+8e943594b3e1f97e457b967864997dc5
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
index 6de1aafe..df4ad34a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.classpath
@@ -1,8 +1,7 @@
-
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f42de363
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component
index f8d0fffc..89175b1f 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.component
@@ -2,10 +2,6 @@
-
-
- uses
-
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
index fe24cce9..62fdb9a9 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,8 +1,8 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java
index afe4e541..a6795a84 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/accesso/atti/service/persistence/RichiestaAccessoAttiPersistenceImpl.java
@@ -43,7 +43,6 @@ import it.tref.liferay.portos.accesso.atti.NoSuchRichiestaAccessoAttiException;
import it.tref.liferay.portos.accesso.atti.model.RichiestaAccessoAtti;
import it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiImpl;
import it.tref.liferay.portos.accesso.atti.model.impl.RichiestaAccessoAttiModelImpl;
-import it.tref.liferay.portos.accesso.atti.service.persistence.RichiestaAccessoAttiPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties
index c4168251..4b93f1c2 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties
@@ -13,8 +13,8 @@
##
build.namespace=portos_atti
- build.number=30
- build.date=1632921863898
+ build.number=31
+ build.date=1675846169523
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml.MD5
index 81f1995e..d86c8a39 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/ivy.xml.MD5
@@ -1 +1 @@
-987c468ab803b131a7ff0c2ece8911b3
+c730f302e3c8f650a807fe624894d9ea
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath
index 9975372f..df4ad34a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.classpath
@@ -1,7 +1,7 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f42de363
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
index fe24cce9..62fdb9a9 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,8 +1,8 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/commons-logging.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/commons-logging.jar
deleted file mode 100644
index 8758a96b..00000000
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/commons-logging.jar and /dev/null differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/jstl-api.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/jstl-api.jar
deleted file mode 100644
index 80a5737f..00000000
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/jstl-api.jar and /dev/null differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/jstl-impl.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/jstl-impl.jar
deleted file mode 100644
index e5a9342f..00000000
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/jstl-impl.jar and /dev/null differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/log4j.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/log4j.jar
deleted file mode 100644
index 068867eb..00000000
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/log4j.jar and /dev/null differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/util-bridges.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/util-bridges.jar
deleted file mode 100644
index 7d7435fe..00000000
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/util-bridges.jar and /dev/null differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/util-taglib.jar b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/util-taglib.jar
deleted file mode 100644
index fbba5f0a..00000000
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/lib/util-taglib.jar and /dev/null differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml
index a7be6d90..d7167b8e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/liferay-hook.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml
index 26746469..3b654a43 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service.xml
@@ -1,4 +1,4 @@
-
+
Marco
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/audit/NoSuchAuditEventException.java b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/audit/NoSuchAuditEventException.java
new file mode 100644
index 00000000..0b1a088b
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/audit/NoSuchAuditEventException.java
@@ -0,0 +1,40 @@
+/**
+ * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ */
+
+package it.tref.liferay.portos.audit;
+
+import com.liferay.portal.NoSuchModelException;
+
+/**
+ * @author Marco
+ */
+public class NoSuchAuditEventException extends NoSuchModelException {
+
+ public NoSuchAuditEventException() {
+ super();
+ }
+
+ public NoSuchAuditEventException(String msg) {
+ super(msg);
+ }
+
+ public NoSuchAuditEventException(String msg, Throwable cause) {
+ super(msg, cause);
+ }
+
+ public NoSuchAuditEventException(Throwable cause) {
+ super(cause);
+ }
+
+}
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java
index 8436cb5b..14a029f4 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/audit/service/persistence/AuditEventPersistenceImpl.java
@@ -43,7 +43,6 @@ import it.tref.liferay.portos.audit.NoSuchAuditEventException;
import it.tref.liferay.portos.audit.model.AuditEvent;
import it.tref.liferay.portos.audit.model.impl.AuditEventImpl;
import it.tref.liferay.portos.audit.model.impl.AuditEventModelImpl;
-import it.tref.liferay.portos.audit.service.persistence.AuditEventPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties
index 82b8c24f..1c71764f 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/WEB-INF/src/service.properties
+++ b/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=17
- build.date=1606300425089
+ build.number=19
+ build.date=1675846283103
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp
index 3b091aab..851b5a30 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/details_column.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.TextFormatter"%>
<%@page import="com.liferay.portal.kernel.json.JSONArray"%>
<%@page import="it.tref.liferay.portos.audit.model.AuditEvent"%>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp
index 72b2cb90..f5287023 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/common/relations_column.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.liferay.portal.kernel.util.TextFormatter"%>
<%@page import="com.liferay.portal.kernel.json.JSONArray"%>
<%@page import="it.tref.liferay.portos.audit.model.AuditEvent"%>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp
index 94e694cc..ffc929c3 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/detail.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp
index 3c18f252..3d6b7058 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp
index ff21f2e4..f77b3e2e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/detail/view_list.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.liferay.portos.audit.shared.permission.HistoryPermission"%>
<%@page import="com.liferay.portal.security.permission.ActionKeys"%>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp
index 71379d79..f6d6d4c6 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/init.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp
index 646951b9..cb89ae81 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/edit.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp
index ff47f72b..8447c350 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-audit-portlet/docroot/html/storicizzazione/view.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/html/init.jsp" %>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath
index 8a8be4f4..eb2a23ce 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.classpath
@@ -1,23 +1,22 @@
-
-
-
-
+
+
-
+
-
-
+
+
+
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/.gitignore
new file mode 100644
index 00000000..0a8642fa
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/.gitignore
@@ -0,0 +1,10 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
+# Zeppelin ignored files
+/ZeppelinRemoteNotebooks/
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/jpa-buddy.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/jpa-buddy.xml
new file mode 100644
index 00000000..966d5f56
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/jpa-buddy.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/misc.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/misc.xml
new file mode 100644
index 00000000..1b540b26
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/misc.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/vcs.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/vcs.xml
new file mode 100644
index 00000000..c2365ab1
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project
index 43d3ec29..57bd417e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.project
@@ -32,6 +32,5 @@
org.eclipse.wst.common.project.facet.core.natureorg.eclipse.jdt.core.javanatureorg.eclipse.wst.jsdt.core.jsNature
- org.apache.ivyde.eclipse.ivynature
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.apache.ivyde.eclipse.prefs b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.apache.ivyde.eclipse.prefs
deleted file mode 100644
index a95f7447..00000000
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.apache.ivyde.eclipse.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-org.apache.ivyde.eclipse.standaloneretrieve=
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.core.resources.prefs b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 5d72a74b..00000000
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,9 +0,0 @@
-eclipse.preferences.version=1
-encoding//docroot/html/amministrazione/tabs/territori/view.jsp=UTF-8
-encoding//docroot/html/common/import_window.jsp=UTF-8
-encoding//docroot/html/fascicolo/actions/action_toggle_sospensione.jsp=UTF-8
-encoding//docroot/html/fascicolo/navigator/header.jsp=UTF-8
-encoding//docroot/html/fascicolo/soggetto_details.jsp=UTF-8
-encoding//docroot/html/gestioneattivita/search.jsp=UTF-8
-encoding//docroot/html/paesaggistica_administration/init.jsp=UTF-8
-encoding//docroot/html/paesaggistica_administration/view.jsp=UTF-8
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f42de363
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.ltk.core.refactoring.prefs b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.ltk.core.refactoring.prefs
deleted file mode 100644
index b196c64a..00000000
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.ltk.core.refactoring.prefs
+++ /dev/null
@@ -1,2 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component
index e68706c1..7b7aa635 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.component
@@ -2,17 +2,10 @@
- uses
-
- uses
-
-
- uses
-
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
index f4beb943..62fdb9a9 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -2,8 +2,8 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/.gitignore b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/.gitignore
index 840e7d31..4e474f1e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/.gitignore
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/.gitignore
@@ -1 +1,2 @@
/classes/
+/classes-service/
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar
index d0baea9d..b33acdec 100644
Binary files a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar and b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-kaleo-portlet-service.jar differ
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml
index 8234053b..5dc0d86c 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-hook.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
index 1ea70d2e..71c87d03 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
@@ -1,6 +1,6 @@
-
-
+
+
+
Davide Barbagallo, 3F Consulting + Manifattura Web Group s.r.l.portos_bo
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
index 0ef33164..392af44e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AllegatoManualePersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchAllegatoManualeException;
import it.tref.liferay.portos.bo.model.AllegatoManuale;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeImpl;
import it.tref.liferay.portos.bo.model.impl.AllegatoManualeModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.AllegatoManualePersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
index e86c49f7..1dd062fd 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AsseverazionePersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchAsseverazioneException;
import it.tref.liferay.portos.bo.model.Asseverazione;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneImpl;
import it.tref.liferay.portos.bo.model.impl.AsseverazioneModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.AsseverazionePersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
index 39126b3b..6d670b4e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/AvvisoPersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchAvvisoException;
import it.tref.liferay.portos.bo.model.Avviso;
import it.tref.liferay.portos.bo.model.impl.AvvisoImpl;
import it.tref.liferay.portos.bo.model.impl.AvvisoModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.AvvisoPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
index 1c9ee855..a676849e 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/CollaudoPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchCollaudoException;
import it.tref.liferay.portos.bo.model.Collaudo;
import it.tref.liferay.portos.bo.model.impl.CollaudoImpl;
import it.tref.liferay.portos.bo.model.impl.CollaudoModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.CollaudoPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
index b5054e85..691776e7 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchComuneException;
import it.tref.liferay.portos.bo.model.Comune;
import it.tref.liferay.portos.bo.model.impl.ComuneImpl;
import it.tref.liferay.portos.bo.model.impl.ComuneModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.ComunePersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
index b8d76564..b88225f1 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunicazionePersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchComunicazioneException;
import it.tref.liferay.portos.bo.model.Comunicazione;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ComunicazioneModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.ComunicazionePersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
index 4a0e9a11..66d67c23 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ConfigurazionePersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchConfigurazioneException;
import it.tref.liferay.portos.bo.model.Configurazione;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneImpl;
import it.tref.liferay.portos.bo.model.impl.ConfigurazioneModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.ConfigurazionePersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
index 7c1fa3f1..0cc84b84 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ControlloPraticaPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchControlloPraticaException;
import it.tref.liferay.portos.bo.model.ControlloPratica;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.ControlloPraticaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.ControlloPraticaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
index a2090464..bbf7e7de 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DelegaPersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchDelegaException;
import it.tref.liferay.portos.bo.model.Delega;
import it.tref.liferay.portos.bo.model.impl.DelegaImpl;
import it.tref.liferay.portos.bo.model.impl.DelegaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.DelegaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
index c11f11fb..8c254e2b 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DettPraticaPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchDettPraticaException;
import it.tref.liferay.portos.bo.model.DettPratica;
import it.tref.liferay.portos.bo.model.impl.DettPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DettPraticaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.DettPraticaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DiocesiPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DiocesiPersistenceImpl.java
index a7160077..491ebf9f 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DiocesiPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DiocesiPersistenceImpl.java
@@ -47,8 +47,6 @@ import it.tref.liferay.portos.bo.NoSuchDiocesiException;
import it.tref.liferay.portos.bo.model.Diocesi;
import it.tref.liferay.portos.bo.model.impl.DiocesiImpl;
import it.tref.liferay.portos.bo.model.impl.DiocesiModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.DiocesiPersistence;
-import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
index 13626ed5..91ed3905 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocAggiuntivaPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchDocAggiuntivaException;
import it.tref.liferay.portos.bo.model.DocAggiuntiva;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaImpl;
import it.tref.liferay.portos.bo.model.impl.DocAggiuntivaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.DocAggiuntivaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
index 3e71e802..d521d3f1 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/DocPraticaPersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchDocPraticaException;
import it.tref.liferay.portos.bo.model.DocPratica;
import it.tref.liferay.portos.bo.model.impl.DocPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.DocPraticaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.DocPraticaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
index e2a7716d..908947c5 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/FineLavoriPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchFineLavoriException;
import it.tref.liferay.portos.bo.model.FineLavori;
import it.tref.liferay.portos.bo.model.impl.FineLavoriImpl;
import it.tref.liferay.portos.bo.model.impl.FineLavoriModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.FineLavoriPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
index 7b45230e..b1f93960 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/HistoryWorkflowActionPersistenceImpl.java
@@ -42,7 +42,6 @@ import it.tref.liferay.portos.bo.NoSuchHistoryWorkflowActionException;
import it.tref.liferay.portos.bo.model.HistoryWorkflowAction;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionImpl;
import it.tref.liferay.portos.bo.model.impl.HistoryWorkflowActionModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.HistoryWorkflowActionPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
index 2a9673dd..bdaf914f 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/IntPraticaPersistenceImpl.java
@@ -48,7 +48,6 @@ import it.tref.liferay.portos.bo.NoSuchIntPraticaException;
import it.tref.liferay.portos.bo.model.IntPratica;
import it.tref.liferay.portos.bo.model.impl.IntPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.IntPraticaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.IntPraticaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
index fc11289b..fa8c2ebd 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.liferay.portos.bo.NoSuchPagamentoException;
import it.tref.liferay.portos.bo.model.Pagamento;
import it.tref.liferay.portos.bo.model.impl.PagamentoImpl;
import it.tref.liferay.portos.bo.model.impl.PagamentoModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.PagamentoPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
index b750d9b1..7ccfc052 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ParereGeologoPersistenceImpl.java
@@ -47,7 +47,6 @@ import it.tref.liferay.portos.bo.NoSuchParereGeologoException;
import it.tref.liferay.portos.bo.model.ParereGeologo;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl;
import it.tref.liferay.portos.bo.model.impl.ParereGeologoModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.ParereGeologoPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
index 986dcd3e..fedc632c 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ProvinciaPersistenceImpl.java
@@ -47,8 +47,6 @@ import it.tref.liferay.portos.bo.NoSuchProvinciaException;
import it.tref.liferay.portos.bo.model.Provincia;
import it.tref.liferay.portos.bo.model.impl.ProvinciaImpl;
import it.tref.liferay.portos.bo.model.impl.ProvinciaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.DiocesiPersistence;
-import it.tref.liferay.portos.bo.service.persistence.ProvinciaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
index bbf346c5..98681e47 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/SoggettoPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.liferay.portos.bo.NoSuchSoggettoException;
import it.tref.liferay.portos.bo.model.Soggetto;
import it.tref.liferay.portos.bo.model.impl.SoggettoImpl;
import it.tref.liferay.portos.bo.model.impl.SoggettoModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.SoggettoPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
index 4aec658e..14d6996c 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/StoricoSoggettoPraticaPersistenceImpl.java
@@ -42,7 +42,6 @@ import it.tref.liferay.portos.bo.NoSuchStoricoSoggettoPraticaException;
import it.tref.liferay.portos.bo.model.StoricoSoggettoPratica;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaImpl;
import it.tref.liferay.portos.bo.model.impl.StoricoSoggettoPraticaModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.StoricoSoggettoPraticaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
index c41df113..ecea7d65 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/TerritorioPersistenceImpl.java
@@ -44,7 +44,6 @@ import it.tref.liferay.portos.bo.NoSuchTerritorioException;
import it.tref.liferay.portos.bo.model.Territorio;
import it.tref.liferay.portos.bo.model.impl.TerritorioImpl;
import it.tref.liferay.portos.bo.model.impl.TerritorioModelImpl;
-import it.tref.liferay.portos.bo.service.persistence.TerritorioPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
index 35a46aff..90c7eed5 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
+++ b/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=3611
- build.date=1659531879936
+ build.number=3614
+ build.date=1675846543921
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml
index 888d0c08..0101065a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml
@@ -11,10 +11,7 @@
-
-
-
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5 b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5
index 0ab3f4ac..88bfdf70 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5
+++ b/liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/ivy.xml.MD5
@@ -1 +1 @@
-b4706b93723ae9407536bf048d125586
+30b06262b749a3d1553865d3eb08ea92
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath
index 329e4ccb..df4ad34a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.classpath
@@ -1,8 +1,7 @@
-
-
+
@@ -19,6 +18,5 @@
-
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project
index 14074ed1..20a4cf30 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.project
@@ -32,6 +32,5 @@
org.eclipse.wst.common.project.facet.core.natureorg.eclipse.jdt.core.javanatureorg.eclipse.wst.jsdt.core.jsNature
- org.apache.ivyde.eclipse.ivynature
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.jdt.core.prefs b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..f42de363
--- /dev/null
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.component b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.component
index fdec0d03..9a27a472 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.component
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.component
@@ -2,7 +2,6 @@
-
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
index fe24cce9..62fdb9a9 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -1,8 +1,8 @@
-
+
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml
index e19fc1c3..a2779281 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service.xml
@@ -1,4 +1,4 @@
-
+
3F Consulting + Manifattura Web Group s.r.l.
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateFunzionarioException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateFunzionarioException.java
index 6a9e1899..0eb7de10 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateFunzionarioException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateFunzionarioException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.kernel.exception.PortalException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class DuplicateFunzionarioException extends PortalException {
public DuplicateFunzionarioException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicatePrenotazioneException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicatePrenotazioneException.java
index 8ddd98e0..f36f0237 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicatePrenotazioneException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicatePrenotazioneException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.kernel.exception.PortalException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class DuplicatePrenotazioneException extends PortalException {
public DuplicatePrenotazioneException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateProfessionistaException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateProfessionistaException.java
index a6ed4a53..15346fde 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateProfessionistaException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/DuplicateProfessionistaException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.kernel.exception.PortalException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class DuplicateProfessionistaException extends PortalException {
public DuplicateProfessionistaException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchDisponibilitaException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchDisponibilitaException.java
index 1a9c7f25..767cb4f0 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchDisponibilitaException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchDisponibilitaException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.NoSuchModelException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class NoSuchDisponibilitaException extends NoSuchModelException {
public NoSuchDisponibilitaException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchFunzionarioException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchFunzionarioException.java
index ca5c71de..7cb3399a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchFunzionarioException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchFunzionarioException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.NoSuchModelException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class NoSuchFunzionarioException extends NoSuchModelException {
public NoSuchFunzionarioException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchPrenotazioneException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchPrenotazioneException.java
index 9a831064..77e4c805 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchPrenotazioneException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchPrenotazioneException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.NoSuchModelException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class NoSuchPrenotazioneException extends NoSuchModelException {
public NoSuchPrenotazioneException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchProfessionistaException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchProfessionistaException.java
index 24e17d50..7314eb85 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchProfessionistaException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/NoSuchProfessionistaException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.NoSuchModelException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class NoSuchProfessionistaException extends NoSuchModelException {
public NoSuchProfessionistaException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/SlotNotAvailableException.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/SlotNotAvailableException.java
index 58a65b67..d1db8c58 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/SlotNotAvailableException.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/service/it/tref/portos/calendar/appointments/SlotNotAvailableException.java
@@ -13,7 +13,6 @@ import com.liferay.portal.kernel.exception.PortalException;
/**
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class SlotNotAvailableException extends PortalException {
public SlotNotAvailableException() {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/DisponibilitaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/DisponibilitaImpl.java
index f6278f0c..eeed0fd5 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/DisponibilitaImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/DisponibilitaImpl.java
@@ -20,7 +20,6 @@ package it.tref.portos.calendar.appointments.model.impl;
*
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class DisponibilitaImpl extends DisponibilitaBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a disponibilita model instance
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java
index eddb1e39..8bdec5dd 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/FunzionarioImpl.java
@@ -22,7 +22,6 @@ import com.liferay.portal.kernel.util.StringPool;
*
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class FunzionarioImpl extends FunzionarioBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a funzionario model instance
@@ -30,8 +29,7 @@ public class FunzionarioImpl extends FunzionarioBaseImpl {
*/
public FunzionarioImpl() {}
- @Override
- public String getFullDescription() {
- return getNome() + StringPool.SPACE + getCognome();
- }
+ public String getFullDescription() {
+ return getNome() + StringPool.SPACE + getCognome();
+ }
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/PrenotazioneImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/PrenotazioneImpl.java
index a1cec9bd..73c6cce8 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/PrenotazioneImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/PrenotazioneImpl.java
@@ -24,7 +24,6 @@ import org.apache.commons.lang.time.DateUtils;
*
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class PrenotazioneImpl extends PrenotazioneBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a prenotazione model instance
@@ -32,9 +31,17 @@ public class PrenotazioneImpl extends PrenotazioneBaseImpl {
*/
public PrenotazioneImpl() {}
- @Override
- public boolean isExpired(Date now) {
+ public boolean isExpired(Date now) {
- return now.after(getStartDate()) || DateUtils.isSameDay(now, getStartDate());
- }
+ if (now.after(getStartDate())) {
+ return true;
+ }
+
+ if (DateUtils.isSameDay(now, getStartDate())) {
+ return true;
+
+ }
+
+ return false;
+ }
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/ProfessionistaImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/ProfessionistaImpl.java
index ae04c853..dce6ea28 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/ProfessionistaImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/model/impl/ProfessionistaImpl.java
@@ -20,7 +20,6 @@ package it.tref.portos.calendar.appointments.model.impl;
*
* @author 3F Consulting + Manifattura Web Group s.r.l.
*/
-@SuppressWarnings("serial")
public class ProfessionistaImpl extends ProfessionistaBaseImpl {
/*
* NOTE FOR DEVELOPERS: Never reference this class directly. All methods that expect a professionista model instance
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java
index 36dbee16..3855217a 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaLocalServiceImpl.java
@@ -1,9 +1,13 @@
/**
- * Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it
- * and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software
- * Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in
- * the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or modify it under the terms of the
+ * GNU Lesser General Public License as published by the Free Software Foundation; either version
+ * 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
+ * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
*/
package it.tref.portos.calendar.appointments.service.impl;
@@ -26,13 +30,11 @@ import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.dao.orm.Order;
import com.liferay.portal.kernel.dao.orm.OrderFactoryUtil;
import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
-import com.liferay.portal.kernel.dao.orm.QueryUtil;
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.util.StringPool;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.Role;
import com.liferay.portal.model.User;
@@ -40,508 +42,650 @@ import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
+import com.liferay.portal.service.UserLocalServiceUtil;
/**
* The implementation of the disponibilita local service.
+ *
*
- * 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.portos.calendar.appointments.service.DisponibilitaLocalService} 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.portos.calendar.appointments.service.DisponibilitaLocalService} interface.
+ *
*
- * 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.
*
*
- * @author 3F Consulting + Manifattura Web Group s.r.l.
+ * @author 3F Consulting
* @see it.tref.portos.calendar.appointments.service.base.DisponibilitaLocalServiceBaseImpl
* @see it.tref.portos.calendar.appointments.service.DisponibilitaLocalServiceUtil
*/
public class DisponibilitaLocalServiceImpl extends DisponibilitaLocalServiceBaseImpl {
/*
- * NOTE FOR DEVELOPERS: Never reference this interface directly. Always use {@link
- * it.tref.portos.calendar.appointments.service.DisponibilitaLocalServiceUtil} to access the disponibilita local
- * service.
+ * NOTE FOR DEVELOPERS:
+ *
+ * Never reference this interface directly. Always use {@link
+ * it.tref.portos.calendar.appointments.service.DisponibilitaLocalServiceUtil} to access the
+ * disponibilita local service.
*/
private static Log _log = LogFactoryUtil.getLog(DisponibilitaLocalServiceImpl.class);
- @Override
- public long checkDisponibilitaExist(long funzionarioId, Date startDate, Date endDate) throws SystemException {
+ //Bug 32935
+ public long checkDisponibilitaExist(long funzionarioId, Date startDate, Date endDate) throws SystemException{
long exist = 0L;
+
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("exactDate", sdf.format(startDate)));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate", startDate));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate", endDate));
- @SuppressWarnings("unchecked")
+
+ //Bug 32935
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate",startDate));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate",endDate));
+
List results = disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
- if (!results.isEmpty()) {
+ if(!results.isEmpty()){
exist = results.get(0).getDisponibilitaId();
}
+
return exist;
}
- @Override
- public long checkDisponibilitaExist(long funzionarioId, Date startDate, Date endDate, long presidio)
- throws SystemException {
+ public long checkDisponibilitaExist(long funzionarioId, Date startDate, Date endDate, long presidio) throws SystemException{
long exist = 0L;
+
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.eq("exactDate", sdf.format(startDate)));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("presidio", presidio));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate", startDate));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate", endDate));
- @SuppressWarnings("unchecked")
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("presidio",presidio));
+
+ //Bug 32935
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate",startDate));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate",endDate));
+
List results = disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
- if (!results.isEmpty()) {
+ if(!results.isEmpty()){
exist = results.get(0).getDisponibilitaId();
}
+
return exist;
}
- @Override
public Disponibilita addDisponibilita(long userId, long funzionarioId, Date startDate, Date endDate, long presidio,
ServiceContext serviceContext) throws SystemException, PortalException {
Organization organization = OrganizationLocalServiceUtil.fetchOrganization(presidio);
+
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
Disponibilita disponibilita =
disponibilitaPersistence.create(counterLocalService.increment(Disponibilita.class.getName()));
+
User user = userPersistence.findByPrimaryKey(userId);
+
Date now = new Date();
+
disponibilita.setCompanyId(serviceContext.getCompanyId());
disponibilita.setUserId(user.getUserId());
disponibilita.setUserName(user.getFullName());
disponibilita.setCreateDate(serviceContext.getCreateDate(now));
disponibilita.setModifiedDate(serviceContext.getModifiedDate(now));
disponibilita.setGroupId(organization.getGroupId());
+
disponibilita.setFunzionarioId(funzionarioId);
disponibilita.setStartDate(startDate);
disponibilita.setEndDate(endDate);
disponibilita.setPresidio(presidio);
disponibilita.setExactDate(sdf.format(startDate));
disponibilita.setDisponibile(true);
- disponibilita = updateDisponibilita(disponibilita);
+
+ disponibilita = disponibilitaLocalService.updateDisponibilita(disponibilita);
+
+
return disponibilita;
}
- @Override
- public Disponibilita addIndisponibilita(long userId, long funzionarioId, Date startDate, Date endDate,
- long presidio, ServiceContext serviceContext) throws SystemException, PortalException {
+ public Disponibilita addIndisponibilita(long userId, long funzionarioId, Date startDate, Date endDate, long presidio,
+ ServiceContext serviceContext) throws SystemException, PortalException {
Organization organization = OrganizationLocalServiceUtil.fetchOrganization(presidio);
+
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
Disponibilita disponibilita =
disponibilitaPersistence.create(counterLocalService.increment(Disponibilita.class.getName()));
+
User user = userPersistence.findByPrimaryKey(userId);
+
Date now = new Date();
+
disponibilita.setCompanyId(serviceContext.getCompanyId());
disponibilita.setUserId(user.getUserId());
disponibilita.setUserName(user.getFullName());
disponibilita.setCreateDate(serviceContext.getCreateDate(now));
disponibilita.setModifiedDate(serviceContext.getModifiedDate(now));
disponibilita.setGroupId(organization.getGroupId());
+
disponibilita.setFunzionarioId(funzionarioId);
disponibilita.setStartDate(startDate);
disponibilita.setEndDate(endDate);
disponibilita.setPresidio(presidio);
disponibilita.setExactDate(sdf.format(startDate));
disponibilita.setDisponibile(false);
- disponibilita = updateDisponibilita(disponibilita);
+
+ disponibilita = disponibilitaLocalService.updateDisponibilita(disponibilita);
+
+
return disponibilita;
}
- @Override
- public void addDisponibilitaGenerale(long userId, Date startDate, Date endDate, long presidioId, String oraInizio,
- String oraFine, int giornoSettimana, ServiceContext serviceContext) throws SystemException,
- PortalException, ParseException {
+ public void addDisponibilitaGenerale(long userId, Date startDate, Date endDate, long presidioId,
+ String oraInizio, String oraFine, int giornoSettimana, ServiceContext serviceContext) throws SystemException, PortalException, ParseException{
Organization organization = OrganizationLocalServiceUtil.fetchOrganization(presidioId);
+
List userDefinitivo = new ArrayList();
+
try {
- if (organization != null) {
- List users = userLocalService.getOrganizationUsers(presidioId);
+
+ if(organization != null){
+ List users = UserLocalServiceUtil.getOrganizationUsers(presidioId);
+
for (User user : users) {
+
Role portosSupporto = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_supporto");
- Role portosIstruttore =
- RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_calendario");
- if (!userLocalService.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())) {
- boolean isIstruttore =
- UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
- organization.getGroupId(), portosIstruttore.getRoleId());
- if (isIstruttore) {
+
+ Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_calendario");
+
+ if(!UserLocalServiceUtil.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())){
+
+ boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ user.getUserId(), organization.getGroupId(), portosIstruttore.getRoleId());
+
+
+ if(isIstruttore){
userDefinitivo.add(user);
}
}
}
+
}
+
} catch (NumberFormatException | SystemException e) {
- _log.error(e, e);
+ _log.error(e,e);
} catch (PortalException e) {
- _log.error(e, e);
+ _log.error(e,e);
}
+
Calendar calendarStartDate = Calendar.getInstance();
calendarStartDate.setTime(startDate);
- if (calendarStartDate.get(Calendar.DAY_OF_WEEK) == giornoSettimana) {
+
+ if(calendarStartDate.get(Calendar.DAY_OF_WEEK) == giornoSettimana){
+
Date startDateToInsert = formatDateTime(oraInizio, startDate);
Date endDateToInsert = formatDateTime(oraFine, startDate);
+
for (User user : userDefinitivo) {
+
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", user.getUserId()));
dynamicQuery.add(RestrictionsFactoryUtil.eq("exactDate", sdf.format(startDateToInsert)));
dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", organization.getGroupId()));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate", startDateToInsert));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate", endDateToInsert));
- @SuppressWarnings("unchecked")
+
+ //Bug 32935
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate",startDateToInsert));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate",endDateToInsert));
+
List results = disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
- if (results.isEmpty()) {
+ if(results.isEmpty()){
addDisponibilita(serviceContext.getUserId(), user.getUserId(), startDateToInsert, endDateToInsert,
organization.getOrganizationId(), serviceContext);
- } else {
- for (Iterator iterator = results.iterator(); iterator.hasNext();) {
- Disponibilita disponibilita = iterator.next();
+ }
+ //Bug 32935
+ else{
+ for (Iterator iterator = results.iterator(); iterator.hasNext();) {
+ Disponibilita disponibilita = (Disponibilita) iterator.next();
disponibilita.setDisponibile(true);
- updateDisponibilita(disponibilita);
+ disponibilitaLocalService.updateDisponibilita(disponibilita);
}
}
}
}
- addDayForDisponibilita(startDate, endDate, oraInizio, oraFine, giornoSettimana, userDefinitivo,
- organization.getOrganizationId(), serviceContext);
+
+ addDayForDisponibilita(startDate, endDate, oraInizio, oraFine, giornoSettimana,
+ userDefinitivo, organization.getOrganizationId(), serviceContext);
+
}
- private void addDayForDisponibilita(Date date, Date endDate, String oraInizio, String oraFine, int giornoSettimana,
- List users, long presidioId, ServiceContext serviceContext) throws ParseException, SystemException,
- PortalException {
+ private void addDayForDisponibilita(Date date, Date endDate, String oraInizio, String oraFine,int giornoSettimana,List users,
+ long presidioId, ServiceContext serviceContext)
+ throws ParseException, SystemException, PortalException{
Organization org = OrganizationLocalServiceUtil.fetchOrganization(presidioId);
+
Date datePlus = datePlusOneDay(date);
- if (date.before(datePlus) && (endDate.after(datePlus) || isSameDate(endDate, datePlus))) {
+ if(date.before(datePlus) && (endDate.after(datePlus) || isSameDate(endDate, datePlus))){
+
Calendar calendarStartDate = Calendar.getInstance();
calendarStartDate.setTime(datePlus);
- if (calendarStartDate.get(Calendar.DAY_OF_WEEK) == giornoSettimana) {
+
+ if(calendarStartDate.get(Calendar.DAY_OF_WEEK) == giornoSettimana){
+
Date startDateToInsert = formatDateTime(oraInizio, datePlus);
Date endDateToInsert = formatDateTime(oraFine, datePlus);
+
for (User user : users) {
+
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", user.getUserId()));
dynamicQuery.add(RestrictionsFactoryUtil.eq("exactDate", sdf.format(startDateToInsert)));
dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", org.getGroupId()));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate", startDateToInsert));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate", endDateToInsert));
- @SuppressWarnings("unchecked")
+
+ //Bug 32935
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate",startDateToInsert));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("endDate",endDateToInsert));
+
List results = disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
- if (results.isEmpty()) {
- addDisponibilita(serviceContext.getUserId(), user.getUserId(), startDateToInsert,
- endDateToInsert, presidioId, serviceContext);
- } else {
- for (Iterator iterator = results.iterator(); iterator.hasNext();) {
- Disponibilita disponibilita = iterator.next();
+ if(results.isEmpty()){
+ addDisponibilita(serviceContext.getUserId(), user.getUserId(), startDateToInsert, endDateToInsert,
+ presidioId, serviceContext);
+ }
+ //Bug 32935
+ else{
+ for (Iterator iterator = results.iterator(); iterator.hasNext();) {
+ Disponibilita disponibilita = (Disponibilita) iterator.next();
disponibilita.setDisponibile(true);
- updateDisponibilita(disponibilita);
+ disponibilitaLocalService.updateDisponibilita(disponibilita);
}
}
+
}
- addDayForDisponibilita(datePlus, endDate, oraInizio, oraFine, giornoSettimana, users, presidioId,
- serviceContext);
+
+ addDayForDisponibilita(datePlus, endDate, oraInizio, oraFine, giornoSettimana, users,
+ presidioId, serviceContext);
+
} else {
- addDayForDisponibilita(datePlus, endDate, oraInizio, oraFine, giornoSettimana, users, presidioId,
- serviceContext);
+ addDayForDisponibilita(datePlus, endDate, oraInizio, oraFine, giornoSettimana, users,
+ presidioId, serviceContext);
}
}
}
- private Date datePlusOneDay(Date date) {
+ private Date datePlusOneDay(Date date){
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
+
calendar.add(Calendar.DATE, 1);
+
return calendar.getTime();
}
- private boolean isSameDate(Date date1, Date date2) {
+ private boolean isSameDate(Date date1 , Date date2){
Calendar cal1 = Calendar.getInstance();
Calendar cal2 = Calendar.getInstance();
cal1.setTime(date1);
cal2.setTime(date2);
- boolean sameDay =
- cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR)
- && cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);
+
+ boolean sameDay = cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&
+ cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR);
+
return sameDay;
+
}
- @SuppressWarnings("unchecked")
- @Override
public List findByStartDate(Date date) throws SystemException {
-
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
Date end = DateUtils.addDays(start, 1);
+
DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.between("startDate", start, end));
dynamicQuery.addOrder(OrderFactoryUtil.desc("funzionarioId"));
+
return disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
- }
- @Override
- public List findByFunzionarioStartAndPresidio(long funzionarioId, Date date, long presidio)
- throws SystemException {
+ }
+ public List findByFunzionarioStartAndPresidio(long funzionarioId, Date date, long presidio) throws SystemException {
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
Date end = DateUtils.addHours(start, 22);
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
dynamicQuery.add(RestrictionsFactoryUtil.lt("endDate", end));
dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", presidio));
- @SuppressWarnings("unchecked")
+
List results = disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
return results;
- }
- @SuppressWarnings("unchecked")
- @Override
- public List findByFunzionario_StartDate(long funzionarioId, Date date, long presidio)
- throws SystemException {
+ }
+ public List findByFunzionario_StartDate(long funzionarioId, Date date, long presidio) throws SystemException {
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
Date end = DateUtils.addHours(start, 22);
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
dynamicQuery.add(RestrictionsFactoryUtil.lt("endDate", end));
dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", presidio));
- return disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
+
+ List results = disponibilitaPersistence.findWithDynamicQuery(dynamicQuery);
+ return results;
+
}
- @SuppressWarnings("unchecked")
- @Override
- public List findByFunzionarioStartDate(long funzionarioId, Date date, int startRow, int endRow)
- throws SystemException {
+ public List 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();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+
Order defaultOrder = OrderFactoryUtil.asc("startDate");
dynamicQuery.addOrder(defaultOrder);
- return dynamicQuery(dynamicQuery, startRow, endRow);
+
+ List results = disponibilitaLocalService.dynamicQuery(dynamicQuery, startRow, endRow);
+ return results;
+
}
- @Override
public int countByFunzionarioStartDate(long funzionarioId, Date date) throws SystemException {
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+
Order defaultOrder = OrderFactoryUtil.asc("startDate");
dynamicQuery.addOrder(defaultOrder);
- return dynamicQuery(dynamicQuery, QueryUtil.ALL_POS, QueryUtil.ALL_POS).size();
+
+ List results = disponibilitaLocalService.dynamicQuery(dynamicQuery, -1, -1);
+ return results.size();
+
}
- @SuppressWarnings("unchecked")
- @Override
- public List findByPOStartDateAndFilters(long funzionarioId, Date date, int startRow, int endRow,
- String provinciaFilter, String funzionarioIdFilter) throws SystemException {
+ public List findByPOStartDateAndFilters(long funzionarioId, Date date, int startRow, int endRow, String provinciaFilter, String funzionarioIdFilter) throws SystemException {
+
+ User user = UserLocalServiceUtil.fetchUser(funzionarioId);
- User user = userLocalService.fetchUser(funzionarioId);
List orgIds = new ArrayList();
+
try {
+
Role dirigenteGenerale = RoleLocalServiceUtil.getRole(user.getCompanyId(), "dirigente_generale");
- boolean isDirigenteGenerale =
- RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
- if (isDirigenteGenerale) {
- List orgs =
- OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
+ boolean isDirigenteGenerale = RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
+
+ if(isDirigenteGenerale){
+
+ List orgs = OrganizationLocalServiceUtil.getOrganizations(-1, -1);
for (Organization organization : orgs) {
- if (organization.getParentOrganization() != null) {
+ if(organization.getParentOrganization() != null){
orgIds.add(organization.getOrganizationId());
}
}
+
} else {
+
List orgs = OrganizationLocalServiceUtil.getUserOrganizations(funzionarioId);
for (Organization organization : orgs) {
+
Role portosPO = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_po");
- boolean isPO =
- UserGroupRoleLocalServiceUtil.hasUserGroupRole(funzionarioId, organization.getGroupId(),
- portosPO.getRoleId());
- if (isPO) {
+
+ boolean isPO = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ funzionarioId, organization.getGroupId(), portosPO.getRoleId());
+
+ if(isPO){
orgIds.add(organization.getOrganizationId());
}
}
+
}
+
} catch (PortalException e) {
- _log.error(e, e);
+ _log.error(e,e);
}
+
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
+
DynamicQuery dynamicQuery = dynamicQuery();
- if (provinciaFilter.equals("-1") || provinciaFilter.equals(StringPool.BLANK)) {
- dynamicQuery.add(PropertyFactoryUtil.forName("presidio").in(orgIds.toArray()));
- } else {
+
+ if(!provinciaFilter.equals("-1") && !provinciaFilter.equals("")){
dynamicQuery.add(RestrictionsFactoryUtil.eq("presidio", Long.valueOf(provinciaFilter)));
- }
- if (funzionarioIdFilter.equals("-1") || funzionarioIdFilter.equals(StringPool.BLANK)) {
- dynamicQuery.add(RestrictionsFactoryUtil.ne("funzionarioId", funzionarioId));
} else {
+ dynamicQuery.add(PropertyFactoryUtil.forName("presidio").in(orgIds.toArray()));
+ }
+
+ if(!funzionarioIdFilter.equals("-1") && !funzionarioIdFilter.equals("")){
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", Long.valueOf(funzionarioIdFilter)));
+ } else {
+ dynamicQuery.add(RestrictionsFactoryUtil.ne("funzionarioId", funzionarioId));
}
+
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+
Order defaultOrder = OrderFactoryUtil.asc("startDate");
dynamicQuery.addOrder(defaultOrder);
- return dynamicQuery(dynamicQuery, startRow, endRow);
+
+ List results = disponibilitaLocalService.dynamicQuery(dynamicQuery, startRow, endRow);
+ return results;
+
}
- @Override
- public int countByPOStartDateAndFilters(long funzionarioId, Date date, String provinciaFilter,
- String funzionarioIdFilter) throws SystemException {
+ public int countByPOStartDateAndFilters(long funzionarioId, Date date, String provinciaFilter, String funzionarioIdFilter) throws SystemException {
+
+ User user = UserLocalServiceUtil.fetchUser(funzionarioId);
- User user = userLocalService.fetchUser(funzionarioId);
List orgIds = new ArrayList();
+
try {
+
Role dirigenteGenerale = RoleLocalServiceUtil.getRole(user.getCompanyId(), "dirigente_generale");
- boolean isDirigenteGenerale =
- RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
- if (isDirigenteGenerale) {
- List orgs =
- OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
+ boolean isDirigenteGenerale = RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
+
+ if(isDirigenteGenerale){
+
+ List orgs = OrganizationLocalServiceUtil.getOrganizations(-1, -1);
for (Organization organization : orgs) {
- if (organization.getParentOrganization() != null) {
+ if(organization.getParentOrganization() != null){
orgIds.add(organization.getOrganizationId());
}
}
+
} else {
+
List orgs = OrganizationLocalServiceUtil.getUserOrganizations(funzionarioId);
for (Organization organization : orgs) {
+
Role portosPO = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_po");
- boolean isPO =
- UserGroupRoleLocalServiceUtil.hasUserGroupRole(funzionarioId, organization.getGroupId(),
- portosPO.getRoleId());
- if (isPO) {
+
+ boolean isPO = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ funzionarioId, organization.getGroupId(), portosPO.getRoleId());
+
+ if(isPO){
orgIds.add(organization.getOrganizationId());
}
}
+
}
+
} catch (PortalException e) {
- _log.error(e, e);
+ _log.error(e,e);
}
+
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
+
DynamicQuery dynamicQuery = dynamicQuery();
- if (provinciaFilter.equals("-1") || provinciaFilter.equals(StringPool.BLANK)) {
- dynamicQuery.add(PropertyFactoryUtil.forName("presidio").in(orgIds.toArray()));
- } else {
+
+ if(!provinciaFilter.equals("-1") && !provinciaFilter.equals("")){
dynamicQuery.add(RestrictionsFactoryUtil.eq("presidio", Long.valueOf(provinciaFilter)));
- }
- if (funzionarioIdFilter.equals("-1") || funzionarioIdFilter.equals(StringPool.BLANK)) {
- dynamicQuery.add(RestrictionsFactoryUtil.ne("funzionarioId", funzionarioId));
} else {
+ dynamicQuery.add(PropertyFactoryUtil.forName("presidio").in(orgIds.toArray()));
+ }
+
+ if(!funzionarioIdFilter.equals("-1") && !funzionarioIdFilter.equals("")){
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", Long.valueOf(funzionarioIdFilter)));
+ } else {
+ dynamicQuery.add(RestrictionsFactoryUtil.ne("funzionarioId", funzionarioId));
}
+
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+
Order defaultOrder = OrderFactoryUtil.asc("startDate");
dynamicQuery.addOrder(defaultOrder);
- return dynamicQuery(dynamicQuery, QueryUtil.ALL_POS, QueryUtil.ALL_POS).size();
+
+ List results = disponibilitaLocalService.dynamicQuery(dynamicQuery, -1, -1);
+ return results.size();
+
}
- @SuppressWarnings("unchecked")
- @Override
- public List findByPOStartDate(long funzionarioId, Date date, int startRow, int endRow)
- throws SystemException {
+ public List findByPOStartDate(long funzionarioId, Date date, int startRow, int endRow) throws SystemException {
+
+ User user = UserLocalServiceUtil.fetchUser(funzionarioId);
- User user = userLocalService.fetchUser(funzionarioId);
List orgIds = new ArrayList();
+
try {
+
Role dirigenteGenerale = RoleLocalServiceUtil.getRole(user.getCompanyId(), "dirigente_generale");
- boolean isDirigenteGenerale =
- RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
- if (isDirigenteGenerale) {
- List orgs =
- OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
+ boolean isDirigenteGenerale = RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
+
+ if(isDirigenteGenerale){
+
+ List orgs = OrganizationLocalServiceUtil.getOrganizations(-1, -1);
for (Organization organization : orgs) {
- if (organization.getParentOrganization() != null) {
+ if(organization.getParentOrganization() != null){
orgIds.add(organization.getOrganizationId());
}
}
+
} else {
+
List orgs = OrganizationLocalServiceUtil.getUserOrganizations(funzionarioId);
for (Organization organization : orgs) {
+
Role portosPO = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_po");
- boolean isPO =
- UserGroupRoleLocalServiceUtil.hasUserGroupRole(funzionarioId, organization.getGroupId(),
- portosPO.getRoleId());
- if (isPO) {
+
+ boolean isPO = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ funzionarioId, organization.getGroupId(), portosPO.getRoleId());
+
+ if(isPO){
orgIds.add(organization.getOrganizationId());
}
}
+
}
+
} catch (PortalException e) {
- _log.error(e, e);
+ _log.error(e,e);
}
+
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(PropertyFactoryUtil.forName("presidio").in(orgIds.toArray()));
dynamicQuery.add(RestrictionsFactoryUtil.ne("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+
Order defaultOrder = OrderFactoryUtil.asc("startDate");
dynamicQuery.addOrder(defaultOrder);
- return dynamicQuery(dynamicQuery, startRow, endRow);
+
+ List results = disponibilitaLocalService.dynamicQuery(dynamicQuery, startRow, endRow);
+ return results;
+
}
- @Override
public int countByPOStartDate(long funzionarioId, Date date) throws SystemException {
- User user = userLocalService.fetchUser(funzionarioId);
+ User user = UserLocalServiceUtil.fetchUser(funzionarioId);
+
List orgIds = new ArrayList();
+
try {
+
Role dirigenteGenerale = RoleLocalServiceUtil.getRole(user.getCompanyId(), "dirigente_generale");
- boolean isDirigenteGenerale =
- RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
- if (isDirigenteGenerale) {
- List orgs =
- OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS, QueryUtil.ALL_POS);
+ boolean isDirigenteGenerale = RoleLocalServiceUtil.hasUserRole(user.getUserId(), dirigenteGenerale.getRoleId());
+
+ if(isDirigenteGenerale){
+
+ List orgs = OrganizationLocalServiceUtil.getOrganizations(-1, -1);
for (Organization organization : orgs) {
- if (organization.getParentOrganization() != null) {
+ if(organization.getParentOrganization() != null){
orgIds.add(organization.getOrganizationId());
}
}
+
} else {
+
List orgs = OrganizationLocalServiceUtil.getUserOrganizations(funzionarioId);
for (Organization organization : orgs) {
+
Role portosPO = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_po");
- boolean isPO =
- UserGroupRoleLocalServiceUtil.hasUserGroupRole(funzionarioId, organization.getGroupId(),
- portosPO.getRoleId());
- if (isPO) {
+
+ boolean isPO = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ funzionarioId, organization.getGroupId(), portosPO.getRoleId());
+
+ if(isPO){
orgIds.add(organization.getOrganizationId());
}
}
+
}
+
} catch (PortalException e) {
- _log.error(e, e);
+ _log.error(e,e);
}
+
Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
+
DynamicQuery dynamicQuery = dynamicQuery();
+
dynamicQuery.add(PropertyFactoryUtil.forName("presidio").in(orgIds.toArray()));
dynamicQuery.add(RestrictionsFactoryUtil.ne("funzionarioId", funzionarioId));
dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+
Order defaultOrder = OrderFactoryUtil.asc("startDate");
dynamicQuery.addOrder(defaultOrder);
- return dynamicQuery(dynamicQuery, QueryUtil.ALL_POS, QueryUtil.ALL_POS).size();
+
+ List results = disponibilitaLocalService.dynamicQuery(dynamicQuery, -1, -1);
+ return results.size();
+
}
private Date formatDateTime(String orario, Date day) throws ParseException {
-
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
Date data = sdf.parse(orario);
Calendar calendar = GregorianCalendar.getInstance();
calendar.setTime(data);
Date date = DateUtils.addHours(day, calendar.get(Calendar.HOUR_OF_DAY));
date = DateUtils.addMinutes(date, calendar.get(Calendar.MINUTE));
+
return date;
}
+
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaServiceImpl.java
index 05497c8a..5ffdc835 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/DisponibilitaServiceImpl.java
@@ -11,6 +11,7 @@ package it.tref.portos.calendar.appointments.service.impl;
import it.tref.portos.calendar.appointments.model.Disponibilita;
import it.tref.portos.calendar.appointments.model.Funzionario;
import it.tref.portos.calendar.appointments.model.Prenotazione;
+import it.tref.portos.calendar.appointments.service.PrenotazioneLocalServiceUtil;
import it.tref.portos.calendar.appointments.service.base.DisponibilitaServiceBaseImpl;
import java.text.ParseException;
@@ -37,6 +38,7 @@ import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
+import com.liferay.portal.service.UserLocalServiceUtil;
/**
* The implementation of the disponibilita remote service.
@@ -61,7 +63,6 @@ public class DisponibilitaServiceImpl extends DisponibilitaServiceBaseImpl {
private static Log _log = LogFactoryUtil.getLog(DisponibilitaServiceImpl.class);
- @Override
public Disponibilita addDisponibilita(long userId, long funzionarioId, Date startDate, Date endDate, long presidio,
ServiceContext serviceContext) throws SystemException, PortalException {
@@ -69,7 +70,6 @@ public class DisponibilitaServiceImpl extends DisponibilitaServiceBaseImpl {
serviceContext);
}
- @Override
public List addDisponibilitaGenerale(long presidio, long userId, Date dataInizioDisponibilita,
Date dataFineDisponibilita, String giornoSettimana, String oraInizioDisponibilita,
String oraFineDisponibilita, ServiceContext serviceContext) throws SystemException, PortalException {
@@ -87,9 +87,7 @@ public class DisponibilitaServiceImpl extends DisponibilitaServiceBaseImpl {
return listDisponibilita;
}
- @Override
- public String verifyDisponibilitaByDateHour(String presidio, String date, String[] oreInizio, String idFunzionario)
- throws SystemException, ParseException {
+ public String verifyDisponibilitaByDateHour(String presidio, String date,String[] oreInizio, String idFunzionario) throws SystemException, ParseException {
JSONObject json = JSONFactoryUtil.createJSONObject();
JSONArray array = JSONFactoryUtil.createJSONArray();
@@ -101,9 +99,18 @@ public class DisponibilitaServiceImpl extends DisponibilitaServiceBaseImpl {
String oraInizio = oreInizio[i];
jsonFiglio.put("ora", oraInizio);
Date dateVerify = formatDateTime(oraInizio, dateVerifyTemp);
- List lista = prenotazioneLocalService.findByDateHourFunzionario(dateVerify,
- Long.parseLong(idFunzionario), org.getGroupId());
- jsonFiglio.put("disponibile", lista.isEmpty());
+
+
+ List lista =
+ PrenotazioneLocalServiceUtil.findByDateHourFunzionario(
+ dateVerify, Long.parseLong(idFunzionario), org.getGroupId());
+
+ if(lista.isEmpty()){
+ jsonFiglio.put("disponibile", true);
+ } else {
+ jsonFiglio.put("disponibile", false);
+ }
+
array.put(jsonFiglio);
}
json.put("slot", array);
@@ -117,24 +124,34 @@ public class DisponibilitaServiceImpl extends DisponibilitaServiceBaseImpl {
Organization organization = OrganizationLocalServiceUtil.fetchOrganization(Long.valueOf(presidio));
List userDefinitivo = new ArrayList();
try {
- if (organization != null) {
- List users = userLocalService.getOrganizationUsers(Long.valueOf(presidio));
+
+ if(organization != null){
+ List users = UserLocalServiceUtil.getOrganizationUsers(Long.valueOf(presidio));
+
for (User user : users) {
Role portosSupporto = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_supporto");
- Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(),
- "portos_calendario");
- if (!userLocalService.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())) {
- boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
- organization.getGroupId(), portosIstruttore.getRoleId());
- if (isIstruttore) {
+
+ Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_calendario");
+
+ if(!UserLocalServiceUtil.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())){
+
+ boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ user.getUserId(), organization.getGroupId(), portosIstruttore.getRoleId());
+
+
+ if(isIstruttore){
userDefinitivo.add(user);
}
}
}
}
- } catch (NumberFormatException | PortalException | SystemException e) {
- _log.error(e, e);
+
+ } catch (NumberFormatException | SystemException e) {
+ _log.error(e,e);
+ } catch (PortalException e) {
+ _log.error(e,e);
}
+
Date startDate = new SimpleDateFormat("dd/MM/yyyy").parse(date);
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
JSONArray json = JSONFactoryUtil.createJSONArray();
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioLocalServiceImpl.java
index 21ca8470..3feb7d48 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioLocalServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioLocalServiceImpl.java
@@ -40,9 +40,8 @@ public class FunzionarioLocalServiceImpl extends FunzionarioLocalServiceBaseImpl
* service.
*/
- @Override
- public Funzionario addFunzionario(long userId, String nome, String cognome, String presidio, String tipologia,
- ServiceContext serviceContext) throws PortalException, SystemException {
+ public Funzionario addFunzionario(long userId, String nome, String cognome, String presidio, String tipologia,
+ ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@@ -75,9 +74,8 @@ public class FunzionarioLocalServiceImpl extends FunzionarioLocalServiceBaseImpl
return this.deleteFunzionario(funzionario);
}
- @Override
- public List findByPresidio(String presidio) throws SystemException {
+ public List findByPresidio(String presidio) throws SystemException {
- return funzionarioPersistence.findByPresidio(presidio);
- }
+ return funzionarioPersistence.findByPresidio(presidio);
+ }
}
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioServiceImpl.java
index 447943fe..60dfe822 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/FunzionarioServiceImpl.java
@@ -8,7 +8,6 @@
package it.tref.portos.calendar.appointments.service.impl;
-import it.tref.liferay.portos.bo.shared.util.Constants;
import it.tref.portos.calendar.appointments.model.Funzionario;
import it.tref.portos.calendar.appointments.service.base.FunzionarioServiceBaseImpl;
@@ -23,7 +22,6 @@ import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
-import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.Organization;
import com.liferay.portal.model.Role;
@@ -32,6 +30,8 @@ import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
+import com.liferay.portal.service.UserLocalServiceUtil;
+import it.tref.liferay.portos.bo.shared.util.Constants;
/**
* The implementation of the funzionario remote service.
@@ -55,59 +55,67 @@ public class FunzionarioServiceImpl extends FunzionarioServiceBaseImpl {
private static Log _log = LogFactoryUtil.getLog(FunzionarioServiceImpl.class);
- @Override
- public Funzionario addFunzionario(long userId, String nome, String cognome, String presidio, String tipologia,
- ServiceContext serviceContext) throws PortalException, SystemException {
+ public Funzionario addFunzionario(long userId, String nome, String cognome, String presidio, String tipologia,
+ ServiceContext serviceContext) throws PortalException, SystemException {
return funzionarioLocalService.addFunzionario(userId, nome, cognome, presidio, tipologia, serviceContext);
}
- @Override
- public String getFunzionariByPresidio(String presidio) {
-
- JSONArray json = JSONFactoryUtil.createJSONArray();
- try {
- Organization organization = OrganizationLocalServiceUtil.fetchOrganization(Long.valueOf(presidio));
- if (organization != null) {
- List users = userLocalService.getOrganizationUsers(Long.valueOf(presidio));
- Collections.sort(users, new UserComparator());
- for (User user : users) {
- Role portosSupporto = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_supporto");
- Role portosGeologo = RoleLocalServiceUtil.getRole(organization.getCompanyId(),
- Constants.ROLE_NAME_GEOLOGO);
- Role portosCalendario = RoleLocalServiceUtil.getRole(organization.getCompanyId(),
- "portos_calendario");
- Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(),
- Constants.ROLE_NAME_ISTRUTTORE);
- if (!userLocalService.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())) {
- boolean isCalendario = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
- organization.getGroupId(), portosCalendario.getRoleId());
- boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
- organization.getGroupId(), portosIstruttore.getRoleId());
- boolean isGeologo = userLocalService.hasRoleUser(portosGeologo.getRoleId(),
- user.getUserId());
- if (isCalendario) {
- JSONObject jsonFunzionario = JSONFactoryUtil.createJSONObject();
- jsonFunzionario.put("id", user.getUserId());
- jsonFunzionario.put("nome", user.getFirstName());
- jsonFunzionario.put("cognome", user.getLastName());
- if (isIstruttore) {
- jsonFunzionario.put("tipologia", "Istruttore");
- } else if (isGeologo) {
- jsonFunzionario.put("tipologia", "Geologo");
- } else {
- jsonFunzionario.put("tipologia", StringPool.BLANK);
- }
- json.put(jsonFunzionario);
+ public String getFunzionariByPresidio(String presidio) {
+
+ JSONArray json = JSONFactoryUtil.createJSONArray();
+ try {
+ Organization organization = OrganizationLocalServiceUtil.fetchOrganization(Long.valueOf(presidio));
+ if(organization != null){
+
+ List users = UserLocalServiceUtil.getOrganizationUsers(Long.valueOf(presidio));
+
+ //Bug 32935
+ Collections.sort(users, new UserComparator());
+ for (User user : users) {
+ Role portosSupporto = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_supporto");
+
+ Role portosGeologo = RoleLocalServiceUtil.getRole(organization.getCompanyId(), Constants.ROLE_NAME_GEOLOGO);
+
+ Role portosCalendario = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_calendario");
+
+ Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(), Constants.ROLE_NAME_ISTRUTTORE);
+
+ if(!UserLocalServiceUtil.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())){
+
+ boolean isCalendario = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ user.getUserId(), organization.getGroupId(), portosCalendario.getRoleId());
+
+ boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ user.getUserId(), organization.getGroupId(), portosIstruttore.getRoleId());
+
+ boolean isGeologo = UserLocalServiceUtil.hasRoleUser(portosGeologo.getRoleId(), user.getUserId());
+
+
+ if(isCalendario){
+ JSONObject jsonFunzionario = JSONFactoryUtil.createJSONObject();
+ jsonFunzionario.put("id", user.getUserId());
+ jsonFunzionario.put("nome", user.getFirstName());
+ jsonFunzionario.put("cognome", user.getLastName());
+ if(isIstruttore){
+ jsonFunzionario.put("tipologia", "Istruttore");
+ } else if(isGeologo){
+ jsonFunzionario.put("tipologia", "Geologo");
+ } else {
+ jsonFunzionario.put("tipologia", "");
}
+ json.put(jsonFunzionario);
}
}
}
- } catch (NumberFormatException | PortalException | SystemException e) {
- _log.error(e, e);
}
- return json.toString();
+ } catch (NumberFormatException | SystemException e) {
+ _log.error(e,e);
+ } catch (PortalException e) {
+ _log.error(e,e);
}
+ return json.toString();
+ }
}
class UserComparator implements Comparator {
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneLocalServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneLocalServiceImpl.java
index b0bb7950..b21c40ee 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneLocalServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneLocalServiceImpl.java
@@ -33,6 +33,7 @@ import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
+import com.liferay.portal.service.UserLocalServiceUtil;
/**
* The implementation of the prenotazione local service.
@@ -55,45 +56,56 @@ public class PrenotazioneLocalServiceImpl extends PrenotazioneLocalServiceBaseIm
* service.
*/
- @Override
- public Prenotazione addPrenotazione(long userId, long funzionarioId, long professionistaId, Date startDate,
- Date endDate, String descrizione, String telefono, String email, long presidio,
- ServiceContext serviceContext) throws SystemException, PortalException {
-
- Prenotazione prenotazione =
- prenotazionePersistence.create(counterLocalService.increment(Prenotazione.class.getName()));
- User user = userPersistence.findByPrimaryKey(userId);
- Date now = new Date();
- prenotazione.setCompanyId(serviceContext.getCompanyId());
- prenotazione.setUserId(user.getUserId());
- prenotazione.setUserName(user.getFullName());
- prenotazione.setCreateDate(serviceContext.getCreateDate(now));
- prenotazione.setModifiedDate(serviceContext.getModifiedDate(now));
- prenotazione.setGroupId(presidio);
- prenotazione.setFunzionarioId(funzionarioId);
- prenotazione.setProfessionistaId(professionistaId);
- prenotazione.setStartDate(startDate);
- prenotazione.setEndDate(endDate);
- prenotazione.setDescLong(descrizione);
- prenotazione.setTelefono(telefono);
- prenotazione.setEmail(email);
- prenotazione = updatePrenotazione(prenotazione);
- return prenotazione;
- }
+//Product Backlog Item 32934
+ public Prenotazione addPrenotazione(long userId, long funzionarioId, long professionistaId, Date startDate,
+ Date endDate, String descrizione, String telefono, String email, long presidio, ServiceContext serviceContext) throws SystemException, PortalException {
- @Override
- public Prenotazione updatePrenotazione(long prenotazioneId, Date startDate, Date endDate, String descrizione,
- ServiceContext serviceContext) throws SystemException, PortalException {
+ Prenotazione prenotazione =
+ prenotazionePersistence.create(counterLocalService.increment(Prenotazione.class.getName()));
- Prenotazione prenotazione = prenotazionePersistence.findByPrimaryKey(prenotazioneId);
- Date now = new Date();
- prenotazione.setModifiedDate(serviceContext.getModifiedDate(now));
- prenotazione.setStartDate(startDate);
- prenotazione.setEndDate(endDate);
- prenotazione.setDescLong(descrizione);
- prenotazione = updatePrenotazione(prenotazione);
- return prenotazione;
- }
+ User user = userPersistence.findByPrimaryKey(userId);
+
+ Date now = new Date();
+
+ prenotazione.setCompanyId(serviceContext.getCompanyId());
+ prenotazione.setUserId(user.getUserId());
+ prenotazione.setUserName(user.getFullName());
+ prenotazione.setCreateDate(serviceContext.getCreateDate(now));
+ prenotazione.setModifiedDate(serviceContext.getModifiedDate(now));
+ prenotazione.setGroupId(presidio);
+
+ prenotazione.setFunzionarioId(funzionarioId);
+ prenotazione.setProfessionistaId(professionistaId);
+ prenotazione.setStartDate(startDate);
+ prenotazione.setEndDate(endDate);
+ prenotazione.setDescLong(descrizione);
+
+ //Product Backlog Item 32934
+ prenotazione.setTelefono(telefono);
+ prenotazione.setEmail(email);
+
+ prenotazione = prenotazioneLocalService.updatePrenotazione(prenotazione);
+
+ return prenotazione;
+ }
+
+ public Prenotazione updatePrenotazione(long prenotazioneId, Date startDate, Date endDate, String descrizione,
+ ServiceContext serviceContext) throws SystemException, PortalException {
+
+ Prenotazione prenotazione = prenotazionePersistence.findByPrimaryKey(prenotazioneId);
+
+ Date now = new Date();
+
+ prenotazione.setModifiedDate(serviceContext.getModifiedDate(now));
+
+ prenotazione.setStartDate(startDate);
+ prenotazione.setEndDate(endDate);
+ prenotazione.setDescLong(descrizione);
+
+ prenotazione = prenotazioneLocalService.updatePrenotazione(prenotazione);
+
+ return prenotazione;
+ }
@Override
public Prenotazione deletePrenotazione(Prenotazione prenotazione) throws SystemException {
@@ -108,33 +120,31 @@ public class PrenotazioneLocalServiceImpl extends PrenotazioneLocalServiceBaseIm
return this.deletePrenotazione(prenotazione);
}
- @SuppressWarnings("unchecked")
- @Override
- public List findByStartDate(Date date) throws SystemException {
+ public List findByStartDate(Date date) throws SystemException {
+ Date start = DateUtils.truncate(date, java.util.Calendar.DAY_OF_MONTH);
+ Date end = DateUtils.addDays(start, 1);
- Date start = DateUtils.truncate(date, java.util.Calendar.DAY_OF_MONTH);
- Date end = DateUtils.addDays(start, 1);
- DynamicQuery dynamicQuery = dynamicQuery();
- dynamicQuery.add(RestrictionsFactoryUtil.between("startDate", start, end));
- dynamicQuery.addOrder(OrderFactoryUtil.desc("funzionarioId"));
- return prenotazionePersistence.findWithDynamicQuery(dynamicQuery);
- }
+ DynamicQuery dynamicQuery = dynamicQuery();
+ dynamicQuery.add(RestrictionsFactoryUtil.between("startDate", start, end));
+ dynamicQuery.addOrder(OrderFactoryUtil.desc("funzionarioId"));
+ return prenotazionePersistence.findWithDynamicQuery(dynamicQuery);
- @SuppressWarnings("unchecked")
- @Override
- public List findByDateHourFunzionario(Date date, long funzionarioId, long groupId)
- throws SystemException {
+ }
+
+ public List findByDateHourFunzionario(Date date, long funzionarioId, long groupId) throws SystemException {
+
+ DynamicQuery dynamicQuery = dynamicQuery();
+
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate", date));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", groupId));
+
+ return prenotazionePersistence.findWithDynamicQuery(dynamicQuery);
- DynamicQuery dynamicQuery = dynamicQuery();
- dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("startDate", date));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", groupId));
- return prenotazionePersistence.findWithDynamicQuery(dynamicQuery);
}
- @Override
- public int getAvailableSlotByStartDate_EndDate(long funzionarioId, Date startDate, Date endDate)
- throws SystemException {
+ public int getAvailableSlotByStartDate_EndDate(long funzionarioId, Date startDate, Date endDate)
+ throws SystemException {
DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
@@ -151,45 +161,53 @@ public class PrenotazioneLocalServiceImpl extends PrenotazioneLocalServiceBaseIm
return (int) prenotazionePersistence.countWithDynamicQuery(dynamicQuery);
}
- @SuppressWarnings("unchecked")
- @Override
- public List findByFunzionario_StartDate(long funzionarioId, Date date, long groupId)
- throws SystemException {
- Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
- Date end = DateUtils.addHours(start, 22);
- DynamicQuery dynamicQuery = dynamicQuery();
- dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
- dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", groupId));
- dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
- dynamicQuery.add(RestrictionsFactoryUtil.lt("endDate", end));
- return prenotazionePersistence.findWithDynamicQuery(dynamicQuery);
- }
+ public List findByFunzionario_StartDate(long funzionarioId, Date date, long groupId) throws SystemException {
+ Date start = DateUtils.truncate(date, Calendar.DAY_OF_MONTH);
+ Date end = DateUtils.addHours(start, 22);
+
+ DynamicQuery dynamicQuery = dynamicQuery();
+
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", funzionarioId));
+ dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", groupId));
+ dynamicQuery.add(RestrictionsFactoryUtil.ge("startDate", start));
+ dynamicQuery.add(RestrictionsFactoryUtil.lt("endDate", end));
+
+ return prenotazionePersistence.findWithDynamicQuery(dynamicQuery);
+ }
+
+ public int countPrenotazioniPresidioPeriodo(long presidioId, String fromString, String toString) throws SystemException, PortalException, ParseException{
+
+ int count = 0;
+
+ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
+
+ Date from = sdf.parse(fromString);
+ Date to = sdf.parse(toString);
+
+ Calendar fromCal = Calendar.getInstance();
+ fromCal.setTime(from);
+ fromCal.set(Calendar.HOUR_OF_DAY, 2);
+
+ Calendar toCal = Calendar.getInstance();
+ toCal.setTime(to);
+ toCal.set(Calendar.HOUR_OF_DAY, 22);
+
+
+ Organization org = OrganizationLocalServiceUtil.fetchOrganization(presidioId);
+ Role portosCalendario = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_calendario");
+
+ if (org != null) {
+
+ List users = UserLocalServiceUtil.getOrganizationUsers(presidioId);
+ for (User user : users) {
+ boolean isCalendario = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ user.getUserId(), org.getGroupId(), portosCalendario.getRoleId());
+
+ if(isCalendario){
+
+ DynamicQuery dynamicQuery = dynamicQuery();
- @Override
- public int countPrenotazioniPresidioPeriodo(long presidioId, String fromString, String toString)
- throws SystemException, PortalException, ParseException {
-
- int count = 0;
- SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
- Date from = sdf.parse(fromString);
- Date to = sdf.parse(toString);
- Calendar fromCal = Calendar.getInstance();
- fromCal.setTime(from);
- fromCal.set(Calendar.HOUR_OF_DAY, 2);
- Calendar toCal = Calendar.getInstance();
- toCal.setTime(to);
- toCal.set(Calendar.HOUR_OF_DAY, 22);
- Organization org = OrganizationLocalServiceUtil.fetchOrganization(presidioId);
- Role portosCalendario = RoleLocalServiceUtil.getRole(org.getCompanyId(), "portos_calendario");
- if (org != null) {
- List users = userLocalService.getOrganizationUsers(presidioId);
- for (User user : users) {
- boolean isCalendario =
- UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(), org.getGroupId(),
- portosCalendario.getRoleId());
- if (isCalendario) {
- DynamicQuery dynamicQuery = dynamicQuery();
dynamicQuery.add(RestrictionsFactoryUtil.eq("funzionarioId", user.getUserId()));
dynamicQuery.add(RestrictionsFactoryUtil.between("startDate", fromCal.getTime(), toCal.getTime()));
dynamicQuery.add(RestrictionsFactoryUtil.eq("groupId", org.getGroupId()));
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneServiceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneServiceImpl.java
index b9831cea..5d27ed97 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneServiceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/impl/PrenotazioneServiceImpl.java
@@ -10,6 +10,7 @@ package it.tref.portos.calendar.appointments.service.impl;
import it.tref.portos.calendar.appointments.SlotNotAvailableException;
import it.tref.portos.calendar.appointments.model.Prenotazione;
+import it.tref.portos.calendar.appointments.service.PrenotazioneLocalServiceUtil;
import it.tref.portos.calendar.appointments.service.base.PrenotazioneServiceBaseImpl;
import java.text.ParseException;
@@ -34,6 +35,7 @@ import com.liferay.portal.service.OrganizationLocalServiceUtil;
import com.liferay.portal.service.RoleLocalServiceUtil;
import com.liferay.portal.service.ServiceContext;
import com.liferay.portal.service.UserGroupRoleLocalServiceUtil;
+import com.liferay.portal.service.UserLocalServiceUtil;
/**
* The implementation of the prenotazione remote service.
@@ -57,7 +59,7 @@ public class PrenotazioneServiceImpl extends PrenotazioneServiceBaseImpl {
private static Log _log = LogFactoryUtil.getLog(PrenotazioneServiceImpl.class);
- @Override
+ //Product Backlog Item 32934
public void addPrenotazione(long userId, long funzionarioId, long professionistaId, Date startDate, Date endDate,
String descrizione, String telefono, String email, long presidio, ServiceContext serviceContext)
throws SystemException, PortalException {
@@ -69,11 +71,10 @@ public class PrenotazioneServiceImpl extends PrenotazioneServiceBaseImpl {
descrizione, telefono, email, presidio, serviceContext);
}
- @Override
public void updatePrenotazione(long prenotazioneId, long userId, Date startDate, Date endDate, String descrizione,
ServiceContext serviceContext) throws SystemException, PortalException {
- Prenotazione prenotazione = prenotazioneLocalService.fetchPrenotazione(prenotazioneId);
+ Prenotazione prenotazione = PrenotazioneLocalServiceUtil.fetchPrenotazione(prenotazioneId);
if (prenotazione.getUserId() != userId) {
throw new SystemException("error.calendar.appointments.prenotazione.not.allowed.update " + prenotazioneId
+ " user " + userId);
@@ -81,38 +82,52 @@ public class PrenotazioneServiceImpl extends PrenotazioneServiceBaseImpl {
prenotazioneLocalService.updatePrenotazione(prenotazioneId, startDate, endDate, descrizione, serviceContext);
}
- @Override
public void deletePrenotazione(long prenotazioneId, long userId) throws SystemException, PortalException {
+ Prenotazione prenotazione = PrenotazioneLocalServiceUtil.fetchPrenotazione(prenotazioneId);
+
+ //Product Backlog Item 32933
+// if (prenotazione.getUserId() != userId) {
+// throw new SystemException("error.calendar.appointments.prenotazione.not.allowed.update " + prenotazioneId
+// + " user " + userId);
+// }
+
prenotazioneLocalService.deletePrenotazione(prenotazioneId);
}
- @Override
- public String getPrenotazioniByDate(String presidio, String date, String userId) throws SystemException,
- ParseException {
+ public String getPrenotazioniByDate(String presidio, String date, String userId) throws SystemException, ParseException {
long loggetUserId = Long.parseLong(userId);
Organization organization = OrganizationLocalServiceUtil.fetchOrganization(Long.valueOf(presidio));
List userDefinitivo = new ArrayList();
try {
- if (organization != null) {
- List users = userLocalService.getOrganizationUsers(Long.valueOf(presidio));
+ if(organization != null){
+ List users = UserLocalServiceUtil.getOrganizationUsers(Long.valueOf(presidio));
+
for (User user : users) {
Role portosSupporto = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_supporto");
- Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(),
- "portos_calendario");
- if (!userLocalService.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())) {
- boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(user.getUserId(),
- organization.getGroupId(), portosIstruttore.getRoleId());
- if (isIstruttore) {
+
+ Role portosIstruttore = RoleLocalServiceUtil.getRole(organization.getCompanyId(), "portos_calendario");
+
+ if(!UserLocalServiceUtil.hasRoleUser(portosSupporto.getRoleId(), user.getUserId())){
+
+ boolean isIstruttore = UserGroupRoleLocalServiceUtil.hasUserGroupRole(
+ user.getUserId(), organization.getGroupId(), portosIstruttore.getRoleId());
+
+
+ if(isIstruttore){
userDefinitivo.add(user);
}
}
}
}
- } catch (NumberFormatException | PortalException | SystemException e) {
- _log.error(e, e);
+
+ } catch (NumberFormatException | SystemException e) {
+ _log.error(e,e);
+ } catch (PortalException e) {
+ _log.error(e,e);
}
+
Date startDate = new SimpleDateFormat("dd/MM/yyyy").parse(date);
SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
JSONArray json = JSONFactoryUtil.createJSONArray();
@@ -131,8 +146,10 @@ public class PrenotazioneServiceImpl extends PrenotazioneServiceBaseImpl {
jsonPrenotazione.put("idPrenotazione", prenotazione.getPrenotazioneId());
jsonPrenotazione.put("inizio", sdf.format(prenotazione.getStartDate()));
jsonPrenotazione.put("fine", sdf.format(prenotazione.getEndDate()));
- User richiedente = userLocalService.fetchUser(prenotazione.getProfessionistaId());
- if (loggetUserId == prenotazione.getProfessionistaId()) {
+
+ User richiedente = UserLocalServiceUtil.fetchUser(prenotazione.getProfessionistaId());
+
+ if(loggetUserId == prenotazione.getProfessionistaId()){
jsonPrenotazione.put("visible", true);
} else {
jsonPrenotazione.put("visible", canSeeFullInformations(loggetUserId));
@@ -153,8 +170,9 @@ public class PrenotazioneServiceImpl extends PrenotazioneServiceBaseImpl {
private boolean canSeeFullInformations(long loggetUserId) throws SystemException {
boolean canDo = false;
- User user = userLocalService.fetchUser(loggetUserId);
- if (user != null) {
+
+ User user = UserLocalServiceUtil.fetchUser(loggetUserId);
+ if(user != null){
Group siteBO = GroupLocalServiceUtil.fetchGroup(user.getCompanyId(), "Portos BackOffice");
boolean isBoUser = GroupLocalServiceUtil.hasUserGroup(user.getUserId(), siteBO.getGroupId());
if (isBoUser) {
@@ -164,7 +182,6 @@ public class PrenotazioneServiceImpl extends PrenotazioneServiceBaseImpl {
return canDo;
}
- @Override
public boolean isSlotAvailable(long funzionarioId, Date startDate, Date endDate) throws SystemException {
return prenotazioneLocalService.getAvailableSlotByStartDate_EndDate(funzionarioId, startDate, endDate) == 0;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/DisponibilitaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/DisponibilitaPersistenceImpl.java
index e3a33173..f0f76529 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/DisponibilitaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/DisponibilitaPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.portos.calendar.appointments.NoSuchDisponibilitaException;
import it.tref.portos.calendar.appointments.model.Disponibilita;
import it.tref.portos.calendar.appointments.model.impl.DisponibilitaImpl;
import it.tref.portos.calendar.appointments.model.impl.DisponibilitaModelImpl;
-import it.tref.portos.calendar.appointments.service.persistence.DisponibilitaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/FunzionarioPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/FunzionarioPersistenceImpl.java
index 0106fbec..aef95370 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/FunzionarioPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/FunzionarioPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.portos.calendar.appointments.NoSuchFunzionarioException;
import it.tref.portos.calendar.appointments.model.Funzionario;
import it.tref.portos.calendar.appointments.model.impl.FunzionarioImpl;
import it.tref.portos.calendar.appointments.model.impl.FunzionarioModelImpl;
-import it.tref.portos.calendar.appointments.service.persistence.FunzionarioPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/PrenotazionePersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/PrenotazionePersistenceImpl.java
index 8942c4b7..d056c031 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/PrenotazionePersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/PrenotazionePersistenceImpl.java
@@ -46,7 +46,6 @@ import it.tref.portos.calendar.appointments.NoSuchPrenotazioneException;
import it.tref.portos.calendar.appointments.model.Prenotazione;
import it.tref.portos.calendar.appointments.model.impl.PrenotazioneImpl;
import it.tref.portos.calendar.appointments.model.impl.PrenotazioneModelImpl;
-import it.tref.portos.calendar.appointments.service.persistence.PrenotazionePersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/ProfessionistaPersistenceImpl.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/ProfessionistaPersistenceImpl.java
index 9cf11dd3..ca7237cc 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/ProfessionistaPersistenceImpl.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/service/persistence/ProfessionistaPersistenceImpl.java
@@ -45,7 +45,6 @@ import it.tref.portos.calendar.appointments.NoSuchProfessionistaException;
import it.tref.portos.calendar.appointments.model.Professionista;
import it.tref.portos.calendar.appointments.model.impl.ProfessionistaImpl;
import it.tref.portos.calendar.appointments.model.impl.ProfessionistaModelImpl;
-import it.tref.portos.calendar.appointments.service.persistence.ProfessionistaPersistence;
import java.io.Serializable;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java
index 37cc5b1e..4b114261 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/it/tref/portos/calendar/appointments/util/CalendarUtil.java
@@ -5,6 +5,7 @@ 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;
@@ -13,6 +14,8 @@ 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;
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties
index 6ee3fbbd..63499da9 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/WEB-INF/src/service.properties
@@ -13,8 +13,8 @@
##
build.namespace=portos_calendar_appointments
- build.number=178
- build.date=1655995359988
+ build.number=179
+ build.date=1675853211115
build.auto.upgrade=true
##
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp
index 8e7e7acd..d654039d 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/init.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.liferay.portal.model.Role"%>
<%@page import="com.liferay.portal.service.UserGroupRoleLocalServiceUtil"%>
diff --git a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp
index 4b1c0905..6a89a46b 100644
--- a/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp
+++ b/liferay-plugins-sdk-6.2/portlets/portos-calendar-appointments-portlet/docroot/html/calendar_appointments/tabs/amministrazione.jsp
@@ -1,4 +1,3 @@
-<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="it.tref.portos.calendar.appointments.service.PrenotazioneLocalServiceUtil"%>
<%@page import="com.liferay.portal.service.OrganizationLocalServiceUtil"%>
<%@page import="com.liferay.portal.model.Organization"%>
@@ -245,11 +244,11 @@ String dataFine = ParamUtil.getString(request, "dataFineRicerca","");